Skip to content

Commit 1c3b7fa

Browse files
authored
Merge pull request #2 from weakish/more-zh-punctuation-marks
fix: more chinese punctuation marks
2 parents 50fbda3 + 1ea5e5a commit 1c3b7fa

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)