View Single Post
Old 12-20-2018, 12:34 AM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,929
Karma: 169810634
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
How did you generate that TOC entry? I've haven't seen an epub3 navigation document that used nested ordered and unordered lists though I suppose one could be manually generated. What does your epub3 declare as the navigation document in the content.opf The declaration should look something like:
Code:
<item href="Text/nav.xhtml" id="nav.xhtml" media-type="application/xhtml+xml" properties="nav"/>
I've attached a quick and dirty test file created using Sigil and when I click on a link in the toc.xhtml, the cursor is placed on the <h1> tag line. After generating a nav.xhtml document, the links there also work correctly in Sigil placing the cursor on the <h1> tag line. Using calibre's ebook viewer, the <h1> line shows on the screen but not at the top of the page. After doing some checking, I couldn't find anything in the epub 3.01 spec that requires that link to be placed at the top of the page. A page break before might work--if you can find a system that supports it. About the only reliable answer I've found is to split the text files so the header at the top of it's own file.
Attached Files
File Type: epub Lorem Ipsum test e3.epub (7.3 KB, 179 views)

Last edited by DNSB; 12-20-2018 at 01:28 AM. Reason: Fat Fingered Typos©
DNSB is offline   Reply With Quote