Add lightweight standalone PDF to EPUB import and source-page QA

This commit is contained in:
Kai Tan
2026-10-28 23:28:40 +08:00
parent d12767a671
commit cad96d59c8
14 changed files with 883 additions and 2 deletions
+9
View File
@@ -1,3 +1,12 @@
## 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.
- Support Chinese reflow directly and English EPUB export for the existing translation pipeline, without automatically starting paid translation.
- Cache source-bound page recognition, retain coordinates and raw OCR, reconstruct single-column paragraphs across pages, and preserve bookmark hierarchy and source-page anchors.
- Preserve selected illustration/title/back-cover pages, export digital PDF image regions, and apply source-bound exact OCR corrections without rewriting raw checkpoints.
- Add PDF/source-anchor desktop and narrow-screen QA with actual NAV clicks; validate all 476 pages and 87 bookmark targets on the user-provided sample.
- Keep output explicitly marked as an OCR reflow draft; complex layouts, scanned-page figure segmentation and footnote reconstruction remain outside this release.
## 2026-10-10 — Highest Exam edition metadata
- Preserve OPF metadata XML comments while replacing edition values and their refinements.