From 16c4e081465e46b77be244db513e01b1030703fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Sun, 20 Oct 2024 20:55:17 +0800 Subject: [PATCH] ... --- src/LunaTranslator/ocrengines/local.py | 3 +++ src/LunaTranslator/ocrengines/windowsocr.py | 3 +++ src/plugins/CMakeLists.txt | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/LunaTranslator/ocrengines/local.py b/src/LunaTranslator/ocrengines/local.py index e63d587b..43b2b694 100644 --- a/src/LunaTranslator/ocrengines/local.py +++ b/src/LunaTranslator/ocrengines/local.py @@ -185,6 +185,9 @@ def question(dialog: QDialog): class OCR(baseocr): + def langmap(self): + return {"cht": "cht"} + def initocr(self): self._ocr = None self._savelang = None diff --git a/src/LunaTranslator/ocrengines/windowsocr.py b/src/LunaTranslator/ocrengines/windowsocr.py index 278820d2..05eb1f6e 100644 --- a/src/LunaTranslator/ocrengines/windowsocr.py +++ b/src/LunaTranslator/ocrengines/windowsocr.py @@ -48,6 +48,9 @@ def question(dialog: QDialog): class OCR(baseocr): + def langmap(self): + return {"cht": "cht"} + def initocr(self): self.supportmap = initsupports() diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt index 763bca78..1f61e904 100644 --- a/src/plugins/CMakeLists.txt +++ b/src/plugins/CMakeLists.txt @@ -29,7 +29,7 @@ include(generate_product_version) set(VERSION_MAJOR 5) set(VERSION_MINOR 45) -set(VERSION_PATCH 2) +set(VERSION_PATCH 3) add_library(pch pch.cpp) target_precompile_headers(pch PUBLIC pch.h)