View Single Post
Old 09-01-2025, 08:14 AM   #2005
ianr
Junior Member
ianr began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Aug 2023
Location: Upstate NY
Device: Kobo Clara 2E
In the EPUB standard, one can define reference/"paper" page numbers. I'm glad I filed a feature request that got implemented by Goyal (tysm!) allowing one to see the numbers from the calibre reader. However, a lot of EPUBs mess up defining their page numbers—a simple regex fixes these by defining epub:type="pagebreak" for each, but what's annoying is generating the above-linked nav pagelist element from all the epub:type="pagebreak" elements in the content. Most readers (correctly) don't bother looking for page numbers to display if they're not defined by a nav pagelist element in nav.xhtml or somewhere.

So, that's what I'm requesting, a tool that generates a compliant nav pagelist from all the elements with loose epub:type="pagebreak" in an EPUB's content, then fills each item (see here) according to the element's title attribute, and stashes the generated list in nav.xhtml.

Sorry if that was incomprehensible—very few people seem to care about fixed EPUB page numbers except for me. They're indispensable for my ability to properly cite books I'm reading for research.
ianr is offline   Reply With Quote