Add tests for fpdf2 renderer and font infrastructure

- Add hOCR test fixtures for Latin, Arabic, CJK, Devanagari scripts
- Add tests for fpdf2 renderer, multi-font manager, system font provider
- Add multilingual rendering tests
- Update existing tests to use fpdf2 renderer
This commit is contained in:
James R. Barlow
2026-01-06 13:46:11 -08:00
parent 7a4b98974c
commit bbd263ff48
20 changed files with 2276 additions and 149 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ def cached_run(options, run_args, **run_kwargs):
args.configfiles.append('txt')
for configfile in args.configfiles:
if configfile not in ('hocr', 'pdf', 'txt'):
if configfile not in ('fpdf2', 'pdf', 'txt'):
continue
# cp pwd/{outputbase}.{configfile} -> {cache}/{configfile}
tessfile = args.outputbase + '.' + configfile
+1 -1
View File
@@ -5,7 +5,7 @@
To quickly run tests where getting OCR output is not necessary and we want to test
the rotation pipeline.
In 'hocr' mode, create a .hocr file that specifies no text found.
In generate_hocr mode, create a .hocr file that specifies no text found.
In 'pdf' mode, convert the image to PDF using another program.
+1 -1
View File
@@ -4,7 +4,7 @@
To quickly run tests where getting OCR output is not necessary.
In 'hocr' mode, create a .hocr file that specifies no text found.
In generate_hocr mode, create a .hocr file that specifies no text found.
In 'pdf' mode, convert the image to PDF using another program.