docs: Complete Reader Implementation Plan overhaul with PDF support and universal reader architecture
Major Architecture Changes: - Added PDF support (Mozilla pdf.js) with text selection, highlights, search, bookmarks - Universal reader with pluggable parser pipeline for all reflowable ebooks - Common Intermediate Format (CIF) to standardize ebook parsing - Server-side parsing for complex formats (MOBI, AZW3, DOCX, RTF) - Client-side parsing for simple formats (EPUB, FB2, TXT, HTML) - PDF-specific features: TOC navigation, bookmarks, dual-page view, mini-map Procedural TypeScript: - Refactored all code to follow PROJECT_GUIDELINES.md (no classes, no OOP) - Functions and modules instead of classes - Functional techniques where appropriate New Components: - Parser manager (router) to detect format and route to appropriate parser - CIF types for universal ebook representation - PDF reader with full feature set (text-layer, annotation, search, etc.) - Server-side Go handlers for MOBI/AZW3/DOCX/RTF parsing Database Schema: - Added pdf_bookmarks table for custom PDF bookmarks API Routes: - Added PDF outline/TOC endpoint - Added PDF thumbnail endpoint for mini-map Theming: - Added PDF-specific reading themes (5 options: light, sepia, dark, night, high-contrast) - Hybrid approach maintained: chrome_theme for UI, reading_theme for content
This commit is contained in:
+5229
-1294
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user