View Single Post
Old 08-30-2011, 03:23 AM   #28
Ron.
Evangelist
Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.Ron. ought to be getting tired of karma fortunes by now.
 
Ron.'s Avatar
 
Posts: 448
Karma: 864744
Join Date: Mar 2011
Device: Kindle 3, LookBook, Nook Simple Touch
Quote:
Originally Posted by virtual_ink View Post
Thanks JSWolf. I think that would work - however, I actually posted code from the wrong file! For the record, here's what I should have posted, and it works.

Original code:
<h2 id="toc_marker-6" class="sectiontitle"><span class="Bold"><a id="Contributors"/>Contributors</span></h2>

Edited code:
<a id="Contributors"/><h2 id="toc_marker-6" class="sectiontitle"><span class="Bold">Contributors</span></h2>

This validates, and works in Kindle (with no lost H tags!). Thanks all for your help.

@DiapDealer



I assumed Kindle would have a similar navigational TOC to iBooks (the one accessed with the little icon at the top of the page). From what I understand now, the Kindle device doesn't have that function, and must have a TOC page within the text. Please correct me if I'm wrong.

What threw me, was that in the Kindle app for iPad - if I use the 'Go to' icon - a submenu opens and an option for 'Table of Contents' is greyed out with a note "Not available for this title".

As I have a linked TOC page at the front of the book, perhaps I am providing all that is needed. What you are describing in the progress bar sounds helpful. i wonder why Kindlegen isn't generating this from the original epub toc.ncx
the mobi needs and inline (html) table of contents in addition to the ncx file, the ncx file on the kindle is only used for the 5 way controller and to display the chapter points at the bottom.


you need to have the inline table of contents and for it to link correctly you need to add

<guide>
<reference type="toc" title="Table of Contents" href="filename.html#bookmark"/>
</guide>

in your opf file, if not the option to jump to the table of contents will be greyed out.
Ron. is offline   Reply With Quote