mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-31 13:58:49 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
73cb6a2112
1 changed files with 9 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue