mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix: Can't search alphabetical words on the HTML quick search generated with language='ja'. Closes #1340
This commit is contained in:
3
CHANGES
3
CHANGES
@@ -12,6 +12,9 @@ Bugs fixed
|
||||
``object.__init__`` docstring when class does not have ``__init__``.
|
||||
This caused by a change for #1138.
|
||||
|
||||
* #1340: Can't search alphabetical words on the HTML quick search generated
|
||||
with language='ja'.
|
||||
|
||||
|
||||
Release 1.2 (released Dec 10, 2013)
|
||||
===================================
|
||||
|
||||
@@ -236,7 +236,7 @@ class TinySegmenter(object):
|
||||
score += self.ts_(self.TQ4__, p3 + c2 + c3 + c4)
|
||||
p = u'O'
|
||||
if score > 0:
|
||||
result.append(word)
|
||||
result.append(word.strip())
|
||||
word = u''
|
||||
p = u'B'
|
||||
p1 = p2
|
||||
@@ -244,7 +244,7 @@ class TinySegmenter(object):
|
||||
p3 = p
|
||||
word += seg[i]
|
||||
|
||||
result.append(word)
|
||||
result.append(word.strip())
|
||||
return result
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user