![]() |
#1 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30
Karma: 502132
Join Date: May 2011
Device: Kindle3
|
Workflow - XHTML to mobi to ePub
For sometime I've been converting books to Kindle using
Word - export to HTMl - stripped to clean HTML - edited in a text editor, created opf and ncx by hand - create mobi using KindlePreviewer It's the only way I've found to control both the html and ncx TOC. Plus by editing the html I can remove all <p> tags which are automatically over-written by Kindle to have an indent - I don't want indents. Instead I use <br/> for new lines and end up with nice looking kindle books. HOWEVER now that smashwords allows direct import of epubs - I'm looking for an easy way to take the mobi file and make iit an epub. Is it as easy as using Calibre for conversion? I noticed in the epub spec there is a requirement that all text is wrapped in <p> tags - so do I need to now have 2 different source files: one for mobi one for epub? Last edited by lissie; 01-21-2013 at 04:36 PM. |
![]() |
![]() |
![]() |
#2 |
Booklegger
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,801
Karma: 7999816
Join Date: Jun 2009
Location: Toronto, Ontario, Canada
Device: BeBook(1 & 2010), PEZ, PRS-505, Kobo BT, PRS-T1, Playbook, Kobo Touch
|
It seems that the usual way is to create the epub file first and send it off to smashwords. Then strip out the smashword edition paragraphs and run it through Kindlegen. That way you get both old and new Amazon formats and your epub all tied up in one file. Of course then you probably want to run that file through kindlstrip (see mobi forum) to take it apart into its separate parts
![]() Of course it isn't quite that simple, as good looking epub files and Amazon's requirements are sometimes conflicting. But it's not too difficult to sort out. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,174
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Please don't do the no indent with paragraph spacing. It just looks awful and is a mess to read. The way to do it so it looks nice is a smallish (1.2em is nice) indent and no paragraph spacing except for section breaks.
If your eBook does not have complex formatting in Word, search/replace in word so each paragraph has <p></p> surrounding it. Save it as text. Use Sigil to load the text file. Split it as each different bit like copyright, dedication, chapters, etc. Then format it in Sigil. It's very easy to create simple styles by hand. It's a lot easier to put in the bold, italic, headers, etc. then it is to clean up Word output. It will be a lot easier overall then it would be to clean up after Word. Once you get a nice looking ePub, run it thought Kindlegen and see how it looks with Kindlepreviewer in both KF8 & Mobi. If it looks good in both, you are done. |
![]() |
![]() |
![]() |
#4 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30
Karma: 502132
Join Date: May 2011
Device: Kindle3
|
@pholy - that's probably what I'll do going forward - but at the moment I have plenty of books in mobi only format - as do many other authors !
@JSWolf - I'm talking non-fiction here - indents look dreadful - particularly when combined with sub-heads and bullets! The standard of no indent for NF is a standard for very good reason. I don't have word (I do have openoffice which formats slightly differently) - but I don't see why I would go back to word - for one thing it will add unnecssary <p? tags around the <li> items which have to be removed again. I've never found a need for Sigil- it seemed overly complex in comparison to notepad++ What benefit does it offer? |
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Please don't use <br /> instead of normal paragraphs <p></p>. You will loose structure amongst other things.
If indents trouble you, create a stylesheet and put this in: Code:
p { text-indent: 0; } |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30
Karma: 502132
Join Date: May 2011
Device: Kindle3
|
Older Kindles don't recognise CSS Toxaris
|
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
I know that mobi doesn't recognize CSS. However, during the conversion process of ePUB to mobi it gets converted to an internal style.
|
![]() |
![]() |
![]() |
#8 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30
Karma: 502132
Join Date: May 2011
Device: Kindle3
|
Thanks - I'd only just figured out that I can convert from the epub straight to mobi using KP rather than going from the html!
Also the point seems to be moot - it appears that the file displays fine on my actual Kindle 3 - it's just the previewer that is showing it incorrectly in the older Kindles |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
XHTML and MOBI | fcm52 | Kindle Formats | 2 | 01-08-2013 06:59 PM |
XHTML to EPUB and MOBI: How to mark up metadata in source document | johnstephens | Conversion | 6 | 05-23-2012 02:58 PM |
InDesign CS5 to epub and mobi Workflow | nhmuse | ePub | 20 | 03-09-2012 04:07 PM |
ePubNow! announces XHTML to DocBook v5.0, EPUB and NIMAS Production Workflow | brijesh | ePub | 1 | 12-14-2010 10:18 AM |
Opinion on workflow (and enhancing it) - research-type workflow | TheDarkTrumpet | Which one should I buy? | 8 | 03-02-2009 10:41 AM |