Add FireRed OCR comparison and preserve attribution layout

This commit is contained in:
Kai Tan
2026-10-29 00:14:13 +08:00
parent cad96d59c8
commit 166ea871d3
10 changed files with 355 additions and 16 deletions
+8
View File
@@ -1,3 +1,11 @@
## 2026-10-29 — FireRed OCR comparison and attribution layout
- Add an explicit local OpenAI-compatible FireRed adapter with source/settings-bound raw caches and fail-closed handling of truncated responses.
- Preserve Markdown paragraph structure without inventing OCR coordinates; optionally align geometry from a verified same-source Vision cache while retaining FireRed text.
- Preserve right-aligned author/date blocks and prevent date furniture removal or attribution paragraph merging.
- Add pagewise OCR comparison and manually verified snippet CER; validate only pages 1–50 of the sample PDF, with two partial EPUBs and responsive navigation QA.
- Regression suite: 103 passed, 2 skipped. Complex scanned layouts and automatic figure segmentation remain deferred.
## 2026-10-28 — lightweight standalone PDF import preview
- Add PDFium/Pillow PDF import with native text, macOS system Vision OCR and an optional Tesseract adapter; no translation or heavyweight model dependency required.