![]() |
#1 |
Sigil developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. Last edited by meme; 01-16-2013 at 04:39 AM. Reason: File uploaded |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@meme: You refer to an an attached file, but I think you forgot to attach it.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Sigil developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
The file is now attached.
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Fixed.
|
![]() |
![]() |
![]() |
#5 |
Sigil developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
Thanks.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The ePub I was viewing in Calibre's viewer earlier today did not have a problem with the ToC. All my ToC entries in that book pointed to a file and did not have any IDs. I'm using whatever the latest version is as of this week.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Manually add a TOC entry | p3aul | Sigil | 4 | 06-13-2012 08:22 AM |
2 lines in one toc entry | alansplace | Sigil | 13 | 07-05-2011 06:34 PM |
Unexpected TOC entry | neil_matthews | Conversion | 4 | 06-12-2011 12:45 PM |
new single-entry TOC for Kobo compatibility | Stinger | Calibre | 3 | 05-29-2010 01:16 AM |
HELP, how do i make the TOC work in Ebook Publisher. | Lago | Fictionwise eBookwise | 7 | 03-07-2010 08:08 PM |