From 5837c74b43e860cea2a2975f81cd46c2991c7fc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Wed, 18 Sep 2024 12:51:20 +0800 Subject: [PATCH] fix --- LunaTranslator/LunaTranslator/transoptimi/gongxiangcishu.py | 1 + LunaTranslator/LunaTranslator/transoptimi/noundict.py | 1 + 2 files changed, 2 insertions(+) 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