diff --git a/base b/base index 674746971..be04eb049 160000 --- a/base +++ b/base @@ -1 +1 @@ -Subproject commit 67474697169dd88800bc37af5b7fb87ce0596ee8 +Subproject commit be04eb049dae438cf3347a52de7828fbb181123f diff --git a/frontend/apps/reader/modules/readerhighlight.lua b/frontend/apps/reader/modules/readerhighlight.lua index 856089a31..ae9faf14d 100644 --- a/frontend/apps/reader/modules/readerhighlight.lua +++ b/frontend/apps/reader/modules/readerhighlight.lua @@ -1544,9 +1544,9 @@ No OCR results or no language data. KOReader has a build-in OCR engine for recognizing words in scanned PDF and DjVu documents. In order to use OCR in scanned pages, you need to install tesseract trained data for your document language. -You can download language data files for version 3.04 from https://tesseract-ocr.github.io/tessdoc/Data-Files +You can download language data files for Tesseract version 5.3.4 from https://tesseract-ocr.github.io/tessdoc/Data-Files -Copy the language data files for Tesseract 3.04 (e.g., eng.traineddata for English and spa.traineddata for Spanish) into koreader/data/tessdata]]) +Copy the language data files (e.g., eng.traineddata for English and spa.traineddata for Spanish) into koreader/data/tessdata]]) function ReaderHighlight:lookup(selected_text, selected_link) -- convert sboxes to word boxes diff --git a/frontend/document/koptinterface.lua b/frontend/document/koptinterface.lua index 971e9a503..f3f1e8edf 100644 --- a/frontend/document/koptinterface.lua +++ b/frontend/document/koptinterface.lua @@ -23,7 +23,7 @@ local KoptInterface = { -- If `$TESSDATA_PREFIX` is set, don't override it: let libk2pdfopt honor it -- (which includes checking for data in both `$TESSDATA_PREFIX/tessdata` and -- in `$TESSDATA_PREFIX/` on more recent versions). - tessocr_data = not os.getenv('TESSDATA_PREFIX') and DataStorage:getDataDir().."/data" or nil, + tessocr_data = not os.getenv('TESSDATA_PREFIX') and DataStorage:getDataDir().."/data/tessdata" or nil, ocr_lang = "eng", ocr_type = 3, -- default 0, for more accuracy use 3 last_context_size = nil, diff --git a/kodev b/kodev index 24e671de5..c17f3acfb 100755 --- a/kodev +++ b/kodev @@ -754,7 +754,7 @@ TARGET: # there's no adb run so we do this… adb shell monkey -p org.koreader.launcher${KODEBUG_SUFFIX/-/.} -c android.intent.category.LAUNCHER 1 assert_ret_zero $? - adb logcat KOReader:V luajit-launcher:V dlopen:V "*:E" + adb logcat KOReader:V k2pdfopt:V luajit-launcher:V dlopen:V "*:E" } || echo "Failed to find adb in PATH to interact with Android device." ;; *)