From 1dd263d59dd2d4161ef0f7cdb8bdbbbf791d843d Mon Sep 17 00:00:00 2001 From: guoh064 <50830808+guoh064@users.noreply.github.com> Date: Tue, 22 Oct 2024 23:55:01 +0800 Subject: [PATCH] upd: [JP] get_zone_name correction --- module/os/map_operation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/os/map_operation.py b/module/os/map_operation.py index 422d3188f..ab11e7bfb 100644 --- a/module/os/map_operation.py +++ b/module/os/map_operation.py @@ -90,9 +90,9 @@ class OSMapOperation(MapOrderHandler, MissionHandler, PortHandler, StorageHandle name = name.split('セ')[0] # Remove '安全海域' or '秘密海域' at the end of jp ocr. name = name.rstrip('安全秘密異常要塞海域') - # Kanji '一' and '力' are not used, while Katakana 'ー' and 'カ' are misread as Kanji sometimes. + # Kanji '一', '力' and '卜' are not used, while Katakana 'ー', 'カ' and 'ト' are misread as Kanji sometimes. # Katakana 'ペ' may be misread as Hiragana 'ぺ'. - name = name.replace('一', 'ー').replace('力', 'カ').replace('ぺ', 'ペ') + name = name.replace('一', 'ー').replace('力', 'カ').replace('卜', 'ト').replace('ぺ', 'ペ') name = name.replace('ジブフルタル', 'ジブラルタル') name = name.replace('タント', 'タラント').replace('タフント', 'タラント') return name