James R. Barlow
|
346da95899
|
Suppress loglevel since we have color now
|
2020-04-15 00:09:36 -07:00 |
|
James R. Barlow
|
f4f7946a0c
|
Add colored logs
|
2020-04-15 00:05:38 -07:00 |
|
James R. Barlow
|
c2919f2e1c
|
Reinstate logging of page numbers
|
2020-04-15 00:05:23 -07:00 |
|
James R. Barlow
|
4c029e973f
|
Fix isinstance(..,str)
|
2020-04-14 23:53:52 -07:00 |
|
James R. Barlow
|
4a640b8dcd
|
Fix language argument not working as list
Fixes #523
|
2020-04-14 23:18:52 -07:00 |
|
James R. Barlow
|
58ec56180a
|
Add a few more type annotations to public APIs
|
2020-04-10 13:00:19 -07:00 |
|
James R. Barlow
|
ce97af5a79
|
Add OCR quality measurement API
|
2020-01-17 03:10:27 -08:00 |
|
James R. Barlow
|
e2a563cc76
|
logging: create a debug log when -k parameter is issued
|
2020-01-01 16:47:15 -08:00 |
|
James R. Barlow
|
c36e9950ae
|
tests: test TqdmConsole
|
2019-12-30 17:51:09 -08:00 |
|
James R. Barlow
|
b0e92760a2
|
tests: add coverage for helpers
|
2019-12-30 15:52:10 -08:00 |
|
James R. Barlow
|
c5edff2c2f
|
Sort imports
|
2019-12-19 15:31:18 -08:00 |
|
James R. Barlow
|
1c1b60fa9f
|
Add typing hints for ocr() function
|
2019-12-06 15:10:54 -08:00 |
|
James R. Barlow
|
06a1f987d4
|
Use _OCRMYPDF_TEST_PATH for testing and .py stubs to simulate symlinks
|
2019-12-04 21:01:06 -08:00 |
|
James R. Barlow
|
3f92867ae6
|
Fix TypeError "environment can only contain strings"
Apparently Windows Python doesn't coerce pathlib.Path to str.
|
2019-12-04 17:13:51 -08:00 |
|
James R. Barlow
|
a8565bac6e
|
Fix any False in the ocrmypdf.ocr() API being set to True
|
2019-09-15 01:47:31 -07:00 |
|
James R. Barlow
|
6e8b0c3194
|
Fix py36 test including 37
|
2019-09-15 01:47:10 -07:00 |
|
James R. Barlow
|
db4598f76a
|
Add PDF linearization
|
2019-07-27 16:15:48 -07:00 |
|
James R. Barlow
|
5f00e4f9d8
|
Sort imports
|
2019-07-27 04:51:52 -07:00 |
|
James R. Barlow
|
e4cfcec5f3
|
docs: some cleanup
|
2019-07-27 04:04:33 -07:00 |
|
James R. Barlow
|
f83de20c37
|
Remove plugins (for now)
It's holding up too many other useful,
releaseable changes.
|
2019-07-27 01:41:14 -07:00 |
|
James R. Barlow
|
cbeddab35f
|
rename ocrmypdf.run -> ocrmypdf.ocr
|
2019-07-07 02:11:44 -07:00 |
|
James R. Barlow
|
11a57c7a17
|
Drop --mask-barcodes feature
|
2019-06-23 16:54:43 -07:00 |
|
James R. Barlow
|
16990890d8
|
Remove "from ocrmypdf import ocrmypdf"
Messes up future imports from ocrmypdf, so don't do it.
|
2019-06-12 17:52:25 -07:00 |
|
James R. Barlow
|
cfb11559d5
|
logging: capture warnings too
|
2019-06-12 17:28:02 -07:00 |
|
James R. Barlow
|
8b8de7cc1d
|
Add new --pages feature to limit OCR to only specific pages
|
2019-06-12 17:27:47 -07:00 |
|
James R. Barlow
|
0bbd6885e2
|
Make the go/no-go decision pluggable
|
2019-06-06 23:07:46 -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
|
45a361d112
|
Add option to use threads instead of processes
Mainly since they are more convenient for debugging
|
2019-05-31 01:56:16 -07:00 |
|
James R. Barlow
|
7566d4b768
|
Introduce plugins/filters
|
2019-05-27 16:55:04 -07:00 |
|
James R. Barlow
|
24855045e1
|
Provisionally add filters
|
2019-05-25 16:23:39 -07:00 |
|
James R. Barlow
|
ed236e0c27
|
Begin API documentation
|
2019-05-24 01:05:32 -07:00 |
|
James R. Barlow
|
db6aa22eae
|
Progress bar: unit types
|
2019-05-23 02:00:47 -07:00 |
|
James R. Barlow
|
a139e64c67
|
api: short-circuit exception handler, as caller should provide their own
|
2019-05-22 18:30:30 -07:00 |
|
James R. Barlow
|
db69b4d11a
|
Improve argparse behavior for its role in making the API work
|
2019-05-22 15:55:48 -07:00 |
|
James R. Barlow
|
23dd77ce0f
|
api: fix progress_bar_friendly=False
|
2019-05-22 15:31:03 -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 |
|