更新 japanese.py,修正bug
This commit is contained in:
@@ -54,7 +54,7 @@ def text2kata(text: str) -> str:
|
|||||||
|
|
||||||
res = []
|
res = []
|
||||||
for parts in parsed:
|
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 yomi:
|
||||||
if re.match(_MARKS, yomi):
|
if re.match(_MARKS, yomi):
|
||||||
if len(word) > 1:
|
if len(word) > 1:
|
||||||
|
|||||||
Reference in New Issue
Block a user