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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 09-30-2011, 02:29 AM   #1
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
KindleGen: Epub to Mobi conversion

I'm having trouble converting my epubs (created in IDCS5.5, edited in TextWrangler) to mobi files with Kindlegen. The basic conversion works, but a few things are problematic.

I am interested in learning what adjustments I need to make to the epub file for a clean conversion, rather than working in Sigil or Calibre. Does anyone work like this?

My first main problem is generating a table of contents for the mobi. I have both a Contents page (in its own html file) and a toc.ncx file in the epub. Neither of these becomes the TOC in mobi. Is there a way to adjust the epub so Kindlegen will produce a TOC for Kindle?
virtual_ink is offline   Reply With Quote
Old 09-30-2011, 03:04 AM   #2
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
For reference, here is the errors I'm pulling up thus far:

Warning(prcgen): Guide title is empty. Item is ignored
Info(prcgen): Parsing files 0000017
Info(cssparser): @rules other than @import and @charset are not supported.
Info(cssparser): @rules other than @import and @charset are not supported.
Info(cssparser): @rules other than @import and @charset are not supported.
Info(cssparser): @rules other than @import and @charset are not supported.
Info(cssparser): @rules other than @import and @charset are not supported.
Info(cssparser): @rules other than @import and @charset are not supported.
Info(cssparser): @rules other than @import and @charset are not supported.
Info(cssparser): @rules other than @import and @charset are not supported.
Info(cssparser): @rules other than @import and @charset are not supported.
Info(cssparser): @rules other than @import and @charset are not supported.
Info(cssparser): @rules other than @import and @charset are not supported.
Info(cssparser): @rules other than @import and @charset are not supported.
Info(cssparser): @rules other than @import and @charset are not supported.
Info(cssparser): @rules other than @import and @charset are not supported.
Info(cssparser): @rules other than @import and @charset are not supported.
Info(cssparser): @rules other than @import and @charset are not supported.
Info(cssparser): @rules other than @import and @charset are not supported.
Info(prcgen): Resolving hyperlinks
Info(prcgen): Building table of content URL: /var/folders/Dm/DmpXZclPH1KXvbHFzK9XqE+++TI/-Tmp-/mobi-Jo5hFQ/OEBPS/toc.ncx
Info(pagemap): No Page map found in the book
Warning(prcgen): Cover is too small : /var/folders/Dm/DmpXZclPH1KXvbHFzK9XqE+++TI/-Tmp-/mobi-Jo5hFQ/OEBPS/images/frontcover.jpg
Info(prcgen): Computing UNICODE ranges used in the book
Info(prcgen): Found UNICODE range: Basic Latin [20..7E]
Info(prcgen): Found UNICODE range: General Punctuation - Windows 1252 [201C..201E]
Info(prcgen): Found UNICODE range: Latin-1 Supplement [A0..FF]
Info(prcgen): Building MOBI file, record count: 0000053
Info(prcgen): Final stats - text compressed to (in % of original size): 052.84%
Info(prcgen): The document identifier is: "The_Happy_Life"
Info(prcgen): The file format version is V6
Info(prcgen): Saving MOBI file
Info(prcgen): MOBI File generated with WARNINGS!
virtual_ink is offline   Reply With Quote
Old 09-30-2011, 04:51 AM   #3
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: 9,251
Karma: 42123822
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
See the other thread. I think you're missing the toc reference item in the guide section of the OPF file... because judging by your kindlegen output, it looks like the ncx file is being processed just fine (which will give you the navigational "dots" on the progress bar on the Kindle).

Last edited by DiapDealer; 09-30-2011 at 06:00 AM. Reason: Typo correction
DiapDealer is online now   Reply With Quote
Old 09-30-2011, 12:39 PM   #4
st_albert
Fanatic
st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.
 
Posts: 544
Karma: 64420
Join Date: Feb 2010
Device: none
Quote:
Originally Posted by virtual_ink View Post
My first main problem is generating a table of contents for the mobi. I have both a Contents page (in its own html file) and a toc.ncx file in the epub. Neither of these becomes the TOC in mobi. Is there a way to adjust the epub so Kindlegen will produce a TOC for Kindle?
the way you get the in-line TOC to be identified as the TOC in the mobi is by declaring it as such in the <guide> section of the content.opf file.

If you did so, and it still doesn't work, I'd check the spellings, paths, etc. -- all the usual suspects.
st_albert is offline   Reply With Quote
Old 10-02-2011, 08:21 PM   #5
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
This is what I have in my content.opf guide section:

<guide>
<reference type="cover" href="cover_epub.html"/>
<reference type="title-page" href="title-page_epub.html"/>
<reference type="toc" href="toc_epub.html"/>
</guide>
virtual_ink is offline   Reply With Quote
Old 10-03-2011, 12:24 AM   #6
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
I have just tried another book (an epub received from a conversion house). Kindlegen ran with no errors except this message:

Info(pagemap): No Page map found in the book

The book works fine on Kindle Previewer for iPad, except there is no Table of Contents. Stumped.
virtual_ink is offline   Reply With Quote
Old 10-03-2011, 02:48 AM   #7
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:
Originally Posted by DiapDealer View Post
See the other thread. I think you're missing the toc reference item in the guide section of the OPF file... because judging by your kindlegen output, it looks like the ncx file is being processed just fine (which will give you the navigational "dots" on the progress bar on the Kindle).
Thanks DiapDealer, I kept at it and this works! Thank you.

