Ebooks
| Format | Extension | Spec |
|---|---|---|
| EPUB | .epub | EPUB 3 — a ZIP container with HTML chapters + OPF metadata |
EPUB
Three views, cycled with Tab:
- Read (default) — one chapter at a time via the shared HTML rendering pipeline (same
html2textdriver as the standalone HTML viewer).n/pstep forward / back through the spine; the status line showsch X/Y. Each rendered chapter is cached at the current width so stepping back is instant; a terminal resize re-renders only the visible chapter.<img>tags with empty / missingaltget a fallbackimage: <basename>label. Cover-style chapters (almost no text + at least one image) render the first image as ASCII inline, sopeek book.epubopens on the cover. - TOC — the raw ZIP file tree. Useful for inspecting cover images, stylesheets, or the OPF
/ NCX metadata files. Recursive peek with
Enteropens any selected entry. - Info — Dublin Core metadata from the OPF: title, author (
dc:creator), language, publisher, date, identifier, description, plus spine length.
Print mode walks every chapter in spine order separated by blank lines, so
peek book.epub | less renders the whole book.
Other ebook containers (MOBI, AZW3, FB2) are not yet supported.