Skip to content

Commit fff0986

Browse files
authored
Merge pull request #3 from weakish/more-zh-punctuation-marks
More zh punctuation marks
2 parents 1c3b7fa + 1bdf36a commit fff0986

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

add-space-between-latin-and-cjk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def is_latin(c):
1818

1919
# Some characters should not have space on either side.
2020
def allow_space(c):
21-
return not c.isspace() and not (c in '。?!,、;:「」《》『』[]()*_#')
21+
return not c.isspace() and not (c in '。?!,、;:「」《》『』<>[]()()*_-=#".@\'')
2222

2323
def add_space_at_boundry(prefix, next_char):
2424
if len(prefix) == 0:

0 commit comments

Comments
 (0)