![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 106
Karma: 52102
Join Date: Jun 2010
Device: Samsung Android Tablet w/Moon+ Pro Reader
|
Occasional TOC navigation issues (epub goes to wrong loc'n)
I usually convert my source files, whether they are original .epub or .mobi to .htmlz so I can edit them for my preferences in styling, font sizes, etc., and then convert .htmlz back to .epub for use on my kobo.
In 99% of cases everything works perfectly. However in a small number of cases, TOC navigation gets screwed up in a very minor way in the final epub - ie, selecting a TOC entry navigates to the last line of the text page *before* the actual chapter, instead of to the top of the page where the chapter number is as would be expected. When using the TOC on the original epub, it doesn't do that, and when using the in-line TOC in the HTML file it navigates exactly to the chapter number text, but not in the .epub. Anyone know why and if there is a simple fix? Cheers The REAL Joe |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,899
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
I am not sure that Calibre can detect an Anchor that happens Before an Chapter heading. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 106
Karma: 52102
Join Date: Jun 2010
Device: Samsung Android Tablet w/Moon+ Pro Reader
|
Quote:
Cheers The REAL Joe |
|
![]() |
![]() |
![]() |
#4 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,899
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
(the #...) part in the NCX. the chapter_filename is enough. The file opens at the beginning in lieu of any directive. You do need mid file anchors., but those are not the problem ![]() |
|
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,248
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
You don't need anything other than the chapter heading tags (<h2> in your case) in your html file. Calibre will insert the chapter pagebreaks when you convert the html to epub, depending on your settings on the Convert - StructureDetection page.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 106
Karma: 52102
Join Date: Jun 2010
Device: Samsung Android Tablet w/Moon+ Pro Reader
|
True, but without the anchors, then the in-line TOC (ie with the HTML hyperlinks) doesn't work...
|
![]() |
![]() |
![]() |
#7 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,899
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Sample TOC: Spoiler:
BTW I had to fix the file nameD, they were off by one. Chapter 1 was calling the Prologue file ![]() Last edited by theducks; 09-30-2011 at 11:11 PM. Reason: Spoiler added |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fix TOC that points to wrong chapter? | lunixer | Sigil | 20 | 07-31-2011 07:27 PM |
Unicode characters OK in text but wrong in TOC | paulpeer | ePub | 8 | 01-15-2010 06:17 PM |
Making a TOC for LRFs? Issues with Calibre + LRF TOC editor not working | Magitek | LRF | 0 | 05-06-2009 01:25 PM |
Missing interface for threaded TOC navigation? | salty-horse | Sony Reader | 0 | 11-28-2008 08:26 AM |