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
James R. Barlow
55566d9830
Fix watcher.py kwarg error
2023-11-05 13:58:24 -08:00
James R. Barlow
f02ea20678
docs: plugin documentation missing key special members
2023-11-05 00:10:51 -07: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
916106733c
Skip semfree unless on Linux
v15.4.0
2023-10-30 00:33:21 -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
c0b60dae6a
build: add repository -y
2023-10-29 23:41:36 -07:00
James R. Barlow
ae123fd209
Try to retain/copy xattrs
v15.3.1
2023-10-28 01:42:06 -07:00
James R. Barlow
454ad0acc5
build/macos: add openssl
2023-10-28 01:41:28 -07:00