From 05152a8af90f903649b9705cd2443203c4168bc0 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Sun, 30 Dec 2018 02:01:05 -0800 Subject: [PATCH] Remove always-false Tess v3 tests --- src/ocrmypdf/__main__.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/ocrmypdf/__main__.py b/src/ocrmypdf/__main__.py index 5f9b3573..a626186b 100755 --- a/src/ocrmypdf/__main__.py +++ b/src/ocrmypdf/__main__.py @@ -671,8 +671,6 @@ def check_options_optimizing(options, log): def check_options_advanced(options, log): - if options.tesseract_oem and not tesseract.v4(): - log.warning("--tesseract-oem requires Tesseract 4.x -- argument ignored") if options.pdfa_image_compression != 'auto' and options.output_type.startswith( 'pdfa' ): @@ -680,7 +678,6 @@ def check_options_advanced(options, log): "--pdfa-image-compression argument has no effect when " "--output-type is not 'pdfa', 'pdfa-1', or 'pdfa-2'" ) - if tesseract.v4() and (options.user_words or options.user_patterns): log.warning('Tesseract 4.x ignores --user-words, so this has no effect')