How buggins/coolreader works
a. Document Processing Flow:
• Input: Various document formats (FB2, EPUB, etc.)
• Processing: Through format parsers → DOM creation → Rendering
• Output: Rendered pages to GUI
b. User Interaction Flow:
• GUI Events → Core Engine
• Core Engine → Display Updates
• Settings/Configuration → Storage
Key Subsystems
a. Document Format Support:
• FB2, EPUB, CHM, DOC, etc.
• Format-specific parsers
• Conversion pipelines
b. Rendering Pipeline:
• Layout Engine
• Font Management
• Image Processing
• Page Composition
c. Storage & Caching:
• Document Cache
• Font Cache
• Image Cache
• Settings Storage
Cross-Platform Architecture
a. Shared Components:
• Core Engine (crengine)
• Document Processors
• Rendering System
b. Platform-Specific Implementations:
• GUI Frameworks
• Device Integration
• Platform Services
Notes
Annotations for:
• Build configurations
• Platform-specific features
• Performance considerations
• Memory management strategies