1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! KFX (KF10) format reader and writer.
//!
//! KFX is Amazon's latest Kindle format, successor to KF8/AZW3.
//! It uses Amazon's Ion binary format for structured data.
//!
//! ## Module structure
//!
//! - `ion` - Amazon Ion binary format parser and writer
//! - `symbols` - KFX symbol table and enum
//! - `container` - KFX container format parsing (pure functions)
//! - `schema` - Bidirectional KFX ↔ IR mapping rules
//! - `tokens` - Token stream for import/export
//! - `storyline` - Storyline tokenization and IR building
//! - `transforms` - Attribute value transformers for bidirectional conversion
//! - `metadata` - Metadata schema for book metadata mapping
//! - `fragment` - KFX fragment representation
//! - `serialization` - Binary container format serialization
//! - `context` - Export context for central state management
//! - `style_schema` - Declarative style property mapping
//! - `style_registry` - Style deduplication and ID assignment
//! - `cover` - Cover section detection and generation
//! - `auxiliary` - Auxiliary data generation for navigation targets