View Single Post
Old 12-31-2011, 05:57 PM   #2
Jeff L
Zealot
Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.
 
Posts: 117
Karma: 584308
Join Date: Oct 2010
Location: San Francisco
Device: Kindle
The Kindle uses the toc.ncx file for this section to section movement.

You can unzip an epub file to see what one looks like and edit it for your own use.

Then reference the ncx in the mobi .OPF file's manifest and spine sections:

<manifest>
<item href="toc.ncx" id="ncx" media-type="application/x-dtbncx+xml"/>
.
.
.
</manifest>

<spine toc="ncx">
.
.
.
</spine>

To create sublevels in the toc.ncx, write something like this (note the placement of the opening and closing tags):


<navPoint id="book-1" playOrder="1">
<navLabel>
<text>Book 1</text>
</navLabel>
<content src="filename1.html"/>


<navPoint id="sub-chapter-1A" playOrder="2">
<navLabel>
<text>Chapter 1A</text>
</navLabel>
<content src="filename2.html"/>
</navPoint>


<navPoint id="sub-chapter-1B" playOrder="3">
<navLabel>
<text>Chapter 1B</text>
</navLabel>
<content src="filename3.html"/>
</navPoint>


</navPoint>
Jeff L is offline   Reply With Quote