diff options
author | Andras Timar <atimar@suse.com> | 2012-02-17 21:43:31 +0100 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2012-02-17 21:45:37 +0100 |
commit | 7636d37f8f9c53d694c4fe38581f3b495d53670e (patch) | |
tree | b0e5fbc15b51c34c540d7b22eb68e1307057572c /xmlhelp/source | |
parent | fix build, WANT_X11 is a variable (diff) | |
download | core-7636d37f8f9c53d694c4fe38581f3b495d53670e.tar.gz core-7636d37f8f9c53d694c4fe38581f3b495d53670e.zip |
fdo#40665 use CJKAnalyzer for ko, zh-CN, and zh-TW, too
Diffstat (limited to 'xmlhelp/source')
-rwxr-xr-x | xmlhelp/source/com/sun/star/help/HelpSearch.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xmlhelp/source/com/sun/star/help/HelpSearch.java b/xmlhelp/source/com/sun/star/help/HelpSearch.java index dc31514afcb0..03aadea8e298 100755 --- a/xmlhelp/source/com/sun/star/help/HelpSearch.java +++ b/xmlhelp/source/com/sun/star/help/HelpSearch.java @@ -255,7 +255,10 @@ public class HelpSearch { IndexReader reader = IndexReader.open( aIndexStr ); Searcher searcher = new IndexSearcher( reader ); - Analyzer analyzer = aLanguageStr.equals("ja") ? (Analyzer)new CJKAnalyzer() : (Analyzer)new StandardAnalyzer(); + Analyzer analyzer = ( aLanguageStr.equals("ja") + || aLanguageStr.equals("ko") + || aLanguageStr.equals("zh-CN") + || aLanguageStr.equals("zh-TW") ) ? (Analyzer)new CJKAnalyzer() : (Analyzer)new StandardAnalyzer(); String aField; if( bCaptionOnly ) |