From e55ab7e8eadfb29111f489e620b2cc7add5c5a06 Mon Sep 17 00:00:00 2001 From: Date: Sun, 4 Sep 2011 15:40:25 +0800 Subject: [PATCH] let the program can detect chinese comma and dot. --- numbertomark.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/numbertomark.py b/numbertomark.py index 60e5dc0..8bc9ecd 100755 --- a/numbertomark.py +++ b/numbertomark.py @@ -79,7 +79,7 @@ orig_content = orig_content[1:] #刪除頭一個字(空白) '''處理調號''' #音節list(),包含連字號、空白 -syllable_list = re.split('([- ().,]+)', orig_content) +syllable_list = re.split('([- ().,,。]+)', orig_content) result = "" #輸出的結果(預設為空)