diff --git a/src/LunaTranslator/ocrengines/baiduocr_X.py b/src/LunaTranslator/ocrengines/baiduocr_X.py index 134657f2..b38c17b0 100644 --- a/src/LunaTranslator/ocrengines/baiduocr_X.py +++ b/src/LunaTranslator/ocrengines/baiduocr_X.py @@ -133,6 +133,7 @@ class OCR(baseocr): def langmap(self): return { + "auto": "auto_detect", "zh": "CHN_ENG", "en": "ENG", "ja": "JAP", diff --git a/src/LunaTranslator/translator/rengong.py b/src/LunaTranslator/translator/rengong.py index f91a9b42..1bb242f4 100644 --- a/src/LunaTranslator/translator/rengong.py +++ b/src/LunaTranslator/translator/rengong.py @@ -7,6 +7,8 @@ import gobject class TS(basetrans): + _compatible_flag_is_sakura_less_than_5_52_3 = False + def checkfilechanged(self, p1, p): if self.paths == (p1, p): return