View Single Post
Old 08-22-2009, 11:06 AM   #240
ectoplasm
Addict
ectoplasm ought to be getting tired of karma fortunes by now.ectoplasm ought to be getting tired of karma fortunes by now.ectoplasm ought to be getting tired of karma fortunes by now.ectoplasm ought to be getting tired of karma fortunes by now.ectoplasm ought to be getting tired of karma fortunes by now.ectoplasm ought to be getting tired of karma fortunes by now.ectoplasm ought to be getting tired of karma fortunes by now.ectoplasm ought to be getting tired of karma fortunes by now.ectoplasm ought to be getting tired of karma fortunes by now.ectoplasm ought to be getting tired of karma fortunes by now.ectoplasm ought to be getting tired of karma fortunes by now.
 
Posts: 255
Karma: 1151364
Join Date: Aug 2009
Device: Aura HD and H2O
Question Mobi output paragraph indent is always EM and whole numbers

First, thanks to the author for this program.

I'm not sure if this is a bug or my misunderstanding. Trying to convert from epub (from Gutenberg) to mobi for use on my Kindle DX. I wanted to customize the paragraph indent. I found the "Remove spacing between paragraphs" option created too big an indent, so I turned it off and used CSS.

I'm using this CSS:
p {
text-indent:1.5em;
margin: 0;
}

The problem is, no matter what I enter for the text-indent value, the mobi output is always EM, and in whole numbers.

So if I use:
text-indent:1.3em mobi output is width="1em"
text-indent:1.5em mobi output is width="2em"
text-indent:3ex mobi output is width="2em"

If the mobi output would support fractions, such as 1.3em, then the problem is solved. My guess is it should also support whatever CSS and the device supports, so ex, cm, etc. should be allowed.
http://www.fonttester.com/help/css_length_units.html

My workaround is to do a search/replace on the mobi with a hex editor and replace 2em with 4ex, as the ex provides finer control. I can't replace with a fraction like 1.5 because the added characters corrupt the file.
ectoplasm is offline   Reply With Quote