Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats


Thread Tools Search this Thread
Old 01-12-2016, 06:54 PM   #1
San Zamoyski
San Zamoyski began at the beginning.
Posts: 31
Karma: 10
Join Date: Jan 2015
Location: Poland, Warsaw
Device: Kindle 3G
TOC problem


I am creating a plugin for WordPress to generate ebooks from PDF of plain text. Work is almost done (with some dirty workarounds and small glitches).

So I'm generating ZIP file as epub thats being converted to mobi with kindlegen.

One thing I'm missing is TOC. When I go to menu 'go to*', toc is grayed out and i have no idea why.

*i have polish menu, so it is possible it is called somehow diffrent.

Here are some files from example epub:

<!DOCTYPE html>
	            <html lang="pl" xmlns=""> 
	                    <meta charset="utf-8" />
	                    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	                    <link rel="stylesheet" type="text/css" href="style.css" />
	                <body><h1 style="text-align:center;" >Spis treści</h1><p><a href="1.html">Flaj</a></p>
<?xml version="1.0" encoding="UTF-8"?>
				<!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN"
				<ncx xmlns="" version="2005-1" xml:lang="en" dir="ltr">
						<meta name="dtb:uid" content="zabał" />
						<meta name="dtb:depth" content="3" />
						<meta name="dtb:totalPageCount" content="0" />
						<meta name="dtb:maxPageNumber" content="0" />
						<text>Tomasz Bilski</text>
						<navPoint class="tyt" id="tyt" playOrder="1">
						   <navLabel><text>Spis treści</text></navLabel>
						   <content src="tyt.html" />
						<navPoint class="toc" id="toc" playOrder="2">
						   <navLabel><text>Spis treści</text></navLabel>
						   <content src="toc.html" />
							<navPoint class="chapter" id="p1" playOrder="3">
							   <content src="1.html" />
<?xml version="1.0" encoding="UTF-8"?>
			            <package xmlns:xx="" xmlns:atom="" xmlns:dc="" 
			                unique-identifier="BookId" version="2.0" xmlns="">
			            	<metadata xmlns:dc="" xmlns:opf="">
			            		<meta name="book-type" content="b/d"/>
			            		<dc-metadata xmlns:dc="" xmlns:oebpackage=""> 
			            			<dc:creator>Tomasz Bilski</dc:creator>
			            			<dc:rights>Niniejsza publikacja została utworzona przy użyciu skryptˇw dostępnych na zabał Serwis nie odpowiada za przetwarzanie nielegalnych materiałˇw.
			                    <meta name="cover" content="cover-image" />
						<item id="tyt" href="tyt.html" media-type="application/xhtml+xml"/>
						<item id="toc" href="toc.html" media-type="application/xhtml+xml"/>
							<item id="p1" href="1.html" media-type="application/xhtml+xml"/>
			                    <item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml" />
								<item id="cover-image" href="cover.png" media-type="image/png" />
								<item id="Style" href="style.css" media-type="text/css" /></manifest>
			            	<spine toc="ncx">
							<itemref idref="tyt" />
							<itemref idref="toc" />
							<itemref idref="p1" />
Any idea what's wrong?

Best regards!
San Zamoyski is offline   Reply With Quote
Old 01-13-2016, 11:33 AM   #2
San Zamoyski
San Zamoyski began at the beginning.
Posts: 31
Karma: 10
Join Date: Jan 2015
Location: Poland, Warsaw
Device: Kindle 3G
Found it!

I was missing, in opf:
   <reference href="toc.html" type="toc" title="Table of Contents"/>
San Zamoyski is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Touch Do you have this problem in 1.9.17 (TOC) John F Kobo Reader 14 03-23-2012 06:57 AM
TOC problem ruefrex Conversion 4 05-28-2011 04:17 PM
Problem with TOC bobcdy Sigil 3 07-23-2010 04:09 PM
TOC Problem Zipr Calibre 0 03-19-2010 05:01 PM
Problem with TOC Soxendom OpenInkpot 4 10-28-2009 01:47 PM

All times are GMT -4. The time now is 02:09 PM. is a privately owned, operated and funded community.