View Single Post
Old 01-15-2013, 12:48 PM   #1
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Ebook viewer TOC entry does not work if not pointing to an id

This was reported as a Sigil issue, and while it will be fixed there, it seems that Calibre has the same behaviour when using a TOC entry that points to just a filename instead of an id.

Open the attached in Calibre's E-book Viewer, then open the Table of Contents. Scroll to the bottom of the file. Click on Chapter 1 - it works ok. Click on Chapter 2 - it works ok. Scroll to the bottom of the file again. Click on Chapter 2 - the text shown doesn't change. The issue appears to be that the TOC src attribute only points to a filename not a filename#id. The link works ok if you are displaying a different HTML file, but if you are on the same page as the heading then the page is not updated.

The TOC entry appears to work ok on a Kobo and when converted for a Kindle, so it seems valid if not too troublesome. As for why there is no id; Sigil links to the name instead of the id if the heading is "close" to the top mainly to make sure anything above the first heading, like an image, in a chapter is always shown.
Attached Files
File Type: epub test-toc-jump.epub (3.2 KB, 253 views)

Last edited by meme; 01-16-2013 at 04:39 AM. Reason: File uploaded
meme is offline   Reply With Quote