From ac5c49579c7044d1e7cc9de04e9d30850d86c546 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 7 Jun 2025 22:12:57 +0800 Subject: [PATCH] :art: Tesseract langs support jpn https://github.com/siyuan-note/siyuan/issues/14986 --- kernel/util/ocr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/util/ocr.go b/kernel/util/ocr.go index f4fc44a7d..7aabfc7e5 100644 --- a/kernel/util/ocr.go +++ b/kernel/util/ocr.go @@ -340,7 +340,7 @@ func filterTesseractLangs(langs []string) (ret []string) { } else { for _, lang := range langs { if "eng" == lang || strings.HasPrefix(lang, "chi") || "fra" == lang || "spa" == lang || "deu" == lang || - "rus" == lang || "osd" == lang { + "rus" == lang || "jpn" == lang || "osd" == lang { ret = append(ret, lang) } }