bump base: update tesseract, leptonica and libk2pdfopt

- update leptonica to 1.84.1
- update tesseract to 5.3.4
- update libk2pdfopt to 2.55
This commit is contained in:
Benoit Pierre
2024-06-01 00:25:59 +02:00
committed by Frans de Jonge
parent 10e6f489d0
commit 4c6919ac2a
4 changed files with 5 additions and 5 deletions

2
base

Submodule base updated: 6747469716...be04eb049d

View File

@@ -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

View File

@@ -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,

2
kodev
View File

@@ -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."
;;
*)