I have a new problem (of course!). Most conversions are working, but this one is giving me grief, just this error, which stops the cover from displaying:

Warning(prcgen): Cover invalid and was not built with the book : /var/folders/Dm/DmpXZclPH1KXvbHFzK9XqE+++TI/-Tmp-/mobi-6USM65/OEBPS/cover.html
virtual_ink is offline   Reply With Quote
Old 10-03-2011, 11:37 PM   #8
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
Warning(prcgen): Cover invalid and was not built with the book : /var/folders/Dm/DmpXZclPH1KXvbHFzK9XqE+++TI/-Tmp-/mobi-6USM65/OEBPS/cover.html

I figured this one out by hacking at the code - the file hadn't been built properly by the conversion house, and while it worked fine in the epub, it showed its flaws during the conversion process.

I think the epub to mobi conversion process is under control now - touch wood.
virtual_ink is offline   Reply With Quote
Old 11-06-2011, 05:27 AM   #9
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
I am coverting an epub that contains several indented block quotes to mobi. The kindlegen generated mobi doesn't scrub up too well, the indented quotes are indented on the left hand side (maybe a bit further thanI would like) but not at all on the right hand side. Is there a known way to fix this? If i need to edit the epub CSS first, or perhaps I need to use another program to clean up the mobi? Any help much appreciatted.
virtual_ink is offline   Reply With Quote
Old 11-06-2011, 05:29 AM   #10
pdurrant
The Ghost 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: 32,147
Karma: 88589614
Join Date: Jul 2007
Location: Norfolk, England
Device: NOOK ST GlowLight
The current Mobipocket format doesn't do right hand indents at all.
pdurrant is offline   Reply With Quote
Old 11-06-2011, 05:56 AM   #11
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
Thanks pdurrant. And please excuse my ignorance, I'm new to the world of all things kindle, so does that mean any ebook on a kindle won't support right indents, or is there another format which kindle uses that does support right indent? AZW? Is there actually any difference?
virtual_ink is offline   Reply With Quote
Old 11-06-2011, 06:36 AM   #12
pdurrant
The Ghost 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: 32,147
Karma: 88589614
Join Date: Jul 2007
Location: Norfolk, England
Device: NOOK ST GlowLight
Quote:
Originally Posted by virtual_ink View Post
Thanks pdurrant. And please excuse my ignorance, I'm new to the world of all things kindle, so does that mean any ebook on a kindle won't support right indents, or is there another format which kindle uses that does support right indent? AZW? Is there actually any difference?
Mobi and AZW are the same. There is another format, Topaz, used by Amazon when scanning old books that probably supports right indent, but you can't (and wouldn't want) to use that.

So no current Kinde ebooks have right indents.

Amazon have recently announced a new format "Kindle Format 8" - KF8 - that should support right indents (and a whole lot more) but it's not really ready for use yet.
pdurrant is offline   Reply With Quote
Old 11-06-2011, 06:41 AM   #13
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
Cool. Thanks for the clarification.

I forgot to mention, the block quotes also have a space-before that is being ignored in the mobi. Is this another kindle setting, or is there a way to fix this? The space-after block quote is being honoured.
virtual_ink is offline   Reply With Quote
Old 11-06-2011, 08:05 AM   #14
pdurrant
The Ghost 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: 32,147
Karma: 88589614
Join Date: Jul 2007
Location: Norfolk, England
Device: NOOK ST GlowLight
Quote:
Originally Posted by virtual_ink View Post
Cool. Thanks for the clarification.

I forgot to mention, the block quotes also have a space-before that is being ignored in the mobi. Is this another kindle setting, or is there a way to fix this? The space-after block quote is being honoured.
It should be possible to adjust the coding on the ePub so that KindleGen gives you some space before the block quote. But you'll just have to experiment to find out what works for your particular situation. There isn't any documentation of what KindleGen will convert properly as far as I know.
pdurrant is offline   Reply With Quote
Old 11-06-2011, 10:34 AM   #15
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: 9,251
Karma: 42123822
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I know kindlegen can be very fussy about top AND bottom margins being simultaneously applied through CSS to <p> and other block tags. One or the other seems to get ignored at times. Especially if the margins are specified in em's. I've had better luck designing layouts where you can get the spacing you want with top-margins only. Or using pt's instead of em's.

Another trick is to run the epub through calibre's mobi conversion process. If the results look the way you want them to (on a Kindle or in Kindle previewer)... use MobiUnpack to see what's going on. Or even just feed the results of MobiUnpack (the opf file) to kindlegen.
DiapDealer is online now   Reply With Quote
Reply

Tags
epub conversion, kindlegen, mobi conversion

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
EPUB -> Mobi Conversion / HR and Margins pnw19 Calibre 0 06-22-2011 11:08 PM
.epub to .mobi after conversion illustrata Conversion 9 05-10-2011 06:09 AM
Epub to mobi conversion question ematte Amazon Kindle 2 01-10-2011 05:17 PM
ePub to Mobi Conversion Quality Logiedan Calibre 8 08-17-2010 04:02 PM
Epub to Mobi conversion MichaelGray Calibre 2 08-12-2010 01:08 PM


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


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