View Single Post
Old 08-29-2011, 10:05 AM   #14
andrewdru
Junior Member
andrewdru began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Aug 2011
Location: Canberra
Device: calibre
This raises a point about Calibre conversion process into MOBI which would be very helpful to understand.

I am now starting with an .odt document that specifies the font size in points (eg 10 pt) and the spacing before paragraphs in points too (eg 10pt, 15pt).

When Calibre converts this to ePub and I look at the ePub's css, the font size has been converted to ems (eg 0.8889em), and the paragraph spacing into cms (eg 0.527cm). The html files based on this css all display fine.

Yet it seems that the Kindle conversion process won't accept the css margin-top command unless it is in ems. Cms don't do it. There is just no space before the paragraph. If I change the css margin-top to ems then the space appears. I haven't tried other units yet.

So, is there a way to control the units that Calibre converts text and margins to in the ePub's css? So that, in this case, the css margin-top command can be in ems or whatever else works for Kindle?

I'd be grateful to understand this in some detail! Thanks for your assistance.
andrewdru is offline   Reply With Quote