From c91ec3cf2baa20cf3af05a460dca762f74aa5cdf Mon Sep 17 00:00:00 2001 From: AkagiYui Date: Wed, 28 Aug 2024 22:42:36 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20ocr=20scan=20chinese=20'=E6=A5=9A?= =?UTF-8?q?=E5=A4=A9=E4=B9=8B=E9=AD=94'=20to=20replace=20'=E7=84=9A?= =?UTF-8?q?=E5=A4=A9=E4=B9=8B=E9=AD=94'=20(#618)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tasks/planner/scan.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/planner/scan.py b/tasks/planner/scan.py index 5cc10d0aa..76b1212a6 100644 --- a/tasks/planner/scan.py +++ b/tasks/planner/scan.py @@ -25,6 +25,7 @@ class OcrItemName(Ocr): def after_process(self, result): result = result.replace('方相果实', '万相果实') result = result.replace('念火之心', '忿火之心') + result = result.replace('楚天之魔', '焚天之魔') result = re.sub('^火之心', '忿火之心', result) result = re.sub('工造机$', '工造机杼', result) result = re.sub('工造迥?轮', '工造迴轮', result)