Move replacing of ゔ to more appropriate position (maybe not so important)

This commit is contained in:
litagin02
2024-01-05 21:49:29 +09:00
parent 92e2f54a61
commit 76a9a266e5

View File

@@ -38,9 +38,6 @@ def hiragana2p(text: str) -> str:
# 2文字からなる変換規則
text = text.replace("ぅ゛", " v u")
# ゔの処理を追加
text = text.replace("", " v u")
text = text.replace("あぁ", " a a")
text = text.replace("いぃ", " i i")
text = text.replace("いぇ", " i e")
@@ -244,6 +241,7 @@ def hiragana2p(text: str) -> str:
text = text.replace("", " a")
text = text.replace("", " i")
text = text.replace("", " u")
text = text.replace("", " v u") # ゔの処理を追加
text = text.replace("", " e")
text = text.replace("", " o")
text = text.replace("", " k a")