James R. Barlow
|
43ab7c88d7
|
Remove os_environ() context manager
|
2019-12-04 17:37:38 -08:00 |
|
James R. Barlow
|
ca9669742d
|
Move gs tests to test_ghostscript
|
2019-12-04 17:14:27 -08:00 |
|
James R. Barlow
|
8a1dddc3ee
|
Don't worry about closed streams on Windows
|
2019-12-04 17:14:27 -08:00 |
|
James R. Barlow
|
0cd424ffcb
|
Enforce str-only environment for Windows since it's more strict
|
2019-12-04 17:14:27 -08:00 |
|
James R. Barlow
|
fde550f9a7
|
test: Replace many instances of run_ocrmypdf in subprocess with inline
|
2019-12-04 17:14:27 -08:00 |
|
James R. Barlow
|
a3726e4ce3
|
Fix test_metadata: use mmap in a Windows and POSIX compatible way
|
2019-12-04 17:13:52 -08:00 |
|
James R. Barlow
|
4ab0a8ff35
|
Fix test_single_page_inline_image - remove temp file
|
2019-12-04 17:13:51 -08:00 |
|
James R. Barlow
|
37f6f72df3
|
tests: a few Windows fixes
|
2019-12-04 17:13:51 -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
|
fe7c69ce95
|
leptonica: don't open files by name; use memory buffers
Avoids encoding issues and makes error trap unnecessary in some cases.
|
2019-12-04 17:13:51 -08:00 |
|
James R. Barlow
|
9baccee8c5
|
leptonica: Handle API change for pixFindPageForeground
|
2019-12-04 17:13:51 -08:00 |
|
James R. Barlow
|
72d3ee3a87
|
Refactor symlink usage to support Windows
|
2019-12-04 17:13:51 -08:00 |
|
James R. Barlow
|
5f5421f23d
|
test: further fixes to test_report_file_size
|
2019-11-12 01:14:21 -08:00 |
|
James R. Barlow
|
703b6db95c
|
test: fix test_report_file_size
|
2019-11-11 23:00:08 -08:00 |
|
James R. Barlow
|
45bea1c0e0
|
Import and docstring cleanup
|
2019-11-09 14:56:30 -08:00 |
|
James R. Barlow
|
db914d4cd1
|
Report missing optional dependencies as possible cause of file size increase
|
2019-11-09 14:21:57 -08:00 |
|
James R. Barlow
|
c3719d3b72
|
Dockerfile: remove venv from Ubuntu image; tweak reqs
|
2019-11-03 23:39:40 -08:00 |
|
James R. Barlow
|
80651fe12c
|
Fix test suite error
|
2019-10-24 18:17:03 -07:00 |
|
James R. Barlow
|
b332d76782
|
Mention when we default to English and the system locale is not English
Closes #337
|
2019-10-22 01:49:38 -07:00 |
|
James R. Barlow
|
4d26867dee
|
Delinting
|
2019-09-20 17:17:11 -07:00 |
|
James R. Barlow
|
68c852acec
|
Remove test_tesseract_config_invalid from suite
Also causes problems in CI
|
2019-09-18 13:28:02 -07: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
|
d7b7ca0574
|
v9.0.3 notes; Remove test_tesseract_config_notfound from suite
|
2019-09-05 13:39:43 -07:00 |
|
James R. Barlow
|
944d59e5ad
|
Fix --print-parameters issue when chi_sim is not installed
|
2019-09-04 01:17:52 -07:00 |
|
James R. Barlow
|
19ba3ae011
|
Allow test_german to xfail if deu language is not installed
|
2019-09-03 17:38:54 -07:00 |
|
James R. Barlow
|
feff1e38bb
|
Use context managers to ensure Pillow images are closed
|
2019-09-03 17:19:12 -07:00 |
|
James R. Barlow
|
c8d6ea6b10
|
Fix tests broken by --print-parameters change
|
2019-09-03 17:17:24 -07:00 |
|
James R. Barlow
|
b0d9775343
|
Attempt to resolve black-inversion issue
|
2019-08-31 01:25:36 -07:00 |
|
James R. Barlow
|
638eb556ef
|
Reactivate user-words test that was always skipped
|
2019-08-27 14:52:59 -07:00 |
|
James R. Barlow
|
7755c5c5a7
|
tests: fix interpretation of None as omitted argument
|
2019-08-11 16:58:22 -07:00 |
|
James R. Barlow
|
793348a47c
|
tests: mark test as requiring pngquant
|
2019-08-11 16:58:22 -07:00 |
|
James R. Barlow
|
a1a7b973e9
|
tests: split out stdin/stdout tests
|
2019-08-09 01:23:49 -07:00 |
|
James R. Barlow
|
77bbc22c50
|
Ensure --image-dpi on non-image produces a warning
|
2019-08-09 01:08:16 -07:00 |
|
James R. Barlow
|
df32008667
|
Ensure test_optimize passes
Linearization sends it over the edge
|
2019-07-27 16:47:53 -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
|
0c066d1d53
|
Expand scope of --pages testing
|
2019-07-27 04:26:23 -07:00 |
|
James R. Barlow
|
5304c631ec
|
Don't warn about --user-words in Tesseract 4.1 or later
|
2019-07-27 02:14:59 -07:00 |
|
James R. Barlow
|
6fbeb6347d
|
Merge api (without plugins)
|
2019-07-27 02:04:01 -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
|
12769b96e5
|
Drop support for omitting pdfminer.six
|
2019-07-10 13:37:01 -07:00 |
|
James R. Barlow
|
cbeddab35f
|
rename ocrmypdf.run -> ocrmypdf.ocr
|
2019-07-07 02:11:44 -07:00 |
|
James R. Barlow
|
eeae6f8292
|
test: Add syntax checks for shell completions
|
2019-07-02 13:49:17 -07:00 |
|
James R. Barlow
|
9b60d3e285
|
Improve testing of _validation.py
|
2019-06-22 02:33:04 -07:00 |
|
James R. Barlow
|
c357d4146e
|
Restructure ocrmypdf.pdfinfo
|
2019-06-20 03:10:41 -07:00 |
|
James R. Barlow
|
51ed381bfc
|
Rename weave -> graft
|
2019-06-13 01:16:56 -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
|
8b8de7cc1d
|
Add new --pages feature to limit OCR to only specific pages
|
2019-06-12 17:27:47 -07:00 |
|
James R. Barlow
|
20ad032977
|
Fix some error messages that printed directly to sys.stderr instead of logging
|
2019-06-05 03:07:48 -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 |
|