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-30-2011, 10:37 AM   #31
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,896
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by virtual_ink View Post
Thanks JSWolf. I think that would work - however, I actually posted code from the wrong file! For the record, here's what I should have posted, and it works.

Original code:
<h2 id="toc_marker-6" class="sectiontitle"><span class="Bold"><a id="Contributors"/>Contributors</span></h2>

Edited code:
<a id="Contributors"/><h2 id="toc_marker-6" class="sectiontitle"><span class="Bold">Contributors</span></h2>

This validates, and works in Kindle (with no lost H tags!). Thanks all for your help.
The original code should work perfectly well. You don't actually need to change it. The problem is the that your ToC is jumping ot the wrong ID. You need to jump to toc_marker-6 instead of Contributors. If you fix sort of error this in the ToC links, then all will work fine. Putting the <a> first is just ugly code.
JSWolf is offline   Reply With Quote
Old 08-30-2011, 10:39 AM   #32
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,896
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
What sort of problem(s) would arise from submitting a Calibre generated Mobi file?
JSWolf is offline   Reply With Quote
Advert
Old 08-30-2011, 12:18 PM   #33
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,495
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by JSWolf View Post
What sort of problem(s) would arise from submitting a Calibre generated Mobi file?
No idea. But why take the risk that there might be problems when there's a way to avoid the possibility completely that's really not hard?

You're constantly moaning about the continued use of the Mobipocket/Kindle format. Well here's a genuine cause for complaint — the compiled format is not documented, so any third-party implementation of the format might cause problems when used with official tools and renderers in the future.
pdurrant is offline   Reply With Quote
Old 08-30-2011, 12:34 PM   #34
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,896
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by pdurrant View Post
No idea. But why take the risk that there might be problems when there's a way to avoid the possibility completely that's really not hard?

You're constantly moaning about the continued use of the Mobipocket/Kindle format. Well here's a genuine cause for complaint — the compiled format is not documented, so any third-party implementation of the format might cause problems when used with official tools and renderers in the future.
Well, that would be rather interesting. Amazon tweaks the renderer and at least 1/2 their content then fails to render properly.
JSWolf is offline   Reply With Quote
Old 08-30-2011, 12:35 PM   #35
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by JSWolf View Post
Well, that would be rather interesting. Amazon tweaks the renderer and at least 1/2 their content then fails to render properly.
Like Apple did with iBooks, you mean?
HarryT is offline   Reply With Quote
Advert
Old 08-30-2011, 12:37 PM   #36
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,896
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by HarryT View Post
Like Apple did with iBooks, you mean?
That's a good example. I have seen some perfectly good ePub render no so good with iBooks.
JSWolf is offline   Reply With Quote
Old 08-30-2011, 12:38 PM   #37
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,495
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by JSWolf View Post
That's a good example. I have seen some perfectly good ePub render no so good with iBooks.
At least with ePub there is a published specification, so that it's possible to tell whether the fault is with the content or the renderer.
pdurrant is offline   Reply With Quote
Old 08-30-2011, 02:24 PM   #38
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,546
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by pdurrant
But there is a solution. Generate using calibre. Then unpack using the mobiunpack script, and then re-compile using Kindlegen.

All the neat CSS interpretation by calibre, and a kindlegen generated file as well.
That's exactly the way I do it.
I even have a custom script to recreate the ncx from the inline html toc.
DiapDealer is offline   Reply With Quote
Old 09-30-2011, 01:30 AM   #39
virtual_ink
Zealot
virtual_ink can extract oil from cheesevirtual_ink can extract oil from cheesevirtual_ink can extract oil from cheesevirtual_ink can extract oil from cheesevirtual_ink can extract oil from cheesevirtual_ink can extract oil from cheesevirtual_ink can extract oil from cheesevirtual_ink can extract oil from cheese
 
virtual_ink's Avatar
 
Posts: 107
Karma: 1000
Join Date: Sep 2010
Location: Melbourne, Australia
Device: iPad2, Kindle
Quote:
There is no navigational TOC

Not exactly sure what you mean, but the toc.ncx file will only be used to create chapter "jump points" that can be navigated using the Kindle's five-way controller. They'll be represented as dots on the progress bar. If there is no in-line (html with the "toc" semantic assigned) toc, kindlegen does not create one from the toc.ncx.

@ DiapDialer, I have a contents page, in its own html file. I also have a toc.ncx file in the epub. How can I make either of these in-line, so that Kindle recognises it?

Last edited by virtual_ink; 09-30-2011 at 02:01 AM.
virtual_ink is offline   Reply With Quote
Old 09-30-2011, 04:47 AM   #40
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,546
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by virtual_ink
@ DiapDialer, I have a contents page, in its own html file. I also have a toc.ncx file in the epub. How can I make either of these in-line, so that Kindle recognises it?
The html TOC in your epub needs to be identified as the ToC. In Sigil, you can do this by setting the ToC semantic (right click on the the html file-> semantics-> Table of Contents). If you build your epub by hand, you need to identify the ToC with a reference item in the guide section of your OPF file... like so:
Code:
<guide>
    <reference type="toc" title="Table Of Contents" href="Text/Toc.xhtml"/>
    <reference type="cover" title="Cover" href="Text/titlepage.xhtml"/>
    <reference type="text" title="Text" href="Text/EditorsPreface.xhtml"/>
</guide>
Your hrefs will be different obviously, depending on how your html files are named, but the "reference type='toc' " is the part you're probably missing.

Setting the semantic in Sigil simply creates the toc reference item in the OPF automatically.

Last edited by DiapDealer; 09-30-2011 at 04:54 AM.
DiapDealer is offline   Reply With Quote
Old 10-03-2011, 02:40 AM   #41
virtual_ink
Zealot
virtual_ink can extract oil from cheesevirtual_ink can extract oil from cheesevirtual_ink can extract oil from cheesevirtual_ink can extract oil from cheesevirtual_ink can extract oil from cheesevirtual_ink can extract oil from cheesevirtual_ink can extract oil from cheesevirtual_ink can extract oil from cheese
 
virtual_ink's Avatar
 
Posts: 107
Karma: 1000
Join Date: Sep 2010
Location: Melbourne, Australia
Device: iPad2, Kindle
Got this working, thanks heaps DiapDealer!
virtual_ink is offline   Reply With Quote
Reply

Tags
kindlegen


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Anyone using Kindlegen? simonp Kindle Formats 11 09-16-2011 05:17 AM
Troubleshooting TOC fails in Kindlegen 1.1, not Kindlegen 1.0 cyberbaffled Amazon Kindle 3 12-25-2010 05:21 PM
KindleGen 1.1 pdurrant Kindle Formats 0 08-08-2010 06:18 AM
Kindlegen now for Mac OS X (Intel) pdurrant Kindle Formats 4 04-27-2010 02:46 PM
Kindlegen vs Calibre: Which one compiles faster and is more efficient? zdavatz Calibre 21 02-26-2010 02:57 AM


All times are GMT -4. The time now is 11:25 AM.


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