mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix uppercase word is not found in search when html_search_language='ja'. Closes #1111
This commit is contained in:
parent
fffde7817d
commit
ba3e404b7c
3
CHANGES
3
CHANGES
@ -1,6 +1,9 @@
|
|||||||
Release 1.2 (in development)
|
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 ``''``
|
* The ``'fontpkg'`` item in :confval:`latex_elements` now defaults to ``''``
|
||||||
when the :confval:`language` uses the Cyrillic script.
|
when the :confval:`language` uses the Cyrillic script.
|
||||||
Suggested by Dmitry Shachnev.
|
Suggested by Dmitry Shachnev.
|
||||||
|
@ -271,3 +271,6 @@ class SearchJapanese(SearchLanguage):
|
|||||||
|
|
||||||
def word_filter(self, stemmed_word):
|
def word_filter(self, stemmed_word):
|
||||||
return len(stemmed_word) > 1
|
return len(stemmed_word) > 1
|
||||||
|
|
||||||
|
def stem(self, word):
|
||||||
|
return word.lower()
|
||||||
|
Loading…
Reference in New Issue
Block a user