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
12c567ee10
Copyright cleanup: relicense example_plugin.py
...
The author is relicensing this file to MIT.
2020-08-05 00:15:33 -07:00
James R. Barlow
d39778ce3a
Clarify copyright status of misc/batch.py, synology.py
...
At the time these files were contributed there was no discussion
of the license that the authors wanted to use, but the project was
MIT licensed at the time. As such, these files deemed to be MIT licensed.
https://github.com/jbarlow83/OCRmyPDF/issues/600
2020-08-05 00:12:44 -07:00
James R. Barlow
e824cdbc4e
Change license of misc/watcher.py to MIT
...
The authors of this file all agreed to relicense it under the MIT license.
https://github.com/jbarlow83/OCRmyPDF/issues/600
2020-08-04 23:57:41 -07:00
James R. Barlow
1d91c09963
Clarify license status of misc/completion/* files
...
These files were contributed when the project license was GPLv3. On
discussion, all known authors of these files agreed to place them
under MIT license.
See https://github.com/jbarlow83/OCRmyPDF/issues/600
2020-08-04 23:53:56 -07:00
James R. Barlow
e821ca46d5
Approve pdfminer.six 20200726
2020-08-03 16:04:16 -07:00
James R. Barlow
a29e4952fb
Document use of mmap
2020-08-03 16:03:54 -07:00
James R. Barlow
4cc0dc6b4a
Additional size increase reasons
2020-08-03 16:03:29 -07:00
James R. Barlow
7263702de9
Remove gs.py (spoofers entirely removed) and update copyright
2020-07-29 16:31:47 -07:00
James R. Barlow
0287d91874
v10.3.1 release notes
2020-07-26 21:53:08 -07:00
James R. Barlow
436af55050
Approve pdfminer.six 20200720
2020-07-26 21:51:49 -07:00
James R. Barlow
d6128e6937
Fix support for older versions of pdfminer.six (boxes_flow error)
2020-07-26 21:51:25 -07:00
James R. Barlow
642437e804
Merge branch 'master' of github.com:jbarlow83/OCRmyPDF
2020-07-22 00:34:33 -07:00
James R. Barlow
4ce802fdb2
v10.3.0 release notes
2020-07-22 00:34:27 -07:00
James R. Barlow
a672422b0b
Enable pikepdf mmap in other contexts
2020-07-22 00:20:07 -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
5f45f77b4e
docs: plugins update
2020-07-21 23:53:30 -07:00
James R. Barlow
93f9bffb37
Merge branch 'feature/leptonica-179'
2020-07-20 21:23:53 -07:00
James R. Barlow
44149ad319
Disable test_error_trap for Leptonica < 1.79
...
Old error trap seems unreliable in the first place so difficult to set up
a test.
2020-07-20 21:12:00 -07:00
James R. Barlow
4da33b8050
Update debian/copyright from Debian, with fixes
2020-07-19 03:50:43 -07:00
James R. Barlow
5cbbff8472
For Leptonica 1.79+ use leptSetStderrHandler
...
Lock free and considerably less dangerous to stderr messages.
2020-07-19 03:40:33 -07:00
James R. Barlow
fa6e47c277
Merge branch 'feature/optimize-cleanup'
2020-07-19 01:53:11 -07:00
James R. Barlow
4ea9cffebd
Add locking to Leptonica error trap
...
To protect another thread from interfering with our redirection of
stderr.
2020-07-19 01:51:58 -07:00
James R. Barlow
ae68edefc5
pipelines: fix Python 3.7/3.8 on macOS
2020-07-19 01:51:58 -07:00
James R. Barlow
1558e068f1
docs: explain firstresult hook behavior
2020-07-16 00:01:59 -07:00
James R. Barlow
d2a9c413f8
docs: install notes for ARM64
2020-07-14 01:25:16 -07:00
James R. Barlow
a510b21b20
optimize: add typing for Xref, remove fspath()'s
2020-07-09 14:06:41 -07:00
James R. Barlow
e33ba07aa4
Update pre-commit settings
2020-07-08 23:45:53 -07:00
James R. Barlow
373f27832b
optimize: improve typing of xref_exts
2020-07-07 22:41:29 -07:00
James R. Barlow
b20a6e4c5d
optimize: add type hints
2020-07-07 22:18:50 -07:00
James R. Barlow
49734d5456
optimize: fix incorrect to prevent re-optimizing JBIG2s
2020-07-07 21:52:11 -07:00
James R. Barlow
26a415c5dd
docs: Note usage of OCR_JSON_SETTINGS for watcher
2020-07-07 21:26:57 -07:00
James R. Barlow
60be64a5f1
Fix debug.log missing pageno handler
2020-07-04 03:59:38 -07:00
James R. Barlow
190294634c
docs: edit plugins
2020-07-03 16:16:01 -07:00
James R. Barlow
1722cb579d
v10.2.1 release notes
2020-07-01 03:26:57 -07:00
James R. Barlow
dc42beb6a8
More typing improvements
...
Typing fixes bugs.
2020-06-30 15:02:30 -07:00
James R. Barlow
378f543619
TextPositionTracker: set boxes_flow=None
...
We don't care about the order of lines in our analysis, and this is an
expensive calculation in pdfminer.
2020-06-30 04:20:58 -07:00
James R. Barlow
62924ee280
Improve API documentation
2020-06-30 04:20:14 -07:00
James R. Barlow
86a73191b0
Plugin manager: accept Path(plugin)
2020-06-30 04:17:30 -07:00
James R. Barlow
86875997b8
Fix more mypy errors
2020-06-29 02:17:14 -07:00
James R. Barlow
b939584c7a
quality: fixing typing issues
2020-06-29 01:45:45 -07:00
James R. Barlow
bbd174071d
readme: markdown cleanup
2020-06-29 01:45:27 -07:00
James R. Barlow
e5b6fe1317
pyproject.toml: weird line wrapping?
2020-06-29 01:45:12 -07:00
James R. Barlow
f15d9049eb
install: add Mageia
...
Closes #586 . Thanks to @yannick56
2020-06-26 23:28:26 -07:00
James R. Barlow
7630c93e5b
install: drop Ubuntu 14.04 steps
...
Bit rot must have set in.
2020-06-26 23:27:42 -07:00
James R. Barlow
638d68aa8a
docs: move Windows ahead of FreeBSD
2020-06-26 22:49:34 -07:00
James R. Barlow
a92dde058a
docs: promote one liner installs, reorg Windows
2020-06-26 22:47:44 -07:00
James R. Barlow
580f2ebb4b
Python 3.9beta is now known to work (Fedora)
2020-06-26 00:06:58 -07:00
James R. Barlow
01cae7a584
docs: Update Fedora versions
2020-06-23 02:08:24 -07:00
James R. Barlow
66337813e6
Spell runslow correctly
2020-06-22 23:32:09 -07:00
James R. Barlow
eb5a211e72
New hocrtransform test isn't platform stable - mark runslow
2020-06-22 16:59:59 -07:00
James R. Barlow
5142933120
v10.2.0 release notes
...
Closes #582 , #584 , #545
2020-06-22 16:37:51 -07:00
James R. Barlow
06ab114aa8
Update test cache
2020-06-22 16:31:34 -07:00
James R. Barlow
1257419465
test_hocrtransform: this test is worth not caching
2020-06-22 16:31:06 -07:00
James R. Barlow
30404f53f0
Add test to sanity check our pdf renderers
2020-06-22 16:18:38 -07:00
James R. Barlow
1ce8edbdfe
hocrtransform: some text not included in output after Tesseract changes
2020-06-22 15:48:23 -07:00
James R. Barlow
d4b704a0ae
hocrtransform: refactor colors
2020-06-22 15:22:48 -07:00
James R. Barlow
2d64e1536d
hocrtransform: refactor xpath manipulations
2020-06-22 14:44:34 -07:00
James R. Barlow
c8b581ac31
hoctransform: remove deprecated element.getchildren()
...
Breaks Python 3.9.
2020-06-22 14:28:18 -07:00
James R. Barlow
ad8dead7df
Document that API accepts streams now
2020-06-22 14:27:27 -07:00
James R. Barlow
c9bd87254e
A few minor typing issues
2020-06-22 02:31:53 -07:00
James R. Barlow
fef14778d5
Fix missing f-string in log message
2020-06-22 01:17:16 -07:00
James R. Barlow
86ec63f215
Decouple plugin manager forking from PdfContext/Pagecontext
2020-06-22 01:16:59 -07:00
James R. Barlow
5b10ec9d39
jobcontext.PdfContext: remove dead code, add annotations
2020-06-22 00:34:58 -07:00
James R. Barlow
800c75c4e5
Bump requirements (mainly for Docker's benefit)
2020-06-21 01:58:53 -07:00
James R. Barlow
24d64b04c3
Update Docker to Ubuntu 20.04 and jbig2-latest
2020-06-21 01:48:31 -07:00
James R. Barlow
48e2750551
Fix some tests that were failing in Docker
2020-06-21 01:48:13 -07:00
James R. Barlow
e182c5f63e
Update and sync .dockerignore, .gitignore
...
Also blacklist .* and whitelist the ones we want.
2020-06-21 01:25:59 -07:00
James R. Barlow
06d52326db
Fix deleted path in .coveragerc
2020-06-21 01:24:23 -07:00
James R. Barlow
ebfe4f0d29
Fix issue #582 - PDF/A acquires title "Untitled" after conversion
2020-06-20 02:01:16 -07:00
James R. Barlow
ad22977c84
v10.1.1 release notes
2020-06-17 14:45:32 -07:00
James R. Barlow
6ac50646f0
Fix OMP_THREAD_LIMIT rounded down to 0 in some cases
2020-06-17 14:43:19 -07:00
James R. Barlow
24b6a4ad50
v10.1.0 notes
2020-06-16 00:55:28 -07:00
James R. Barlow
e802896d4d
unpaper: use PNG input where possible
...
Unpaper accepts PNG as input now, so avoid generating a huge
temporary PPM file if we can. If we
must create a PNG, compress it lightly to keep our temp usage down.
2020-06-16 00:50:18 -07:00
James R. Barlow
0b5a20e593
coverage: ignore type checking
2020-06-15 15:55:39 -07:00
James R. Barlow
642998ead6
sync: refactor preprocess image filtering
2020-06-15 15:26:41 -07:00
James R. Barlow
698aab4f75
Add a lot of type annotations
2020-06-15 15:20:50 -07:00
James R. Barlow
34231ac667
sync: refactor intermediate image production
2020-06-15 15:02:28 -07:00
James R. Barlow
ddedf7cd2e
For --clean-final, use same image as --clean if possible
2020-06-15 13:48:49 -07:00
James R. Barlow
9d127d354c
docs: improve description of plugins
2020-06-15 12:51:49 -07:00
James R. Barlow
2d2a4894ab
Some corrections to release notes
2020-06-15 12:51:28 -07:00
James R. Barlow
862861e3ca
Fix error message in logging from repeated filtering
...
If logging somehow triggers PageNumberFilter multiple times, it would fail on the second occurrence.
2020-06-13 14:50:58 -07:00
James R. Barlow
892db88f0e
test_two_languages: use narrower test
2020-06-12 14:33:02 -07:00
James R. Barlow
eeb44f78cc
Fix tests that failed on other platforms from previous fix
2020-06-12 12:59:46 -07:00
James R. Barlow
863835f660
v10.0.1 release notes
2020-06-12 12:11:21 -07:00
James R. Barlow
393c5a9ea4
Fix error on -l lang1+lang2
2020-06-12 12:10:29 -07:00
James R. Barlow
c6b9a49cbb
Fix tests that fail in CI
2020-06-10 17:08:00 -07:00
James R. Barlow
17a4831745
v10 release notes and dependencies
2020-06-10 14:27:47 -07:00
James R. Barlow
7caf1e85ff
info: change "Scan" message
2020-06-10 12:11:37 -07:00
James R. Barlow
f59a757e8b
info: tidy handling of content streams
2020-06-10 12:09:24 -07:00
James R. Barlow
872bafad4b
Reinstate quick test for text/no text
...
Partial revert of commit 991db17
2020-06-10 12:00:52 -07:00
James R. Barlow
8599400445
Only do page analysis on pages we will do OCR on
2020-06-10 11:33:27 -07:00
James R. Barlow
b6eebadf05
Use pikepdf.open with block to manage PdfInfo
2020-06-10 11:32:46 -07:00
James R. Barlow
a4e88eb8f0
Simplify plugin_manager pickling
2020-06-10 00:41:19 -07:00
James R. Barlow
f6257c2183
subprocess: lru_cache version checks
2020-06-10 00:32:06 -07:00
James R. Barlow
64891c2fc3
Pre-release delinting
2020-06-09 15:27:14 -07:00
James R. Barlow
fe156db41d
Merge branch 'release/v10' into trialmerge
2020-06-09 15:12:56 -07:00
James R. Barlow
0f942fb714
Rename ocrmypdf.exec -> ocrmypdf._exec
2020-06-09 14:59:09 -07:00
James R. Barlow
be8ca589d4
Move ocrmypdf.exec.run and friends to ocrmypdf.subprocess
2020-06-09 14:53:10 -07:00
James R. Barlow
3b6f6782f0
Remove tesseract_env, --tesseract-env
2020-06-09 00:39:53 -07:00