mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -116,7 +116,15 @@ func initTesseract() {
|
||||
logging.LogWarnf("no eng tesseract lang found")
|
||||
return
|
||||
}
|
||||
if !gulu.Str.Contains("chi_*", langs) {
|
||||
|
||||
foundChi := false
|
||||
for _, lang := range langs {
|
||||
if strings.Contains(lang, "chi") {
|
||||
foundChi = true
|
||||
break
|
||||
}
|
||||
}
|
||||
if !foundChi {
|
||||
logging.LogWarnf("no chi_* tesseract lang found")
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user