diff options
author | shimizukawa <shimizukawa@gmail.com> | 2013-02-24 21:29:56 +0900 |
---|---|---|
committer | shimizukawa <shimizukawa@gmail.com> | 2013-02-24 21:29:56 +0900 |
commit | 3a2e8319e94ec2585e05a2b881a7a1761a88a0dd (patch) | |
tree | 96e47e2ccff23e6614ce19c71bd4f8a29fb0520e | |
parent | bb8ea3c7527dd8ff8537d30f14842c761b879505 (diff) | |
download | sphinx-3a2e8319e94ec2585e05a2b881a7a1761a88a0dd.tar.gz |
Fix uppercase word is not found in search when html_search_language='ja'. Closes #1111
-rw-r--r-- | CHANGES | 3 | ||||
-rw-r--r-- | sphinx/search/ja.py | 3 |
2 files changed, 6 insertions, 0 deletions
@@ -1,6 +1,9 @@ Release 1.2 (in development) ============================ +* #1111: Fix uppercase word is not found in search when + html_search_language='ja'. Thanks to tomo saito. + * The ``'fontpkg'`` item in :confval:`latex_elements` now defaults to ``''`` when the :confval:`language` uses the Cyrillic script. Suggested by Dmitry Shachnev. diff --git a/sphinx/search/ja.py b/sphinx/search/ja.py index c83c52ef..f0deb154 100644 --- a/sphinx/search/ja.py +++ b/sphinx/search/ja.py @@ -271,3 +271,6 @@ class SearchJapanese(SearchLanguage): def word_filter(self, stemmed_word): return len(stemmed_word) > 1 + + def stem(self, word): + return word.lower() |