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
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
2023-11-15 20:27:16 -08:00
James R. Barlow
4a9a575ef0
ghostscript: better comments
2023-11-09 22:39:49 -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
e36d5a309f
Make grafting a little bit more configurable
2023-11-05 14:01:01 -08:00
James R. Barlow
372c22d42b
docs: improve
2023-11-04 02:43:08 -07:00
James R. Barlow
949265bbd0
graft: improve typing and remove procset tracking
...
ProcSet is optional and deprecated in PDF 2.0, and does little anyway; so
we removed it.
2023-11-04 02:32:39 -07:00
James R. Barlow
44bcafd3aa
Add missing file header
2023-10-30 00:28:09 -07:00
James R. Barlow
71166f7be8
Make hocr API experimental for now
...
This commit can be reverted when we are ready to release a new version.
2023-10-30 00:07:10 -07:00
James R. Barlow
580252a1a0
Merge branch 'feature/gscan2pdf'
...
Reconcile release notes and copy_final() with new pipeline.
2023-10-30 00:01:28 -07:00
James R. Barlow
ae123fd209
Try to retain/copy xattrs
2023-10-28 01:42:06 -07:00
James R. Barlow
5b5827983b
Tweak documentation of --output-type
2023-10-26 23:57:08 -07:00
James R. Barlow
56f9bc311d
Improve verbosity of colorspace selection
2023-10-25 00:38:56 -07:00
James R. Barlow
eb17dc1ecf
Fix pdf save settings at metadata_fixup
2023-10-25 00:13:17 -07:00
James R. Barlow
6f8115a052
Fix import of metadata_fixup
2023-10-25 00:06:26 -07:00
James R. Barlow
aac913c666
tesseract: EAFP
2023-10-24 13:50:04 -07:00
James R. Barlow
a31f17bb9d
Update comments and make worker functions private
2023-10-24 00:56:00 -07:00
James R. Barlow
1cb46afa94
Update pluginspec docs
2023-10-24 00:56:00 -07:00
James R. Barlow
db3df13e95
Remove ocrmypdf._sync
2023-10-24 00:54:31 -07:00
James R. Barlow
2a8bc03167
optimize: typing
2023-10-24 00:54:31 -07:00