The toolkit uses specific models to represent the structure and state of a book:
Publication
A Publication represents a single ebook, audiobook, or comic. It holds metadata (author, TOC), allows access to content (XHTML, audio), and provides services like text search.
Link
A Link object is a pointer (URL) to a resource or service with metadata like media type or title. Common Link collections within a Publication include:
readingOrder: Resources arranged in reading sequence.resources: Secondary resources (images, fonts) needed for rendering.tableOfContents: A tree of Link objects.links: Additional resources like search web services.
Locator
A Locator represents a precise location within a resource. Unlike a Link, it is designed to be stored and shared, containing information like progression percentage, position, or textual context. Use Locator for:
- Reporting current progression.
- Saving bookmarks, highlights, and annotations.
- Navigating search results.