James R. Barlow
8a73ed5d5a
Fix JBIG2 not updating progress bar
2023-11-20 16:25:30 -08:00
James R. Barlow
03669183d7
Rationalize canvas interface
2023-11-20 15:54:13 -08:00
James R. Barlow
74e101a2fa
Improve canvas interface with chaining
2023-11-20 14:42:48 -08:00
James R. Barlow
532cf18ad3
Restructure hocrtransform submodule to avoid having everything in __init__
2023-11-20 00:57:58 -08:00
James R. Barlow
0b90b697e2
More tidying
2023-11-20 00:43:43 -08:00
James R. Barlow
6be7c5f7c8
Fix colors and space box rendering
2023-11-20 00:30:54 -08:00
James R. Barlow
db2e5132e6
Remove some obsolete parameters
2023-11-20 00:10:55 -08:00
James R. Barlow
b14f6f778a
Tidying new hOCR renderer
2023-11-19 23:51:27 -08:00
James R. Barlow
415de77457
imageops: fix annots since not using singledispatch anymore
2023-11-19 23:51:27 -08:00
James R. Barlow
a9466c4f58
Improve word box positioning
2023-11-19 23:51:27 -08:00
James R. Barlow
d9ae453a63
Significantly improvement overall
2023-11-19 23:51:27 -08:00
James R. Barlow
9841e09233
More adjustments
2023-11-19 23:51:27 -08:00
James R. Barlow
0ca314e066
Replace Rect with pikepdf.Rectangle, migrate line matrix to page
2023-11-19 23:51:27 -08:00
James R. Barlow
d7680cae27
Correcting Matrix logic helps
...
The good: don't have to do inverse and intermediate transforms.
The bad: skew looks bad, partly because the hOCR coordinate system is inconsistent around skew?
2023-11-19 23:51:27 -08:00
James R. Barlow
491b6bdb1f
Remove concept of HOCR_OK_LANGS
2023-11-19 23:51:27 -08:00
James R. Barlow
c591f9601a
Remove Latin hOCR test
2023-11-19 23:51:27 -08:00
James R. Barlow
8d1e75017e
Remote reportlab backend and make reportlab a test-only dependency
2023-11-19 23:51:27 -08:00
James R. Barlow
94615f7ad4
hOCR now works for all languages
2023-11-19 23:51:27 -08:00
James R. Barlow
e5df8e1315
Nearly pixel perfect
2023-11-19 23:51:27 -08:00
James R. Barlow
d739b91aef
Tidy up
2023-11-19 23:51:27 -08:00
James R. Barlow
686cfb2539
Add rendering of space between boxes
2023-11-19 23:51:27 -08:00
James R. Barlow
2633716bb7
Render interword spaces separately and avoid box overlap
2023-11-19 23:51:27 -08:00
James R. Barlow
0a07c0a44e
Fix more things
2023-11-19 23:51:27 -08:00
James R. Barlow
2ca6e110ca
Fix private accessors, rename pdf to canvas
2023-11-19 23:51:27 -08:00
James R. Barlow
334a07c839
Refactor debug printing
2023-11-19 23:51:27 -08:00
James R. Barlow
a57c39358d
Refactor: extract methods
2023-11-19 23:51:27 -08:00
James R. Barlow
30a0c315fb
Further exploratory improvements
2023-11-19 23:51:27 -08:00
James R. Barlow
b860f0d94c
Make coordinate system more consistent
2023-11-19 23:51:27 -08:00
James R. Barlow
14f4c19f5a
WIP improve text positioning (not there yet)
2023-11-19 23:51:27 -08:00
James R. Barlow
7ab5c55d46
More colors
2023-11-19 23:51:27 -08:00
James R. Barlow
8b6ecd5971
Fix line and rect drawing
2023-11-19 23:51:27 -08:00
James R. Barlow
7b0871ae4c
Fix position errors; ignore non-glyphless font
2023-11-19 23:51:27 -08:00
James R. Barlow
b73af7ce10
Fix dashes
2023-11-19 23:51:26 -08:00
James R. Barlow
60645717e2
Test pikepdf canvas - renders... something at this point
2023-11-19 23:51:26 -08:00
James R. Barlow
1cbf578538
Fix import of pdf.ttf
2023-11-19 23:51:26 -08:00
James R. Barlow
e966c1fceb
Add pdf.ttf
2023-11-19 23:51:26 -08:00
James R. Barlow
d0133f8641
Create pikepdf backend renderer
2023-11-19 23:51:26 -08:00
James R. Barlow
6d30b497dc
Refactor reportlab into generic backend
2023-11-19 23:51:26 -08:00
James R. Barlow
f3b89e66eb
Refactor reportlab backend out of hocrtransform
2023-11-19 23:51:26 -08:00
James R. Barlow
04154e207c
hocrtransform: move to module
2023-11-19 23:51:26 -08:00
James R. Barlow
9898904be7
Fix pikepdf PdfMatrix deprecation warning; v15.4.3 release notes
v15.4.3
2023-11-15 20:27:16 -08:00
James R. Barlow
27d5229842
Make logger names unique
v15.4.2
2023-11-09 23:03:39 -08:00
James R. Barlow
4a9a575ef0
ghostscript: better comments
2023-11-09 22:39:49 -08:00
James R. Barlow
52fd9a630d
v15.4.2 release notes
2023-11-09 22:35:51 -08:00
James R. Barlow
a596ccf844
Raise exception if resulting PDF might appear blank in a known in some PDF viewers
...
Fixes #1187
2023-11-09 22:33:22 -08:00
James R. Barlow
e7fa97731f
ghostscript duplicate filter: filter within a window of previous messages
2023-11-09 22:32:39 -08:00
James R. Barlow
290aa28108
Fix error on attempt to write to debug log after removing debug log handler
2023-11-09 16:02:41 -08:00
James R. Barlow
a95640ed9e
v15.4.1 release notes
...
Closes #1185
Closes #1183
v15.4.1
2023-11-07 23:57:30 -08:00
James R. Barlow
f69267bb67
watcher: restore ability to read json from file or command line string
2023-11-07 18:05:29 -08:00
James R. Barlow
e36d5a309f
Make grafting a little bit more configurable
2023-11-05 14:01:01 -08:00