View Single Post
Old 02-15-2011, 12:23 PM   #33
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,550
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by cybmole View Post
if what you say above is correct, then there's no way to add a 2 pixel line gap anyway ?
Yes, in Mobi parlance you'd have:

Code:
<p height="2">This paragraph has a 2 pixel space above it.</p>
(see here). But in ePUB you need something like:

Code:
<p style="margin-top: 2px">This paragraph has a 2 pixel space above it.</p>
I guess Calibre would do the proper conversion (and if it doesn't, you can ask the developers to fix it), but I wouldn't bet about other programs.

Quote:
lets say my epub css says to leave .5 em above and .5 em below each <p tag. how is that converted to mobi ?.
That depends on the converter. I guess some will round up, some will round down, some will ignore, some will try to keep the fraction (and the Mobi reader will either round up, round down or ignore), and some will crash.

Why don't you try? Create a test document with dummy paragraphs and various spacings and indents, and see how it looks in the Kindle. If you want to see the code, you can "unpack" the resulting Mobi with something like MobiPerl (I don't know if Calibre allows keeping the raw pseudo-HTML in Mobi, or if it will always convert it to proper HTML+CSS)
Jellby is online now   Reply With Quote