Fix: [CN] Domain name and blessings

This commit is contained in:
LmeSzinc 2023-10-21 02:06:23 +08:00
parent 915cd05f42
commit f979955050
2 changed files with 10 additions and 5 deletions

View File

@ -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:

View File

@ -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