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

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 12-10-2013, 06:21 PM   #1
slicknick001
Member
slicknick001 began at the beginning.
 
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>
Attached Files
File Type: epub BenchWarfare v1.1.epub (1.89 MB, 33 views)
File Type: mobi BenchWarfare v1.1.mobi (3.95 MB, 21 views)
slicknick001 is offline   Reply With Quote
Old 12-10-2013, 07:38 PM   #2
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,220
Karma: 5940081
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
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.
theducks is online now   Reply With Quote
Old 12-10-2013, 07:49 PM   #3
slicknick001
Member
slicknick001 began at the beginning.
 
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?
slicknick001 is offline   Reply With Quote
Old 12-10-2013, 07:57 PM   #4
slicknick001
Member
slicknick001 began at the beginning.
 
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>
slicknick001 is offline   Reply With Quote
Old 12-10-2013, 08:02 PM   #5
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,220
Karma: 5940081
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by slicknick001 View Post
I don't think I have touched the NCX. Is there a way to fix it?
Forget what I said
I NOW see the line <content src="Text/cover.xhtml"/>

The built in TOC (NCX) should work
theducks is online now   Reply With Quote
Old 12-10-2013, 08:15 PM   #6
slicknick001
Member
slicknick001 began at the beginning.
 
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.

:-(
slicknick001 is offline   Reply With Quote
Old 12-10-2013, 09:42 PM   #7
bfollowell
Fanatic
bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.
 
Posts: 515
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Amazon Kindle 3 Wi-Fi & B&N Nook Tablet & B&N Nook HD+
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
bfollowell is offline   Reply With Quote
Old 12-11-2013, 03:37 AM   #8
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 2,118
Karma: 4861354
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by slicknick001 View Post
1) In the Table of Contents, the top link, "Cover", is not clickable.
That's because the Kindle compiler does not support cover HTML pages. You'll need to delete the cover entry from the NCX and HTML TOCs.

Quote:
Originally Posted by slicknick001 View Post
2) In the "Spine" navigation panel in the Kindle, the second link, "Contents", is not clickable.
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 03:47 AM.
Doitsu is offline   Reply With Quote
Old 12-11-2013, 02:17 PM   #9
slicknick001
Member
slicknick001 began at the beginning.
 
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?
slicknick001 is offline   Reply With Quote
Old 12-11-2013, 05:15 PM   #10
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 2,118
Karma: 4861354
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by slicknick001 View Post
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.
IMHO, the HTML TOC should not be referenced in the NCX TOC, because it's redundant for ePub readers and Kindle models that support the display of the NCX TOC.
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.)
Attached Thumbnails
Click image for larger version

Name:	menu.jpg
Views:	44
Size:	37.4 KB
ID:	116552  
Doitsu is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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 01:54 AM
Table of Contents & Links Jamestoo Calibre 4 02-21-2012 11:07 AM
none of the ebook 'table of contents' links work? vmars316 Conversion 2 10-04-2011 03:28 PM
Table of Contents incorrect info pricespringer Calibre 0 12-25-2010 06:06 AM
Question: converting lit to imp and keeping table of contents links etc askyn IMP 11 10-04-2008 02:04 AM


All times are GMT -4. The time now is 09:23 PM.


MobileRead.com is a privately owned, operated and funded community.