diff --git a/tasks/base/main_page.py b/tasks/base/main_page.py index e06c19779..803c12cf9 100644 --- a/tasks/base/main_page.py +++ b/tasks/base/main_page.py @@ -40,11 +40,13 @@ class OcrPlaneName(Ocr): # 区域-战 result = re.sub(r'区域.*战$', '区域战斗', result) # 区域-事伴, 区域-事祥 - result = result.replace('事伴', '事件').replace('事祥', '事件') + result = re.sub(r'事[伴祥]', '事件', result) # 医域-战斗 result = result.replace('医域', '区域') - # 区域-战半 - result = result.replace('战半', '战斗') + # 区域-战半, 区域-战头, 区域-战头书 + result = re.sub(r'战[半头]', '战斗', result) + # 区域一战斗 + result = re.sub(r'区域[\-—-一=]', '区域-', result) # 累塔的办公室 result = result.replace('累塔', '黑塔') if '星港' in result: diff --git a/tasks/rogue/bleesing/blessing.py b/tasks/rogue/bleesing/blessing.py index ac8aff2fa..6eb8dc0c4 100644 --- a/tasks/rogue/bleesing/blessing.py +++ b/tasks/rogue/bleesing/blessing.py @@ -69,7 +69,7 @@ class RogueBuffOcr(Ocr): "天[培梧]步危": "天棓步危", "云[摘销锅]?逐步离": "云镝逐步离", "制桑": "制穹桑", - "乌号基": "乌号綦", + "乌号[綦基]?箭?": "乌号綦箭", "流岚追摩?物": "流岚追孽物", "特月": "狩月", "彤弓素.*": "彤弓素矰", @@ -78,18 +78,21 @@ class RogueBuffOcr(Ocr): "[沦沧][決]?肌髓": "沦浃肌髓", "进发": "迸发", "永缩体": "永坍缩体", - "完美体验:绒默": "完美体验:缄默", + "完美体验:[绒]?默": "完美体验:缄默", "[涯]?灭回归不等式": "湮灭回归不等式", r".*灾$": "禳灾", "虚安供品": "虚妄供品", "原初的苦$": "原初的苦衷", "厌离邪[移]?苦": "厌离邪秽苦", r".*繁.*": "葳蕤繁祉,延彼遐龄", + "回馈底护": "回馈庇护", } elif self.lang == 'en': replace_pattern_dict = { "RestIin": "Restin", } + else: + replace_pattern_dict = {} for pat, replace in replace_pattern_dict.items(): result = re.sub(pat, replace, result) return result