Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ADR-0010: Landmarks are a table of their own, present only when a book has them

Status: Accepted; the points under "Proposed details" are proposed
Date: 2026-11-21
Deciders: Format author

Context

A book has places a reader wants to reach without looking for them: where the text begins, the glossary, the index, the notes. The table of contents does not answer "where is the index": it lists titles, in the order of the text, and an application cannot tell which entry is which. EPUB solves this with a second list next to the contents, the landmarks, in which every entry has a kind from a fixed vocabulary. A converter (mbook-converter) had nowhere to put that list.

Decision

A book may carry landmarks: a list in which each row has a kind, an optional title and a place in the book. The place is what a link names: a chapter, and optionally a named position inside it. The list is stored as a table in a resource of its own, of a new kind, 4, and a book without landmarks has no such resource.

Options considered

DimensionA: an optional resource of a new kindB: a sixth fixed resourceC: keys of meta
Reader complexityOne more table shape; found through the resource tableOne more table shape; found by numberNone: a key and a link destination
Cost of opening a fileNone; the table is decoded when it is wantedOne more frame for every bookNone
File sizeAbout 150 bytes, only in books that have landmarksAbout 150 bytes in every bookA few bytes per landmark
CompatibilityA new kind is a compatible addition; no number changesEvery resource number after 4 changes; existing files and examples become invalidA new key is a compatible addition
EvolutionColumns can be added at the endColumns can be added at the endA landmark is one string: no room for a title or for more

Chosen: A.

Trade-off analysis

  • B makes landmarks as easy to read as the contents, and charges every book for a table most books do not have. It also moves the cover and every chapter up by one number, in a format whose first five resources were fixed on purpose (ADR-0003).
  • C is how the cover is named today. A landmark, though, needs a title that an application can show ("Glossary of terms"), may repeat (several appendices), and is navigation, not a description of the book.
  • A follows the anchor tables of chapters (ADR-0008): what only some books need lives in a resource that only those books have, and the resource table already says where it is.

Proposed details

Decided by the format author: landmarks exist, their place is named like the target of a link, and they are an optional resource of kind 4 with the columns kind, title, resource, offset. The list of kinds was settled on 2026-11-21 as well:

  • It is the structural vocabulary of EPUB, with the names written out (list-of-figures for loi, start for bodymatter).
  • The narrative parts are kinds of their own: introduction, prologue, epilogue, conclusion.
  • about-the-author is added, although EPUB has no such type: it is among the places books most often have.
  • A table of contents set in the text is not a kind. The toc table is the contents of a book, and a second one in the text only repeats it.
  • acknowledgements is spelled the British way; EPUB writes acknowledgments.
  • The three kinds of notes of EPUB (footnotes, endnotes, rearnotes) are one kind, notes.

Written into RFC 0001 as proposals:

DetailProposal
How many such resourcesAt most one per file
Where it standsDirectly after resource 4, before the cover
The form of a kindThat of a meta key: [a-z0-9]+(-[a-z0-9]+)*, with x- for private use
RepetitionAny kind may repeat, except start
A position inside a chapterMust match a row of anchors or of the chapter's anchor table, so that it can be written as a link destination
An unknown kindShown by its title; skipped when it has none
A damaged tableAn error confined to the landmarks: the book is still read

Consequences

  • Easier: an application can offer "go to the beginning", "glossary" and "index" without guessing from titles.
  • Easier: a reader that opens a book for the first time can start at the text instead of the cover page.
  • Easier: the landmarks of an EPUB survive conversion.
  • Harder: a reader has a second list of places besides the contents, and the two can disagree.
  • Harder: the names of kinds are a vocabulary this format now maintains.
  • To revisit: whether start should also be reachable without decoding a table, as a meta key.

Action items

  1. Reader: accept kind 4, at most once, and read the table on request.
  2. Writer: emit the table after resource 4 when a book has landmarks.
  3. Converter: carry over the landmarks of EPUB 3 and the guide of EPUB 2.