James R. Barlow
22582bbd1c
Travis: don't trigger Docker Hub anymore
...
Docker Cloud is set up to build on pushes to master and tagged releases.
Hopefully that will work out.
2018-03-19 21:09:31 -07:00
James R. Barlow
e88ec9822b
Tweak release notes
v5.7.0
2018-03-15 17:09:43 -07:00
James R. Barlow
5ffd2f5c96
Not ending Py3.5 support just yet
2018-03-15 17:06:11 -07:00
James R. Barlow
11fdb4c5d8
Update release notes for v5.7.0
2018-03-15 17:06:04 -07:00
James R. Barlow
319aff6d09
Merge better-hocr
2018-03-15 16:59:59 -07:00
James R. Barlow
a614fa3400
hocr: simplify some math expressions and add comments
2018-03-14 17:05:40 -07:00
endolith and jbarlow83
8d691391ac
Fix typos in advanced.rst ( #228 )
2018-03-14 15:54:55 -04:00
James R. Barlow
0089a84c94
hocr: Make interword spaces default and non-optional for hocr
...
Update documentation to match.
2018-03-13 14:51:47 -07:00
James R. Barlow
90676e1c6a
hocr: Remove baseline dashes
2018-03-13 14:45:31 -07:00
James R. Barlow
062901be43
Some cleanup and variable renaming
2018-03-13 14:29:22 -07:00
James R. Barlow
b195d79b50
Refactoring
2018-03-13 11:04:34 -07:00
James R. Barlow
6d7ee98721
Force Tesseract 4 to be single threaded
...
Gives better performance (throughput basis) than the existing solution
and scales better on powerful boxes.
2018-03-13 08:54:52 -07:00
James R. Barlow
fc0800ed5d
v5.6.3 notes
v5.6.3
2018-03-12 03:41:12 -07:00
James R. Barlow
f4e3a0e5b2
v5.6.2 notes
2018-03-09 15:37:08 -08:00
James R. Barlow
d631c80024
Suppress debug message when merging large files
2018-03-09 11:10:45 -08:00
James R. Barlow
f1f0033875
Suppress spurious debug message in --output-type pdf
2018-03-09 11:07:28 -08:00
James R. Barlow
84d120e850
v5.6.1 notes
v5.6.1
2018-03-09 08:00:42 -08:00
James R. Barlow
8159cc6b88
Skip one test that fails for qpdf 8.0.[0,1], due to qpdf regression
2018-03-09 07:57:22 -08:00
James R. Barlow
995f8c106b
hocr: account for baseline offset to position text more accurately
2018-03-09 07:45:41 -08:00
Jim Barlow
7cc104b138
hocr: account for skewed baseline
2018-03-05 11:16:40 -05:00
James R. Barlow
b3a7299a62
hocr: refactor/improve PEP8 a bit
2018-03-05 10:47:36 -05:00
James R. Barlow
0e7a4deaec
hocr: add baseline function, hocr doc link
2018-03-05 10:47:36 -05:00
James R. Barlow
b4d66650bd
hocr: adjust text cursor with relative moves
2018-03-05 10:47:36 -05:00
James R. Barlow
4986afca28
hocr: Refactor use of text object
...
We don't need to declare the font on each word.
No improvement for removing trailing space or adding \n
2018-03-05 10:47:36 -05:00
James R. Barlow
2b6004a82b
hocr: Make words on line use the line height
...
Seems to improve the behavior and appearance
of selected text a fair bit.
2018-03-05 10:47:36 -05:00
James R. Barlow
04c54a7c31
Suppress spurious debug message in --output-type pdf
2018-03-05 10:47:36 -05:00
James R. Barlow
7ae6c5ae87
Trial merge interword-spaces
2018-03-02 23:47:06 -08:00
James R. Barlow
4046766ca5
Fix Python 3.5 test suite failure on symlinks
...
Did not account for API difference in pathlib
2018-03-02 16:57:46 -08:00
James R. Barlow
810390df0b
pipeline: Refactor duplicate with clause
2018-03-02 16:57:15 -08:00
James R. Barlow
de749bc7ae
Fix regression - output to stdout broken
2018-03-02 15:35:51 -08:00
James R. Barlow
9965b8800c
Move Dockerfiles out of the way
2018-03-02 15:26:41 -08:00
James R. Barlow
ab870fddd6
Dockerignore: glob supported now
2018-03-02 15:24:42 -08:00
James R. Barlow
a79d6807cf
Dockerfiles: remove deprecated MAINTAINER tag
2018-03-02 15:24:28 -08:00
James R. Barlow
8185fb7e43
Migrate Travis CI setup to Brewfile
2018-03-02 15:16:05 -08:00
Tucker Barbour and jbarlow83
4b10929b25
Fix Homebrew python package ( #227 )
...
Homebrew removed python3 and python now defaults to version 3. Here we
use `brew upgrade python` to upgrade the pre-installed version of
python to python3.
2018-03-02 14:59:23 -08:00
Tucker Barbour
f6c70312c9
Fix Homebrew python package
...
Homebrew removed python3 and python now defaults to version 3. Here we
use `brew upgrade python` to upgrade the pre-installed version of
python to python3.
2018-03-02 14:26:13 +00:00
Tucker Barbour
9fd9c7a51f
Scale BoundingBox and Text elements to account for additional space.
...
Here we are manually scaling the pt width used for the BoundingBox and
the Text element when manually adding whitespace to account for
limitations of the PDF.js viewer. This fixes an initial regression
noticed when selecting text elements in Chrome and PDFium. The width
of the Text element and BoundBox had not been adjusted for the
additional whitespace so the highlighting was offset slightly.
2018-03-02 11:18:47 +00:00
Charles Forcey
422e619978
Add a note to the documentation about interword-spaces
2018-03-01 13:15:03 -05:00
Tucker Barbour and Charles Forcey
e6e34251c6
Add option to explicitly add interword spaces to HOCR pdf-renderer
...
This commit includes an optional work around for limitations of the
PDF.js viewer described in
https://github.com/jbarlow83/OCRmyPDF/issues/133 . Here is explicitly
add an addition space to text elements before drawing them on the PDF
canvas when using the HOCR renderer. This option does not apply to
other pdf renderers in OCRmyPDF and is turned off by default.
2018-03-01 13:15:03 -05:00
James R. Barlow
2d8aad1086
Improve docs
2018-03-01 00:24:38 -08:00
James R. Barlow
74ca736333
Issue #223 : improve text of encrypted PDF error message
2018-02-27 15:08:22 -08:00
James R. Barlow
5e4fd8b0b9
compile_leptonica should have shebang
2018-02-24 12:49:36 -08:00
James R. Barlow
8ab8132411
lint: unused variables, wildcard imports
2018-02-24 12:48:52 -08:00
James R. Barlow
6899dd46e4
lint: remove extraneous backslash
2018-02-24 12:42:37 -08:00
James R. Barlow
8ad0697a20
lint: remove duplicate property definition
2018-02-24 12:42:03 -08:00
James R. Barlow
b47e5672e6
Remove old test case that no longer works
2018-02-24 12:40:14 -08:00
James R. Barlow
45c7bd9a60
lint: Remove shebangs from non-executable files
2018-02-24 12:38:58 -08:00
James R. Barlow
e7bcb95635
Fix pylint errors
2018-02-24 11:59:01 -08:00
James R. Barlow
3de83627a9
Handle output to /dev/null or directory ( #219 )
...
Previously we threw an exception if the output name was a directory (only after doing OCR) and would trigger a PermissionError on trying to flip permission bits of /dev/null due to shutil.copyfile implementation. Instead of copying file use shutil.copyfileobj which should also respect umask etc.
2018-02-19 22:15:07 -08:00
James R. Barlow
f248576994
Change instructions to point away from private tap
2018-02-19 17:33:58 -08:00