James R. Barlow
|
b1da09f141
|
Add plugin for setting logging console
So that we are not tied to tqdm.
|
2021-01-31 02:29:11 -08:00 |
|
James R. Barlow
|
aa0ec40102
|
Change license of all GPLv3 files to MPL-2.0
https://github.com/jbarlow83/OCRmyPDF/issues/600
|
2020-08-05 00:44:42 -07:00 |
|
James R. Barlow
|
addc2cbad0
|
Enable pikepdf mmap and set up signal handlers
|
2020-07-22 00:19:50 -07:00 |
|
James R. Barlow
|
64891c2fc3
|
Pre-release delinting
|
2020-06-09 15:27:14 -07:00 |
|
James R. Barlow
|
9bccff4f88
|
Move Tesseract specific arguments to plugin
|
2020-05-16 03:24:31 -07:00 |
|
James R. Barlow
|
2bd586e093
|
Compare requested languages to OCR engine instead of tesseract directly
Also refactoring to facilitating validation needing the plugin manager.
|
2020-05-16 01:50:37 -07:00 |
|
James R. Barlow
|
39888ae8c9
|
Rename install_cli to add_options
|
2020-05-06 01:10:09 -07:00 |
|
James R. Barlow
|
c85278b31d
|
Delinting
|
2020-05-03 00:53:29 -07:00 |
|
James R. Barlow
|
e02f6c1e97
|
Support plugin invocation with API
|
2020-05-02 03:34:31 -07:00 |
|
James R. Barlow
|
23d558ad8c
|
Allow plugins to add command line arguments
|
2020-05-02 01:37:24 -07:00 |
|
James R. Barlow
|
2c07515907
|
macOS - use spawn for multiprocessing
See bpo-33725. This is the default for 3.8, opt-in for 3.7 and older.
|
2020-04-26 03:49:40 -07:00 |
|
James R. Barlow
|
d146d2b65c
|
The Great Logging Refactor
Remove all instances of logger object being passed as parameters.
This was a holdover from ruffus, and complicated a lot of simple things.
|
2020-04-14 23:59:33 -07:00 |
|
James R. Barlow
|
5f00e4f9d8
|
Sort imports
|
2019-07-27 04:51:52 -07:00 |
|
James R. Barlow
|
eb5200d26a
|
Change most tests to use ocrmypdf API instead of subprocess
The main benefit of this is code coverage gains can actually follow it.
Also removes most ugly os.environ hacks.
|
2019-06-03 01:45:27 -07:00 |
|
James R. Barlow
|
ed236e0c27
|
Begin API documentation
|
2019-05-24 01:05:32 -07:00 |
|
James R. Barlow
|
805aa776ad
|
Re-disable progress bar when not connected to tty
|
2019-05-23 02:00:35 -07:00 |
|
James R. Barlow
|
09ca1bee97
|
Add progress bar to optimize and add option to disable it
|
2019-05-22 15:31:48 -07:00 |
|
James R. Barlow
|
32a076c039
|
Refactor validation and exceptions
CLI now tracks check_options exceptions. API now works more like
an API, without an exception handler,
because the caller should provide one.
|
2019-05-20 18:01:17 -07:00 |
|
James R. Barlow
|
2fdaa76a0d
|
Refactor configure_logging
|
2019-05-20 14:54:34 -07:00 |
|
James R. Barlow
|
7ee0c52a57
|
Refactor cli into basic high level api
|
2019-05-19 22:34:45 -07:00 |
|
James R. Barlow
|
24da92d39e
|
Fix extra blank lines in output messages in Python 3.6
|
2019-05-17 14:56:33 -07:00 |
|
James R. Barlow
|
13ab23ba54
|
Refactor weave_layers, introduce progress bar
Fixes a bug in this branch where --sidecar would fail by trying to iterator
the executor futures twice.
|
2019-05-16 14:57:31 -07:00 |
|
James R. Barlow
|
19263f00c6
|
Additional logging fixes; silence extremely verbose pdfminer logging
|
2019-05-16 13:44:44 -07:00 |
|
James R. Barlow
|
471cdea232
|
Move app specific settings a library may not want to __main__
|
2019-05-16 01:29:26 -07:00 |
|
James R. Barlow
|
9d750828c7
|
Make logging format consistent with v8.3.0
|
2019-05-16 00:48:40 -07:00 |
|
James R. Barlow
|
5e025c3382
|
Reinstate log level in messages to be closer to old behavior
|
2019-05-15 15:46:36 -07:00 |
|
James R. Barlow
|
4410503349
|
More fixes to logging and disabled tests
|
2019-05-15 03:08:09 -07:00 |
|
James R. Barlow
|
c904b430b6
|
Merge master into api branch; all test pass
|
2019-05-14 16:33:02 -07:00 |
|
James R. Barlow
|
91cb092aa0
|
Remove PyCharm debugger hack
|
2019-04-18 10:15:02 -07:00 |
|
mawi
|
1c44fd4f3b
|
fix: typo
|
2019-04-08 15:01:04 +02:00 |
|
mawi
|
c92ccc6134
|
fix: tests
|
2019-04-08 14:57:42 +02:00 |
|
mawi
|
6590875756
|
feat: add triage step
remove tqdm demo
|
2019-04-08 10:26:56 +02:00 |
|
mawi
|
783a128bd1
|
feat: move to sync (none ETL) implementation - remove ruffus
|
2019-04-04 21:02:38 +02:00 |
|
Martin Wind
|
aa512b6181
|
feat: move to sync (none ETL) implementation (WIP)
|
2019-04-02 20:03:09 +02:00 |
|
Martin Wind
|
a4667b5656
|
refactor: move ruffus related code to one file
|
2019-03-28 20:16:10 +01:00 |
|
Martin Wind
|
2fa43ecf09
|
refactor: split argparse and run_pipline
|
2019-03-26 08:10:20 +01:00 |
|
James R. Barlow
|
9c7ee2bf23
|
Better help text for --verbose
|
2019-03-17 13:29:25 -07:00 |
|
James R. Barlow
|
1b4542aa77
|
Further fixes to external program version testing
|
2019-03-07 14:27:16 -08:00 |
|
James R. Barlow
|
902bda43e3
|
main: fix version testing unnecessarily throwing exception to itself
|
2019-03-05 22:32:06 -08:00 |
|
James R. Barlow
|
f7da63f68b
|
main: fix redundant argument test
|
2019-03-05 22:29:29 -08:00 |
|
James R. Barlow
|
67a405c6b7
|
Move install-time external program checks out of setup.py
We did runtime tests for several of them anyway, and it's better to do
at runtime since config may change after installation.
|
2019-03-03 03:26:56 -08:00 |
|
James R. Barlow
|
4f06920224
|
Be os.nice()-r
|
2019-02-07 17:24:47 -08:00 |
|
James R. Barlow
|
ae7844ad88
|
--clean-final implies --clean
It's never made sense to leave it out before; might as well introduce it.
|
2019-02-07 17:08:08 -08:00 |
|
James R. Barlow
|
9a4493f211
|
Add --unpaper-args
Needs test code and stricter validation
|
2019-01-18 05:33:28 -08:00 |
|
James R. Barlow
|
c771938907
|
Convert to f-strings where it makes sense
|
2018-12-31 15:01:19 -08:00 |
|
James R. Barlow
|
05152a8af9
|
Remove always-false Tess v3 tests
|
2018-12-30 02:01:05 -08:00 |
|
James R. Barlow
|
0880b16491
|
Sort imports with isort
|
2018-12-30 01:28:15 -08:00 |
|
James R. Barlow
|
06308a22ce
|
Reformat with black
|
2018-12-30 01:27:49 -08:00 |
|
James R. Barlow
|
8b90c45437
|
Drop support for Tesseract 3
|
2018-12-30 00:47:12 -08:00 |
|
James R. Barlow
|
40c0acd3f2
|
Support using --force-ocr and --threshold or --mask-barcodes together
|
2018-11-28 15:16:24 -08:00 |
|