diff --git a/LunaTranslator/LunaTranslator/transoptimi/gongxiangcishu.py b/LunaTranslator/LunaTranslator/transoptimi/gongxiangcishu.py index f5331132..1cbb5f5a 100644 --- a/LunaTranslator/LunaTranslator/transoptimi/gongxiangcishu.py +++ b/LunaTranslator/LunaTranslator/transoptimi/gongxiangcishu.py @@ -137,6 +137,7 @@ class Process: for key, value in self.sorted_vnrshareddict_post: if key in res: res = res.replace(key, value["text"]) + res = res.replace(key.lower(), value["text"]) return res @staticmethod diff --git a/LunaTranslator/LunaTranslator/transoptimi/noundict.py b/LunaTranslator/LunaTranslator/transoptimi/noundict.py index afc37e45..0260fb67 100644 --- a/LunaTranslator/LunaTranslator/transoptimi/noundict.py +++ b/LunaTranslator/LunaTranslator/transoptimi/noundict.py @@ -90,4 +90,5 @@ class Process: mp1 = context["zhanweifu"] for key in mp1: res = res.replace(key, mp1[key]) + res = res.replace(key.lower(), mp1[key]) return res