plugin:asiansearch
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
plugin:asiansearch [2009-09-07 05:14] – kazmiya | plugin:asiansearch [2018-05-30 20:40] – [Download and Installation] Klap-in | ||
---|---|---|---|
Line 3: | Line 3: | ||
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : kazmiya@gmail.com | email : kazmiya@gmail.com | ||
type : action | type : action | ||
- | lastupdate : 2009-09-06 | + | lastupdate : 2011-04-26 |
- | compatible : 2009-02-14 | + | compatible : 2009-02-14, 2009-12-25, 2010-11-07, 2011-05-25 |
depends | depends | ||
- | conflicts | + | conflicts |
similar | similar | ||
- | tags : | + | tags : |
+ | |||
+ | downloadurl: | ||
+ | bugtracker : https:// | ||
+ | sourcerepo : https:// | ||
+ | donationurl: | ||
---- | ---- | ||
- | This plugin | + | | :!: **You don't need to install this plugin |
===== Download and Installation ===== | ===== Download and Installation ===== | ||
- | Download | + | Search |
- | ^ Download | + | Alternatively, |
- | ^ GitHub URL | http:// | + | |
- | ===== History ===== | + | **Changelog**: |
- | * 2009-09-06 -- Initial release | + | {{rss> |
===== Overview ===== | ===== Overview ===== | ||
- | DokuWiki has a full-text search function which now also supports Asian languages. However, searching Asian language texts still has some problems. The problems are that: | + | DokuWiki has a full-text search function which now also supports Asian languages. However, searching Asian language texts still has some problems. |
- | + | ||
- | * Search result highlights are a bit too fragmented | + | |
- | * An ideographic space (U+3000) in a search query is treated not as a search term separator, but as a character itself | + | |
- | + | ||
- | This plugin solves these problems by manipulating a search query, never making changes to your DokuWiki' | + | |
- | + | ||
- | ===== Examples ===== | + | |
- | + | ||
- | Let's assume that your DokuWiki has a page whose text is: | + | |
- | + | ||
- | 京都から東海道新幹線で東に向かうと、東京に着いた。 | + | |
- | + | ||
- | ==== Search Result Highlights ==== | + | |
- | + | ||
- | **Search Query:** '' | + | |
- | + | ||
- | ^ ^ Search Result/ | + | |
- | | Plain Dokuwiki | __**京**__都から__**東**__海道新幹線で__**東**__に向かうと、__**東京**__に着いた。 | Too fragmented. Noisy. | | + | |
- | | With this plugin | 京都から東海道新幹線で東に向かうと、__**東京**__に着いた。 | Good. | | + | |
- | + | ||
- | ==== Ideographic Spaces ==== | + | |
- | + | ||
- | **Search Query:** '' | + | |
- | + | ||
- | ^ ^ Search Result/ | + | |
- | | Plain DokuWiki | :!: No Hits! | Why? | | + | |
- | | With this plugin | 京都から東海道__**新幹線**__で東に向かうと、__**東京**__に着いた。 | As I expected. | | + | |
- | + | ||
- | Note that the space between '' | + | |
- | + | ||
- | ===== How It Works ===== | + | |
- | + | ||
- | This plugin manipulates a search query by using the following steps: | + | |
- | + | ||
- | - Puts " | + | |
- | - Replaces ideographic spaces with normal spaces | + | |
- | - Makes a phrase for each successive Asian character | + | |
- | + | ||
- | Below is a example of complicated query. | + | |
- | + | ||
- | ^ Original Query | '' | + | |
- | ^ Manipulated Query | '' | + | |
- | + | ||
- | You can see that Asian characters are quoted, ideographic spaces are replaced with normal spaces, and nothing is changed within preexistent phrases. | + | |
- | + | ||
- | By default, DokuWiki treats each Asian character as a " | + | |
- | + | ||
- | By checking the returned values of '' | + | |
- | **Original Query:** | + | The problems are that: |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | - ' | + | |
- | - ' | + | |
- | - ' | + | |
- | - ' | + | |
- | - ' | + | |
- | - ' | + | |
- | - ' | + | |
- | - ' | + | |
- | - ' | + | |
- | **Manipulated Query:** | + | This plugin solves these problems. |
- | ' | + | ===== Configuration ===== |
- | - ' | + | |
- | - ' | + | |
- | - ' | + | |
- | - ' | + | |
- | - ' | + | |
- | ' | + | |
- | - ' | + | |
- | ===== Discussion ===== | + | There are no configuration options for this plugin. |
- | The problem this plugin is trying to solve looks like a bug to me. DokuWiki should handle Asian queries correctly out of the box. Could you please open a bug report to get this solved in core? --- // | + | ===== Feedback ===== |
- | * OK, I'll open it later. Thanks Andi. --- // | + | Any feedback is welcome. Please use the [[https:// |
plugin/asiansearch.txt · Last modified: 2023-10-30 23:21 by Klap-in