summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES3
-rw-r--r--sphinx/search/ja.py3
2 files changed, 6 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index 90d47ad8..25bbc1e2 100644
--- a/CHANGES
+++ b/CHANGES
@@ -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()