readium / go-toolkit

A toolkit for ebooks, audiobooks and comics written in Go

Home Page:https://readium.org/web

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Return pageNavigation instead of pageBreakNumbers when inferring metadata

HadrienGardeur opened this issue · comments

printPageNumbers has been gradually deprecated in favor of two different values:

  • pageBreakMarkers which is meant to indicate that the text of the publication contains page break markers using ARIA
  • and pageNavigation which is meant to indicate that the publication contains a list of pages, usually based on HTML IDs

The current inference technique is based on the presence of pageList in the RWPM output which can either come from:

  • a Navigation Document in EPUB 3.x
  • or an NCX in EPUB 2.x

Given the nature of what is inferred here, the toolkit should return pageNavigation instead of printPageNumbers.