Expand description
Pure helpers for navigating an open EPUB: spine-item loading and table-of-contents resolution. Kept free of any TUI dependency so they can be unit-tested without a terminal.
Structs§
- Spine
Data - Raw data describing a single spine item.
Functions§
- chapter_
titles_ from_ book - Compute human-readable titles per spine item.
- load_
spine_ data - Read the spine item at
idx, sanitise and paginate towidthxheight. - load_
spine_ from_ html - Same as
load_spine_databut takes pre-fetched HTML. Used by the html-only entry point in the CLI. - spine_
hrefs - Collect manifest hrefs for every spine item, in order.