Searching Japanese Content in WebHelp Pages
To optimize the indexing of Japanese content in WebHelp pages, the Lucene Kuromoji Japanese analyzer can be used. This analyzer is included in the Oxygen XML Developer installation kit.
Activating Japanese Indexing in DITA WebHelp Systems
To activate the Japanese indexing in your WebHelp system generated from DITA content, follow these steps:
- Set the language for your content to Japanese with one of the following two methods:
- Edit a DITA to WebHelp transformation scenario and in the
Parameters tab, set the value of the
args.default.language
parameter toja-jp
. - Set the
xml:lang
attribute on the root of the DITA map and the referenced topics toja-jp
.
- Edit a DITA to WebHelp transformation scenario and in the
Parameters tab, set the value of the
- For the analyzer to work properly, search terms that are entered into the WebHelp search text field must be separated by spaces.
- Run the DITA to WebHelp transformation scenario to generate the output.
Optionally a Japanese user dictionary can be set with the webhelp.search.japanese.dictionary
parameter.
Activating Japanese Indexing in DocBook WebHelp Systems
To activate the Japanese indexing in your WebHelp system generated from DocBook content, follow these steps:
- Edit a DocBook to WebHelp transformation scenario and in the
Parameters tab, set the value of the
l10n.gentext.default.language
parameter toja
. - Run the transformation scenario to generate the output.