![]() |
#16 | |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,556
Karma: 93980341
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
<H1><A name="chapter_1">CHAPTER 1</A></H1> The key thing to bear in mind with a Mobi file is that when you follow a hyperlink in a Mobi book, it renders the page from the exact point you jump to, so when you click the "Chapter 1" hyperlink, the code above will render as: CHAPTER 1</H1> which is of course meaningless. You need to make sure that you have something like: <A name="chapter_1"><H1>CHAPTER 1</H1></A> which will render correctly when you jump to the anchor. Last edited by HarryT; 08-29-2011 at 06:34 AM. |
|
![]() |
![]() |
![]() |
#17 | |||||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,643
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Quote:
Quote:
Quote:
Quote:
Code:
<p class="bigger bolder>Blah, blah, blah</p> Code:
<p class="bigger"><span class="bolder">Blah, blah, blah</span></p> |
|||||
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,643
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Of course, if you're handy with html, and familiar with the ins and outs of the OPF, NCX file(s), then skipping the ePub creation entirely (or making it later) will probably make the most sense. MOBI->ePub. Last edited by DiapDealer; 08-29-2011 at 07:03 AM. |
|
![]() |
![]() |
![]() |
#19 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 698
Karma: 150000
Join Date: Feb 2010
Device: none
|
@ virtual_ink, re: repeated cover image in Mobi created by kindlegen from epub.
This is a known issue (see post #4 above). To circumvent it you must edit the epub and (assuming your cover image is displayed in its own .xhtml file named "cover_page.xhtml) remove the "cover_page.xhtml" or its equivalent. Just the xhtml file, not the cover image itself. Delete it from the manifest as well. Then in the <guide> section of content.opf (or equivalent) be sure that there is a type=cover item whose href= reference points to the cover image itself (e.g. href="Images/cover.jpg" or such). While you're at it, include a type=text name="Start Reading" guide entry pointing at the place where you want the book to open. Save the edited epub under a new name, and use it to convert to mobi with kindlegen. That should fix the double cover issue. Or try calibre. IIRC it handles this one for you. I could be wrong about that though. And DiapDealer gave you the fair dinkum about the various TOC files. With Kindlegen, you have to supply your own inline toc.xhtml in the epub you're converting. |
![]() |
![]() |
![]() |
#20 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,798
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Try Calibre to convert the same ePub to Mobipocket and post the results. I'd be interested in reading about this.
|
![]() |
![]() |
Advert | |
|
![]() |
#21 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,643
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
The problem is that since MOBI is still ultimately a proprietary format, many want to ensure complete compatibility with Kindle devices/apps by using the approved tools. Especially if it's a commercial project. I may be being a bit alarmist just to make a point, but what if there's a tiny detail that's been overlooked in calibre's (or anybody's) assumptions about the MOBI format? Would it not then be possible that a future Kindle firmware/software update could render previous calibre converted MOBI's defective in some way? Basically I'm saying that just because calibre conversions may be easier and even often look better... that ain't the whole picture. |
|
![]() |
![]() |
![]() |
#22 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,798
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#23 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,643
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Dude, I want to thank you from the bottom of my heart for completely ignoring/misinterpreting/not getting what I tried to explain.
|
![]() |
![]() |
![]() |
#24 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 107
Karma: 1000
Join Date: Sep 2010
Location: Melbourne, Australia
Device: iPad2, Kindle
|
Quote:
<h1><id="toc_marker-2" class="chapterheader"><span class="Bold">Chapter 1<br/>Subheading for Chapter 1</span><span class="Bold-Italic">including these bold itals within the subtitle</span><span class="Bold"> subtitle continues in roman bold</span></h1> I've tried switching this to: <id="toc_marker-2"/> <class="chapterheader"><span class="Bold"><h1>Chapter 1<br/>Subheading for Chapter 1</span><span class="Bold-Italic">including these itals within the subtitle</span><span class="Bold"> subtitle continues in roman bold</h1></span> But it won't validate. here's the error message: Element type "id" must be followed by either attribute specifications, ">" or "/>". |
|
![]() |
![]() |
![]() |
#25 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
![]() |
![]() |
![]() |
#26 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,798
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
<h1 id="toc_marker-2" class="chapterheader"><span class="Bold">Chapter 1<br/>Subheading for Chapter 1</span><span class="Bold-Italic">including these bold itals within the subtitle</span><span class="Bold"> subtitle continues in roman bold</span></h1> That should work as it will jump to the h1 tag and not after it. |
|
![]() |
![]() |
![]() |
#27 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 107
Karma: 1000
Join Date: Sep 2010
Location: Melbourne, Australia
Device: iPad2, Kindle
|
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. @DiapDealer Quote:
What threw me, was that in the Kindle app for iPad - if I use the 'Go to' icon - a submenu opens and an option for 'Table of Contents' is greyed out with a note "Not available for this title". As I have a linked TOC page at the front of the book, perhaps I am providing all that is needed. What you are describing in the progress bar sounds helpful. i wonder why Kindlegen isn't generating this from the original epub toc.ncx Last edited by virtual_ink; 08-29-2011 at 11:11 PM. |
|
![]() |
![]() |
![]() |
#28 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 448
Karma: 864744
Join Date: Mar 2011
Device: Kindle 3, LookBook, Nook Simple Touch
|
Quote:
you need to have the inline table of contents and for it to link correctly you need to add <guide> <reference type="toc" title="Table of Contents" href="filename.html#bookmark"/> </guide> in your opf file, if not the option to jump to the table of contents will be greyed out. |
|
![]() |
![]() |
![]() |
#29 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,643
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
![]() My point was simply that there's some people who aren't comfortable submitting calibre generated MOBI's to Amazon (regardless of how nice they may look). Call it paranoid, call it what you will. I love calibre and use it extensively, but if I'm going to ask someone to spend their hard-earned dollars to buy my product from Amazon to read on their Kindle, it's going to be built by Amazon approved publishing programs. That's just a personal thing, but I'm sure there are others who feel the same way. |
|
![]() |
![]() |
![]() |
#30 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 74,043
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Quote:
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. |
|
![]() |
![]() |
![]() |
Tags |
kindlegen |
|
![]() |
||||
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 |