File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- --- a/src/ocrmypdf/_exec/tesseract.py 2025 -02-27 00:16:18 .000000000 +0100
2- +++ b/src/ocrmypdf/_exec/tesseract.py 2025-03-17 11:56:25.146770854 +0100
3- @@ -95 ,7 +95 ,7 @@
4-
5-
6- def version() -> Version:
7- - return TesseractVersion(get_version('tesseract', regex=r 'tesseract\s(.+)'))
8- + return TesseractVersion(get_version( 'tesseract-ocr', regex=r'tesseract\s(.+)'))
9-
10-
11- def has_thresholding() -> bool:
12- @@ -113 ,7 +113 ,7 @@
1+ --- a/src/ocrmypdf/_exec/tesseract.py 2020 -02-02 01: 00:00 .000000000 +0100
2+ +++ b/src/ocrmypdf/_exec/tesseract.py 2026-05-28 15:12:12.345883573 +0200
3+ @@ -117 ,7 +117 ,7 @@
4+
5+
6+ PROBE = ToolProbe(
7+ - program= 'tesseract',
8+ + program= 'tesseract-ocr',
9+ version_regex=r'tesseract\s(.+)',
10+ version_cls=TesseractVersion,
11+ )
12+ @@ -140 ,7 +140 ,7 @@
1313 msg += output
1414 return msg
15-
15+
1616- args_tess = ['tesseract', '--list-langs']
1717+ args_tess = ['tesseract-ocr', '--list-langs']
1818 try:
1919 proc = run(
2020 args_tess,
21- @@ -135 ,7 +135 ,7 @@
22-
23-
21+ @@ -162 ,7 +162 ,7 @@
22+
23+
2424 def tess_base_args(langs: list[str], engine_mode: int | None) -> list[str]:
2525- args = ['tesseract']
2626+ args = ['tesseract-ocr']
2727 if langs:
2828 args.extend(['-l', '+'.join(langs)])
2929 if engine_mode is not None:
30+
Original file line number Diff line number Diff line change 11# Template file for 'python3-ocrmypdf'
22pkgname=python3-ocrmypdf
3- version=16.13 .0
3+ version=17.5 .0
44revision=1
55build_style=python3-pep517
66hostmakedepends="hatchling hatch-vcs"
77depends="python3-deprecation img2pdf python3-packaging python3-pdfminer.six
88 python3-pikepdf python3-Pillow python3-pluggy python3-reportlab python3-rich
9- python3-pillow_heif tesseract-ocr ghostscript unpaper pngquant jbig2enc qpdf"
9+ python3-pillow_heif tesseract-ocr ghostscript unpaper pngquant jbig2enc qpdf
10+ python3-fpdf2 python3-pydantic python3-uharfbuzz"
1011short_desc="Add OCR text layer to scanned PDF files"
1112maintainer="Mateusz Sylwestrzak <slymattz@gmail.com>"
1213license="MPL-2.0"
1314homepage="https://github.com/ocrmypdf/OCRmyPDF"
15+ changelog="https://raw.githubusercontent.com/ocrmypdf/OCRmyPDF/main/docs/releasenotes/version${version%%.*}.md"
1416distfiles="${PYPI_SITE}/o/ocrmypdf/ocrmypdf-${version}.tar.gz"
15- checksum=29d37e915234ce717374863a9cc5dd32d29e063dfe60c51380dda71254c88248
17+ checksum=b4865cd5578614b69e759862035d66fa0a31c20bdad35dfa03b9322751f8d552
18+ noverifypydeps=yes # pypdfium2 and pdfium remain unpackaged, so let ocrmypdf fall back to Ghostscript (see https://ocrmypdf.readthedocs.io/en/latest/cookbook.html#select-a-rasterizer).
19+
20+ post_install() {
21+ vcompletion misc/completion/ocrmypdf.bash bash ocrmypdf
22+ vcompletion misc/completion/ocrmypdf.fish fish ocrmypdf
23+ }
You can’t perform that action at this time.
0 commit comments