go-toolkit icon indicating copy to clipboard operation
go-toolkit copied to clipboard

Return pageNavigation instead of pageBreakNumbers when inferring metadata

Open HadrienGardeur opened this issue 1 year ago • 0 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.

HadrienGardeur avatar May 30 '24 09:05 HadrienGardeur