Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Tesseract langs support jpn https://github.com/siyuan-note/siyuan/issues/14986

Danielac5c49579c70
diff --git a/kernel/util/ocr.go b/kernel/util/ocr.go
index f4fc44a7d0..7aabfc7e56 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)
}
}