let the program can detect chinese comma and dot.

This commit is contained in:
2011-09-04 15:40:25 +08:00
parent 60149f6eaf
commit e55ab7e8ea

View file

@ -79,7 +79,7 @@ orig_content = orig_content[1:] #刪除頭一個字(空白)
'''處理調號''' '''處理調號'''
#音節list包含連字號、空白 #音節list包含連字號、空白
syllable_list = re.split('([- ().,]+)', orig_content) syllable_list = re.split('([- ().,,。]+)', orig_content)
result = "" #輸出的結果(預設為空) result = "" #輸出的結果(預設為空)