fkiliver / RPGMaker_LLM_Translator

96 stars 9 forks source link

半角假名错误翻译 #1

Closed Yuan-Chen closed 8 months ago

Yuan-Chen commented 8 months ago

原文: 遠景の画像ファイル名 => 翻译: 远景的影像zonmaing 原文: 再生中BGMファイル名 => 翻译: 再生中BGMsenametionne

可以用unicodedata.normalize('NFKC', foo)统一转换成全角假名

fkiliver commented 8 months ago

感谢反馈,现在会在翻译前将假名格式化为全角