mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-12 08:25:01 -05:00
Fix: Can't search alphabetical words on the HTML quick search generated with language='ja'. Closes #1340
This commit is contained in:
1 parent
e61f316c74
commit
b17fea855b
2 files changed
+5
-2
No files matched your search
@@ -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)
|
||||
===================================
|
||||
|
||||
+2
-2
@@ -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