mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Remove Unicode PUA characters https://github.com/siyuan-note/siyuan/issues/13291
This commit is contained in:
parent
18f68ac715
commit
7446599c0f
18 changed files with 29 additions and 22 deletions
|
|
@ -248,7 +248,7 @@ func Tesseract(imgAbsPath string) (ret []map[string]interface{}) {
|
|||
ret = append(ret, dataMap)
|
||||
}
|
||||
|
||||
tsv = gulu.Str.RemoveInvisible(tsv)
|
||||
tsv = RemoveInvalid(tsv)
|
||||
tsv = RemoveRedundantSpace(tsv)
|
||||
msg := fmt.Sprintf("OCR [%s] [%s]", html.EscapeString(info.Name()), html.EscapeString(GetOcrJsonText(ret)))
|
||||
PushStatusBar(msg)
|
||||
|
|
@ -266,7 +266,7 @@ func GetOcrJsonText(jsonData []map[string]interface{}) (ret string) {
|
|||
}
|
||||
}
|
||||
}
|
||||
ret = gulu.Str.RemoveInvisible(ret)
|
||||
ret = RemoveInvalid(ret)
|
||||
ret = RemoveRedundantSpace(ret)
|
||||
return ret
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue