更新 japanese.py,修正bug

This commit is contained in:
Stardust·减
2023-11-05 18:54:43 +08:00
committed by GitHub
parent 7e41a1cb45
commit 5c74e9ae76

View File

@@ -54,7 +54,7 @@ def text2kata(text: str) -> str:
res = []
for parts in parsed:
word, yomi = replace_punctuation(parts["orig"]), parts["pron"].replace("", "")
word, yomi = replace_punctuation(parts["string"]), parts["pron"].replace("", "")
if yomi:
if re.match(_MARKS, yomi):
if len(word) > 1: