Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 08-15-2016, 10:12 AM   #1
brahms
Enthusiast
brahms began at the beginning.
 
Posts: 43
Karma: 30
Join Date: Feb 2016
Device: none
mobi from kindlegen contents list problem

Hi all, and thanks for your help.

I've made an ePub directly (not using calibre etc), and it validates fine.

However, converting with kindlegen produces a mobi contents list (in PC kindle reader) that ignores clicks on the second page (title page) instead showing the cover image.

All pages display perfectly navigating by page forward/back and by the html toc so I presume the problem is in the .ncx?

Curiously, if i use Calibre to convert from epub to mobi, the resulting mobi works properly. Where am I going wrong? I'd prefer to get kindlegen to work if possible.

Code:
navMap> 

<navPoint id ="title001" playOrder="1">
<navLabel> <text>Title Page</text> </navLabel> <content src ="content/title001.html"/> 
</navPoint> 

<navPoint id ="toc" playOrder="2">
<navLabel> <text>Contents</text> </navLabel> <content src ="content/toc.html"/> 
</navPoint> 

<navPoint id ="content001" playOrder="3">
<navLabel> <text>Find Gold</text> </navLabel> <content src ="content/content001.html"/> 
</navPoint>

<navPoint id ="content002" playOrder="4">
<navLabel> <text>About the Author</text> </navLabel> <content src ="content/content002.html"/> 
</navPoint>

<navPoint id ="content003" playOrder="5">
<navLabel> <text>Copyright Page</text> </navLabel> <content src ="content/content003.html"/>
</navPoint> 

	</navMap>
		</ncx>
The manifest etc is this (I've taken out header stuff):

Code:
<manifest> 
  
  <item href="content/title001.html" id="title001" media-type="application/xhtml+xml"/> 
  <item href="content/content001.html" id="htmlcontent001" media-type="application/xhtml+xml"/> 
  <item href="content/content002.html" id="htmlcontent002" media-type="application/xhtml+xml"/>
  <item href="content/content003.html" id="htmlcontent003" media-type="application/xhtml+xml"/>
 
  <item href="content/toc.html" id="toc" media-type="application/xhtml+xml"/>
  <item href="toc.ncx" id="ncx" media-type="application/x-dtbncx+xml"/> 
  <item href="css/style001.css" id="cssstylesheet" media-type="text/css"/> 
  <item href="images/cover.jpg" id="My_Cover_ID" media-type="image/jpeg"/> <!-- Required for KindleGen, Barnes and Noble, and iBooks --> 
  </manifest>

<spine toc="ncx">

<itemref idref="title001"/>
<itemref idref="toc"/>
<itemref idref="htmlcontent001"/> 
<itemref idref="htmlcontent002"/>
<itemref idref="htmlcontent003"/>
</spine >

<guide> 
 
<reference href ="content/title001.html" type ="text" title ="Begin Reading"/>
<reference href ="content/toc.html" type ="toc" title ="Table of Contents"/>
 
</guide >
</package>

Many thanks.
brahms is offline   Reply With Quote
Old 08-16-2016, 07:47 AM   #2
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
Have you ever tried Sigil? I find it much better than Calibre for this purpose. I've only once or twice ever been obliged to look at the NCX file in a Sigil epub, and I've never had a validated Sigil epub give a problem when uploaded to the KDP. (I don't use KindleGen or Kindle Previewer for this purpose, and indeed have never been able to get KindleGen working on my Windows 7 desktop.)
Notjohn is offline   Reply With Quote
Old 08-16-2016, 09:00 AM   #3
brahms
Enthusiast
brahms began at the beginning.
 
Posts: 43
Karma: 30
Join Date: Feb 2016
Device: none
Funny thing is that everything is validating fine, epub and mobi. And the calibre version works ok, but I'd prefer to get the kindlegen version right if possible.

It's an odd one.
brahms is offline   Reply With Quote
Old 08-16-2016, 05:47 PM   #4
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
This is just a guess, but the problem may have something to do with your book not having an actual cover page in the spine and starting instead with the title page.
jhowell is offline   Reply With Quote
Old 08-17-2016, 02:25 PM   #5
brahms
Enthusiast
brahms began at the beginning.
 
Posts: 43
Karma: 30
Join Date: Feb 2016
Device: none
Quote:
Originally Posted by jhowell View Post
This is just a guess, but the problem may have something to do with your book not having an actual cover page in the spine and starting instead with the title page.
I'll check that out. Thanks for the suggestion.
brahms is offline   Reply With Quote
Old 09-23-2016, 07:56 AM   #6
brahms
Enthusiast
brahms began at the beginning.
 
Posts: 43
Karma: 30
Join Date: Feb 2016
Device: none
Sorry about taking so long.

This issue also happens with another epub, this one with a cover in the spine:

Quote:
spine toc="ncx">
<itemref idref="htmlcoverpage"/>
<itemref idref="title001"/>
<itemref idref="htmltoc"/>
<itemref idref="htmlcontent001"/>
<itemref idref="htmlcontent002"/>
<itemref idref="htmlcontent003"/>
<itemref idref="htmlcontent004"/>
<itemref idref="htmlcontent005"/>

etc etc
Strange that kindlgen has this problem but a calibre conversion from an epub doesn't.

Thanks again
brahms is offline   Reply With Quote
Old 09-23-2016, 09:06 AM   #7
brahms
Enthusiast
brahms began at the beginning.
 
Posts: 43
Karma: 30
Join Date: Feb 2016
Device: none
I wondered whether having in the <guide> the 'begin reading' page set to the title page is part of the problem.

Turns out it's not that. If I click Title page in the ToC it shows the cover.
brahms is offline   Reply With Quote
Old 09-24-2016, 03:52 AM   #8
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by brahms View Post
I wondered whether having in the <guide> the 'begin reading' page set to the title page is part of the problem.

Turns out it's not that. If I click Title page in the ToC it shows the cover.
This is a known bug. You mean using the Goto, not the TOC, don't you? If that's not what you mean, then, I may not be able to help. Can you clarify?

I'll have to actually check our cheatsheets in the office, tomorrow, to remember the answer, but there's a quick-ish fix, if that's all it is.

Although, having said that--your Guide doesn't have the title page set. Hmmmmph. Well, maybe the same fix will work. When I scrounge it up tomorrow, I'll let you know.

Hitch
Hitch is offline   Reply With Quote
Old 09-24-2016, 02:51 PM   #9
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by brahms View Post
I wondered whether having in the <guide> the 'begin reading' page set to the title page is part of the problem.

Turns out it's not that. If I click Title page in the ToC it shows the cover.
Howdy:

I'm not 100% sure that we're handling the SAME bug, but, on the chance that it helps/works, make sure that in the navmap, you change this

Code:
<navPoint id ="title001" playOrder="1">
<navLabel> <text>Title Page</text> </navLabel> <content src ="content/title001.html"/> 
</navPoint>
to something MORE LIKE this:

Code:
<navPoint id ="title001" playOrder="1">
<navLabel> <text>Title Page</text> </navLabel> <content src ="content/title001.html#tt"/> 
</navPoint>
...in which "tt" is the id for a paragraph location on the title page. We use it for the paragraph enclosing the title (of the book) on the title page, like so:

Code:
<div class="booksection">
<p class="title" id="tt"><b>YOUR BOOK NAME HERE</b></p>
<p class="title1">SUBTITLE HERE</p>
<p class="title2">BYLINE HERE</p>
</div>
This is a known bug; we've been using this workaround for a few years now, IIRC. At least, I believe we're solving the same issue.

Hope that helps.

Hitch
Hitch is offline   Reply With Quote
Old 09-27-2016, 11:07 AM   #10
brahms
Enthusiast
brahms began at the beginning.
 
Posts: 43
Karma: 30
Join Date: Feb 2016
Device: none
Thanks Hitch, I'll give that a try.

Meantime, given that Calibre converts from epub to mobi without creating this problem, is there any disadvantage to just going with that for KDP?
brahms is offline   Reply With Quote
Old 09-27-2016, 05:34 PM   #11
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by brahms View Post
Thanks Hitch, I'll give that a try.

Meantime, given that Calibre converts from epub to mobi without creating this problem, is there any disadvantage to just going with that for KDP?
Go right ahead. You should be aware of the following:
  • Amazon somewhat frequently does not accept Calibre-generated MOBI files, giving "eBooks created with 3rd-party tools are not supported" as the reason.
  • If you build a "mobi" with Calibre, you are building a KF7 MOBI file, not a "dual" mobi, that contains both the KF8 and KF7 versions of the book.
  • You cannot upload the "AZW3" Calibre format to Amazon.
  • This means that if you have ANY advanced features--like embedded fonts and so on--you won't get that.
  • If you determine to do that, make sure that you inspect your code, and ensure that your important styling is inline.
  • In keeping with that, inspect your CSS, and make sure that none of it is very advanced. If you see anything that you're worried about, replicate it inline using HTML, rather than CSS.

That's all. Your book will look the same, whether someone uses a K2 to read, or an HDX. That can be a good thing to a lot of people. Furthermore, you sacrifice any ability to take advantage of the new LITB.

HOWEVER, if you stick with simple stuff, and that's all you have, it should work for you.

All that being said--what I posted to you SHOULD solve your problem.

Hitch
Hitch is offline   Reply With Quote
Old 09-28-2016, 03:12 PM   #12
brahms
Enthusiast
brahms began at the beginning.
 
Posts: 43
Karma: 30
Join Date: Feb 2016
Device: none
You method works a treat, Hitch.

Many thanks again, I really appreciate it.

Dave
brahms is offline   Reply With Quote
Old 09-28-2016, 08:14 PM   #13
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by brahms View Post
You method works a treat, Hitch.

Many thanks again, I really appreciate it.

Dave
You are most welcome. Glad it solved the issue.

Hitch
Hitch is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sigil to Kindlegen -- No Table of Contents paul-b Sigil 70 05-03-2012 04:57 PM
Problem with the Table of Contents of the mobi file kindleren Conversion 7 03-04-2012 12:42 PM
ePub or HTML to Mobi Table of Contents problem Dark123 Conversion 2 05-08-2011 03:43 PM
Table of contents problem converting from mobi to epub dlmecum Calibre 7 01-21-2011 07:07 PM
Table of Contents - html to Mobi problem thames Calibre 3 06-02-2010 07:24 PM


All times are GMT -4. The time now is 09:26 AM.


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