View Single Post
Old 12-11-2011, 03:52 AM   #1
Koko
thinking thing
Koko is faster than slow light.Koko is faster than slow light.Koko is faster than slow light.Koko is faster than slow light.Koko is faster than slow light.Koko is faster than slow light.Koko is faster than slow light.Koko is faster than slow light.Koko is faster than slow light.Koko is faster than slow light.Koko is faster than slow light.
 
Koko's Avatar
 
Posts: 56
Karma: 29556
Join Date: Jul 2010
Device: xx
Help with NCX file on kindle (SOLVED)

*** SOLVED***

It’s my first time trying to use NCX to create the tic marks on kindle. I have followed this tutorial, but I can't seam to get it right. I get no errors when building the book in mobiPocket creator; still the NCX is not displayed when viewing the book in Kindle Previewer.

Here is my NCX file "nav.ncx"

Code:
<?xml version="1.0" encoding="UTF-8"?>
<ncx version="2005-1" xmlns="http://www.daisy.org/z3986/2005/ncx">
<head>
	<meta name="dtb:uid" content="uid" />
	<meta name="dtb:depth" content="1" />
	<meta name="dtb:totalPageCount" content="0" />
	<meta name="dtb:maxPageNumber" content="0" />
</head>
<docTitle>
	<text>Bibelen 2011</text>
</docTitle>
<docAuthor>
	<text>Det Norske Bibelselskap</text>
</docAuthor>
<navMap>
<navPoint id="1. Mosebok" playOrder="1"><navLabel><text></text></navLabel><content src="bibelen2011.html#Section_1"/></navPoint>
<navPoint id="2. Mosebok" playOrder="2"><navLabel><text></text></navLabel><content src="bibelen2011.html#Section_2"/></navPoint>
<navPoint id="3. Mosebok" playOrder="3"><navLabel><text></text></navLabel><content src="bibelen2011.html#Section_3"/></navPoint>
....
</navMap>
</ncx>
.OPF file:
Code:
<?xml version="1.0" encoding="utf-8"?>
<package unique-identifier="uid"><metadata><dc-metadata xmlns:dc="http://purl.org/metadata/dublin_core" xmlns:oebpackage="http://openebook.org/namespaces/oeb-package/1.0/"><dc:Title>Bibelen 2011</dc:Title><dc:Language>no</dc:Language><dc:Identifier id="uid">D8257DE522</dc:Identifier><dc:Date>10/01/2011</dc:Date><dc:Creator>Det Norske Bibelselskap</dc:Creator><dc:Publisher>Det Norske Bibelselskap</dc:Publisher></dc-metadata><x-metadata><output encoding="utf-8"></output><EmbeddedCover>bibel2011.jpg</EmbeddedCover></x-metadata></metadata>

<manifest>
	<item id="item1" media-type="text/x-oeb1-document" href="bibelen2011.html"></item>
	<item id="ncx" media-type="application/x-dtbncx+xml" href="nav.ncx"></item>
</manifest>
<spine toc="ncx">
	<itemref idref="item1"/>
</spine>
<tours></tours>
<guide>
	<reference type="start" title="Første side" href="bibelen2011.html%23start"></reference>
	<reference type="toc" title="Innhold" href="bibelen2011.html%23toc"></reference>
</guide></package>
The tags that should be linked looks like this in the html "bibelen2011.html":

Code:
<H1><A NAME="Section_1"></A>1. Mosebok</H1>

Last edited by Koko; 04-15-2012 at 06:08 PM. Reason: The issue is solved, no need to view this tread.
Koko is offline   Reply With Quote