12-10-2013, 05:21 PM | #1 |
Member
Posts: 12
Karma: 10
Join Date: Dec 2013
Device: kindle
|
Table of contents and related spine links incorrect
The two links described below work correctly in the Sigil editor but don't work in the pc kindle reader.
1) In the Table of Contents, the top link, "Cover", is not clickable. 2) In the "Spine" navigation panel in the Kindle, the second link, "Contents", is not clickable. I've attached Sigil file and mobi file generated by kindlegen. I'd be grateful for any help. Here is the pasted code for TOC.xhtml, content.opf and the toc.ncx pages: ************************************************** ****** TOC code ************************************************** ******<?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Contents</title> <link href="../Styles/sgc-toc.css" rel="stylesheet" type="text/css" /> <link href="../Styles/RichmondStyle.css" rel="stylesheet" type="text/css" /> </head> <body> <h1 class="hidden">Contents</h1> <div class="sgc-toc-title"> Table of Contents </div> <div class="sgc-toc-level-1"> <a href="../Text/cover.xhtml">Cover</a> </div> <div class="sgc-toc-level-1"> <a href="../Text/TOC.xhtml">Contents</a> </div> <div class="sgc-toc-level-1"> <a href="../Text/Copyright.xhtml">Copyright</a> </div> <div class="sgc-toc-level-1"> <a href="../Text/BenchWarfare.xhtml">Bench Warfare</a> </div> <div class="sgc-toc-level-1"> <a href="../Text/AboutTheAuthor.xhtml">About the Author</a> </div> </body> </html> ************************************************** ****** content.opf code ************************************************** ****** <?xml version="1.0" encoding="utf-8" standalone="yes"?> <package xmlns="http://www.idpf.org/2007/opf" unique-identifier="BookId" version="2.0"> <metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlnspf="http://www.idpf.org/2007/opf"> <dc:identifier id="BookId" opf:scheme="UUID">urn:uuid:ed910306-b456-4990-977b-c139e6691dc1</dc:identifier> <dc:title>Bench Warfare</dc:title> <dc:creator opf:role="aut">Nicholas Lim</dc:creator> <dc:language>en</dc:language> <dc:date opf:event="modification">2013-12-10</dc:date> <meta content="0.7.4" name="Sigil version" /> <meta name="cover" content="Bench_Warfare_Linen_Letterpress_v6.jpg" /> </metadata> <manifest> <item href="toc.ncx" id="ncx" media-type="application/x-dtbncx+xml" /> <item href="Text/Copyright.xhtml" id="Copyright.xhtml" media-type="application/xhtml+xml" /> <item href="Text/AboutTheAuthor.xhtml" id="AboutTheAuthor.xhtml" media-type="application/xhtml+xml" /> <item href="Styles/RichmondStyle.css" id="RichmondStyle.css" media-type="text/css" /> <item href="Text/BenchWarfare.xhtml" id="BenchWarfare.xhtml" media-type="application/xhtml+xml" /> <item href="Text/TitlePage.xhtml" id="TitlePage.xhtml" media-type="application/xhtml+xml" /> <item href="Styles/sgc-toc.css" id="sgc-toc.css" media-type="text/css" /> <item href="Text/TOC.xhtml" id="TOC.xhtml" media-type="application/xhtml+xml" /> <item href="Text/cover.xhtml" id="cover.xhtml" media-type="application/xhtml+xml" /> <item href="Images/Amazon-small-quality.co.uk.jpg" id="Amazon-small-quality.co.uk.jpg" media-type="image/jpeg" /> <item href="Images/Amazon-small-quality.com.jpg" id="Amazon-small-quality.com.jpg" media-type="image/jpeg" /> <item href="Images/Bench%20Warfare%20Linen%20Letterpress%20v6.jpg" id="Bench_Warfare_Linen_Letterpress_v6.jpg" media-type="image/jpeg" /> <item href="Images/Goodreads-small-quality.jpg" id="Goodreads-small-quality.jpg" media-type="image/jpeg" /> </manifest> <spine toc="ncx"> <itemref idref="cover.xhtml" linear="no" /> <itemref idref="TOC.xhtml" /> <itemref idref="Copyright.xhtml" /> <itemref idref="TitlePage.xhtml" /> <itemref idref="BenchWarfare.xhtml" /> <itemref idref="AboutTheAuthor.xhtml" /> </spine> <guide> <reference href="Text/Copyright.xhtml" title="Copyright Page" type="copyright-page" /> <reference href="Text/TOC.xhtml" title="Table Of Contents" type="toc" /> <reference href="Text/TitlePage.xhtml" title="Title Page" type="title-page" /> <reference href="Text/BenchWarfare.xhtml" title="Text" type="text" /> <reference href="Text/AboutTheAuthor.xhtml" title="Bibliography" type="bibliography" /> <reference href="Text/cover.xhtml" title="Cover" type="cover" /> </guide> </package> ************************************************** ****** toc.ncx code ************************************************** ****** <?xml version="1.0" encoding="UTF-8" standalone="no" ?> <!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN" "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd"> <ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1"> <head> <meta content="urn:uuid:ed910306-b456-4990-977b-c139e6691dc1" name="dtb:uid"/> <meta content="1" name="dtb:depth"/> <meta content="0" name="dtb:totalPageCount"/> <meta content="0" name="dtb:maxPageNumber"/> </head> <docTitle> <text>Bench Warfare</text> </docTitle> <navMap> <navPoint id="navPoint-1" playOrder="1"> <navLabel> <text>Cover</text> </navLabel> <content src="Text/cover.xhtml"/> </navPoint> <navPoint id="navPoint-2" playOrder="2"> <navLabel> <text>Contents</text> </navLabel> <content src="Text/TOC.xhtml"/> </navPoint> <navPoint id="navPoint-3" playOrder="3"> <navLabel> <text>Copyright</text> </navLabel> <content src="Text/Copyright.xhtml"/> </navPoint> <navPoint id="navPoint-4" playOrder="4"> <navLabel> <text>Bench Warfare</text> </navLabel> <content src="Text/BenchWarfare.xhtml"/> </navPoint> <navPoint id="navPoint-5" playOrder="5"> <navLabel> <text>About the Author</text> </navLabel> <content src="Text/AboutTheAuthor.xhtml"/> </navPoint> </navMap> </ncx> |
12-10-2013, 06:38 PM | #2 |
Well trained by Cats
Posts: 29,691
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
That is not a (normal) Sigil generated NCX
there is no src lines for many items in the NCX FWIW the HTML TOC is generated FROM the NCX, not the book. |
Advert | |
|
12-10-2013, 06:49 PM | #3 |
Member
Posts: 12
Karma: 10
Join Date: Dec 2013
Device: kindle
|
I don't think I have touched the NCX. Is there a way to fix it?
|
12-10-2013, 06:57 PM | #4 |
Member
Posts: 12
Karma: 10
Join Date: Dec 2013
Device: kindle
|
I've just regenerated the NXC and HTML table of contents in Sigil via the tools menu. They don't look like they've changed. Here's the TOC.NCX
************************************************** ********** TOC.NCX ************************************************** ********** <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN" "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd"> <ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1"> <head> <meta name="dtb:uid" content="urn:uuid:ed910306-b456-4990-977b-c139e6691dc1" /> <meta name="dtb:depth" content="1" /> <meta name="dtb:totalPageCount" content="0" /> <meta name="dtb:maxPageNumber" content="0" /> </head> <docTitle> <text>Bench Warfare</text> </docTitle> <navMap> <navPoint id="navPoint-1" playOrder="1"> <navLabel> <text>Cover</text> </navLabel> <content src="Text/cover.xhtml" /> </navPoint> <navPoint id="navPoint-2" playOrder="2"> <navLabel> <text>Contents</text> </navLabel> <content src="Text/TOC.xhtml" /> </navPoint> <navPoint id="navPoint-3" playOrder="3"> <navLabel> <text>Copyright</text> </navLabel> <content src="Text/Copyright.xhtml" /> </navPoint> <navPoint id="navPoint-4" playOrder="4"> <navLabel> <text>Bench Warfare</text> </navLabel> <content src="Text/BenchWarfare.xhtml" /> </navPoint> <navPoint id="navPoint-5" playOrder="5"> <navLabel> <text>About the Author</text> </navLabel> <content src="Text/AboutTheAuthor.xhtml" /> </navPoint> </navMap> </ncx> |
12-10-2013, 07:02 PM | #5 |
Well trained by Cats
Posts: 29,691
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
Advert | |
|
12-10-2013, 07:15 PM | #6 |
Member
Posts: 12
Karma: 10
Join Date: Dec 2013
Device: kindle
|
I validated, saved and did kindlegen again. No change... The two links described below work correctly in the Sigil editor but don't work in the pc kindle reader.
1) In the Table of Contents, the top link, "Cover", is not clickable. 2) In the "Spine" navigation panel in the Kindle, the second link, "Contents", is not clickable. :-( |
12-10-2013, 08:42 PM | #7 |
Fanatic
Posts: 541
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Samsung Galaxy Tab 4 Nook & Samsung Galaxy Tab S 10.5
|
This is just me, and I no longer use a Kindle but, back when I used my Kindle 3, I always got my ebooks looking and working the way I wanted and then performed the final conversion to mobi with Calibre. I just found the results were much better from Calibre when compared to the results from Kindlegen. Of course, that was just me and that was a couple of years ago. Still, even though I have Nook HD+, my wife has a Kindle Fire HD and she's always had good luck with converting from epub to azw with Calibre. You may want to give it a try and compare the results.
- Byron |
12-11-2013, 02:37 AM | #8 | |
Grand Sorcerer
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
After regenerating both NCX and HTML TOCs in Sigil, the Contents link in the NCX View mode works. If you click the Contents link in the HTML TOC, nothing will happen, because it links to the the same file, which is kind of pointless. You may want to remove it from the HTML TOC. Last edited by Doitsu; 12-11-2013 at 02:47 AM. |
|
12-11-2013, 01:17 PM | #9 |
Member
Posts: 12
Karma: 10
Join Date: Dec 2013
Device: kindle
|
I regenerated both NCX and HTML TOCs in Sigil as suggested, but now the Contents link is missing completely from the NCX View mode and the toc.ncx file! The only way I can get it back get is by adding a manual hidden h1 title into the generated TOC.xhtml file.
Is that correct? |
12-11-2013, 04:15 PM | #10 | |
Grand Sorcerer
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Kindle models and apps that don't support the display of an NCX TOC have dedicated menu options that allows the user to select the HTML TOC via the Go to... menu. (See screen capture.) The targets for the Go to... menu option need to be defined via Add Semantics in Sigil, which will add guide items to the .opf file. The beginning, AKA SRL (start reading location), needs to be defined as Text, the cover HTML page as Cover and the TOC as Table Of Contents. (The other menu items are automatically handled by the Kindle.) (BTW, you don't need to delete the cover HTML page; even though KindleGen will ignore the HTML code, it'll still use the referenced image as the cover image.) |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Table of Contents not being identified as Table of Contents | openletter | Conversion | 2 | 10-19-2012 12:54 AM |
Table of Contents & Links | Jamestoo | Calibre | 4 | 02-21-2012 10:07 AM |
none of the ebook 'table of contents' links work? | vmars316 | Conversion | 2 | 10-04-2011 02:28 PM |
Table of Contents incorrect info | pricespringer | Calibre | 0 | 12-25-2010 05:06 AM |
Question: converting lit to imp and keeping table of contents links etc | askyn | IMP | 11 | 10-04-2008 01:04 AM |