![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Feb 2012
Device: Kindle, Nook, iBooks
|
![]()
This is my first post and I'd like to ask if anyone can tell me what's wrong with the following HTML code for generating my TOC in epub format? The MOBI output works perfectly well for a multi-level TOC. I am using images for my chapter headings, using the H1 and H2 tags to generate a mutl-level TOC that would look like this:
Part I 1 2 3 ... etc. Part 2 1 2 3 ... etc. This TOC code works perfectly well for MOBI and on my Kindle. But it does not work for epub with KOBO, Nook for PC, or Adobe Digital Editions viewers. With those viewers, the multi-level TOC "visually" appears to be there (all the titles and sub-chapter numbers appear) but when you click on any of the links, nothing happens. So the actual TOC recognition seems to be working, but the actual links are dead. As I said, this approach works perfectly well with MOBI and Kindle. Here’s the HTML: <h1 title=”Part 1”> <p><span><img src=”part1.gif” alt=”Part I” /></span></p> </h1> <h2 title=”1”> <p><span><img src=”part1c1.gif” alt=”Part I, Chapter 1” /></span></p> <h2> <h2 title=”2”> <p><span><img src=”part1c2.gif” alt=”Part I, Chapter 2” /></span></p> <h2> ... <h1 title=”Part 2”> <p><span><img src=”part2.gif” alt=”Part I” /></span></p> </h1> <h2 title=”1”> <p><span><img src=”part2c1.gif” alt=”Part 2, Chapter 1” /></span></p> <h2> <h2 title=”2”> <p><span><img src=”part2c2.gif” alt=”Part 2, Chapter 2” /></span></p> <h2> For the Table Of Contents tab in Calibre, I’m using this: Level 1 TOC: //h:h1 Level 2 TOC: //h:h2 Here’s what the TOC looks like on the NOOK viewer when you open it: p.2, Cover Page p.3, Prologue P.3,Part I p.3, 1 p.3, 2 ... .etc. p.3, Part 2 p.3, 1 p.3, 2 ... etc. I have no idea what those p.2’s and p.3’s are, or why the TOC “appears” to be there but doesn’t work. (BTW, in the other viewers, you see the TOC as it should appear, no strange p.2 or p.3, but the links don't work). Any ideas? I’d appreciate any insight anyone could offer. Thank you! Regards, David Cassidy |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,592
Karma: 2822668
Join Date: Jul 2010
Device: Kindle
|
![]() ![]() ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 16,731
Karma: 12185114
Join Date: Nov 2007
Location: Florida
Device: iPhone 6 plus, Sony T1, iPad 3
|
Sorry David. Only room for one Cassidy on MobileRead.
Shoot. I didn't think you fall for that one. Anyway, welcome to MR. |
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Feb 2012
Device: Kindle, Nook, iBooks
|
There's always room for one more ... ain't there?
Thanks for the welcome! I'll give the forums a look again. I did send a stripped down, bare-bones version of this code to Guido Henkel (I was following his guidelines on how to build an ebook and everything worked perfectly for MOBI). I'm hoping he can recreate the problem and find a solution!
|
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,441
Karma: 59592133
Join Date: Jan 2007
Location: Peru
Device: KINDLE: Oasis 3, Scribe (1st), Matcha; KOBO: Libra 2, Libra Colour
|
This is the Introduce Yourself Forum, where new members introduce themselves.
Why not take the time and courtesy to introduce yourself? Don (Moderator) |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
PORTAL
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,204
Karma: 2884640
Join Date: Apr 2010
Device: Kindle 1, Kindle 3 (3G), iPhone
|
Welcome to MR!
Imogen |
![]() |
![]() |