Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > Miscellaneous > Introduce Yourself

Notices

Reply
 
Thread Tools Search this Thread
Old 02-04-2012, 03:43 PM   #1
David Cassidy
Junior Member
David Cassidy began at the beginning.
 
David Cassidy's Avatar
 
Posts: 2
Karma: 10
Join Date: Feb 2012
Device: Kindle, Nook, iBooks
Question Hi everyone!

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
David Cassidy is offline   Reply With Quote
Old 02-04-2012, 04:11 PM   #2
Valmore Daniels
Grand Sorcerer
Valmore Daniels ought to be getting tired of karma fortunes by now.Valmore Daniels ought to be getting tired of karma fortunes by now.Valmore Daniels ought to be getting tired of karma fortunes by now.Valmore Daniels ought to be getting tired of karma fortunes by now.Valmore Daniels ought to be getting tired of karma fortunes by now.Valmore Daniels ought to be getting tired of karma fortunes by now.Valmore Daniels ought to be getting tired of karma fortunes by now.Valmore Daniels ought to be getting tired of karma fortunes by now.Valmore Daniels ought to be getting tired of karma fortunes by now.Valmore Daniels ought to be getting tired of karma fortunes by now.Valmore Daniels ought to be getting tired of karma fortunes by now.
 
Valmore Daniels's Avatar
 
Posts: 6,592
Karma: 2822668
Join Date: Jul 2010
Device: Kindle
Welcome to the boards, David I hope you can find the answer somewhere in these forums
Valmore Daniels is offline   Reply With Quote
Advert
Old 02-04-2012, 04:42 PM   #3
MickeyC
Grand Sorcerer
MickeyC ought to be getting tired of karma fortunes by now.MickeyC ought to be getting tired of karma fortunes by now.MickeyC ought to be getting tired of karma fortunes by now.MickeyC ought to be getting tired of karma fortunes by now.MickeyC ought to be getting tired of karma fortunes by now.MickeyC ought to be getting tired of karma fortunes by now.MickeyC ought to be getting tired of karma fortunes by now.MickeyC ought to be getting tired of karma fortunes by now.MickeyC ought to be getting tired of karma fortunes by now.MickeyC ought to be getting tired of karma fortunes by now.MickeyC ought to be getting tired of karma fortunes by now.
 
MickeyC's Avatar
 
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.
MickeyC is offline   Reply With Quote
Old 02-04-2012, 05:26 PM   #4
David Cassidy
Junior Member
David Cassidy began at the beginning.
 
David Cassidy's Avatar
 
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!
David Cassidy is offline   Reply With Quote
Old 02-04-2012, 05:49 PM   #5
Dr. Drib
Grand Sorcerer
Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.
 
Dr. Drib's Avatar
 
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)
Dr. Drib is offline   Reply With Quote
Advert
Old 02-06-2012, 12:12 AM   #6
ImogenRose
PORTAL
ImogenRose ought to be getting tired of karma fortunes by now.ImogenRose ought to be getting tired of karma fortunes by now.ImogenRose ought to be getting tired of karma fortunes by now.ImogenRose ought to be getting tired of karma fortunes by now.ImogenRose ought to be getting tired of karma fortunes by now.ImogenRose ought to be getting tired of karma fortunes by now.ImogenRose ought to be getting tired of karma fortunes by now.ImogenRose ought to be getting tired of karma fortunes by now.ImogenRose ought to be getting tired of karma fortunes by now.ImogenRose ought to be getting tired of karma fortunes by now.ImogenRose ought to be getting tired of karma fortunes by now.
 
ImogenRose's Avatar
 
Posts: 7,204
Karma: 2884640
Join Date: Apr 2010
Device: Kindle 1, Kindle 3 (3G), iPhone
Welcome to MR!

Imogen
ImogenRose is offline   Reply With Quote
Reply


Forum Jump


All times are GMT -4. The time now is 01:22 PM.


MobileRead.com is a privately owned, operated and funded community.