James R. Barlow
|
e38d569d8f
|
languages: kwargs are overkill
|
2023-10-24 00:54:30 -07:00 |
|
James R. Barlow
|
0856750ee2
|
Fix exit code error on Ghostscript failure
|
2023-10-24 00:54:30 -07:00 |
|
James R. Barlow
|
05721ba84a
|
Fix error on no languages available
|
2023-10-24 00:54:30 -07:00 |
|
James R. Barlow
|
38c3422e5e
|
Automatically set document language to OCR language
|
2023-10-24 00:54:30 -07:00 |
|
James R. Barlow
|
d153a6f6df
|
Refactor metadata handling
|
2023-10-24 00:54:30 -07:00 |
|
James R. Barlow
|
1a7738a925
|
Refactor -migrate metadata repair to new module
|
2023-10-24 00:54:30 -07:00 |
|
James R. Barlow
|
8985c0dfe9
|
Refactor setup_pipeline to context manager
|
2023-10-24 00:52:31 -07:00 |
|
James R. Barlow
|
ebfe008432
|
Refactor logging record thread local storage
|
2023-10-24 00:52:31 -07:00 |
|
James R. Barlow
|
1f16eb6f50
|
Refactor main pipeline into discrete pipelines
- test_ghostscript_pdfa_failure fails
- haven't dealt with logging record factories
Further refactoring and duplicate elimination
|
2023-10-24 00:52:31 -07:00 |
|
James R. Barlow
|
cbb0868ae3
|
Add hocr to ocr pdf pipeline
|
2023-10-24 00:52:31 -07:00 |
|
James R. Barlow
|
68bb38d0ad
|
pdf_to_hocr: improve plugin handling
|
2023-10-24 00:52:31 -07:00 |
|
James R. Barlow
|
0443e87345
|
Introduce pdf_to_hocr API
|
2023-10-24 00:52:31 -07:00 |
|
James R. Barlow
|
b3de5833d3
|
Refactor conversion of ocrmypdf.ocr() arguments to cmdline
|
2023-10-24 00:52:31 -07:00 |
|
James R. Barlow
|
95b14ee282
|
Refactor lossless reconstruction setter into separate function
Still messy but good enough as a start.
|
2023-10-24 00:52:31 -07:00 |
|
James R. Barlow
|
07b89e6a19
|
Plugin manager: set reasonable default when called without params
|
2023-10-24 00:52:31 -07:00 |
|
James R. Barlow
|
8991d2cb33
|
Refactor main pipeline and start hocr pipeline
|
2023-10-24 00:52:31 -07:00 |
|
James R. Barlow
|
86a20c4130
|
Refactor exec_page_sync to outputs
|
2023-10-24 00:52:31 -07:00 |
|
James R. Barlow
|
6827a6efe8
|
Refactor exec_page_sync -> extract _process_page
|
2023-10-24 00:52:31 -07:00 |
|
James R. Barlow
|
93fda0dd00
|
Detect and warn about Tagged PDFs
|
2023-10-12 01:03:09 -07:00 |
|
James R. Barlow
|
d4110e78cb
|
Fix "pikepdf mmap disabled" spam on macOS
|
2023-10-11 01:24:29 -07:00 |
|
James R. Barlow
|
5285d68fcc
|
Add check for filenotfound due to being inside a snap
|
2023-10-11 01:02:50 -07:00 |
|
James R. Barlow
|
9346d1f970
|
Simplify deep nested with-block
|
2023-10-09 02:30:30 -07:00 |
|
James R. Barlow
|
0687568e1b
|
sync: update documentation
|
2023-10-04 00:05:27 -07:00 |
|
James R. Barlow
|
3086cfc3d9
|
pipeline: documentation and tweak merge_sidecars
|
2023-10-04 00:05:19 -07:00 |
|
James R. Barlow
|
91a14660b3
|
Require Pillow >= 10.0.1 and drop shims for older versions
|
2023-10-04 00:04:28 -07:00 |
|
James R. Barlow
|
539f0ee0ce
|
Document some missing CLI options to API
|
2023-10-03 23:54:24 -07:00 |
|
James R. Barlow
|
7172817cd6
|
Replace ExitStack with contextmanager
|
2023-10-02 16:52:06 -07:00 |
|
James R. Barlow
|
364799fc3e
|
Fix typing for pdinfo.layout and modernize
Also changed handling of undefined chars to be more Liskov-consistent with parent class.
|
2023-10-01 01:18:22 -07:00 |
|
James R. Barlow
|
f4c211fa2d
|
Use Python 3.9-style type hinting for tuple[] and AbstractSet -> Set
|
2023-10-01 00:09:05 -07:00 |
|
James R. Barlow
|
113a6b45bd
|
ruff autofixes (mostly typing.* -> collections.abc.*)
|
2023-10-01 00:02:53 -07:00 |
|
James R. Barlow
|
e9419d2c40
|
Update notes on concurrency
|
2023-09-30 17:05:58 -07:00 |
|
James R. Barlow
|
c8e6f20f8d
|
Change 32-bit message from error to warning
|
2023-09-26 20:03:06 -07:00 |
|
James R. Barlow
|
d5128c5cf5
|
Further improvements to image DPI calculation
|
2023-09-26 00:28:54 -07:00 |
|
James R. Barlow
|
270e31fa67
|
Fix pluginmanager typing
|
2023-09-25 14:42:48 -07:00 |
|
James R. Barlow
|
85e31d0a19
|
Tidy imports and line length
|
2023-09-25 01:04:01 -07:00 |
|
James R. Barlow
|
ea36aedb5f
|
Overhaul version checkers to prefer Version to str
|
2023-09-25 00:59:44 -07:00 |
|
James R. Barlow
|
bd4d44e182
|
Remove Python 3.8 shim for missing str.removeprefix
|
2023-09-25 00:31:48 -07:00 |
|
James R. Barlow
|
8fcf358934
|
Rename pike local variable to pdf for consistency
|
2023-09-25 00:22:26 -07:00 |
|
James R. Barlow
|
47b0f28564
|
Minor documentation and typing fixes
|
2023-09-25 00:19:48 -07:00 |
|
James R. Barlow
|
7018e2b247
|
Refactor ghostscript error message deduplicating
|
2023-09-24 20:22:04 -07:00 |
|
James R. Barlow
|
8d12ecb798
|
Refactor docinfo repair code
|
2023-09-24 20:21:26 -07:00 |
|
James R. Barlow
|
f04f45545c
|
ghostscript: fix missing type annotation
|
2023-09-24 01:19:56 -07:00 |
|
James R. Barlow
|
a3a083c125
|
logging: Avoid possible multiplication by None
|
2023-09-23 15:08:55 -07:00 |
|
James R. Barlow
|
d855f63985
|
Remove single dispatch version of calculate_downsample
|
2023-09-23 15:05:04 -07:00 |
|
James R. Barlow
|
d4863cbf0f
|
helpers: fix typing
|
2023-09-23 14:59:11 -07:00 |
|
James R. Barlow
|
7b8f081fbf
|
Enable pikepdf mmap again
|
2023-09-23 14:50:56 -07:00 |
|
James R. Barlow
|
7d33039bcd
|
Add comment re: reportlab shim
|
2023-09-21 00:27:45 -07:00 |
|
James R. Barlow
|
fde886baf4
|
Revert "Drop reportlab warning shim"
This reverts commit 162a47f98e.
|
2023-09-21 00:26:50 -07:00 |
|
James R. Barlow
|
5667424530
|
Lower pngquant version req
|
2023-09-21 00:13:03 -07:00 |
|
James R. Barlow
|
0388c23ae7
|
Merge branch 'feature/jbig2thresh' into v15
|
2023-09-21 00:07:05 -07:00 |
|