View Single Post
Old 02-18-2008, 11:21 PM   #295
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by DaleDe View Post
Yes, they do. What Nick can do is to detect the <head> section and place something like this in the text just after the head section and before the </head>. You can try it yourself to see what you might like. Once you make the change just use eBook Publisher manually on the opf file to build the file.

<style type="text/css">
p {text-indent:+2.0em; margin-top:0.2ex}
</style>

This will cause paragraphs to indent (maybe 1.0em would be closer to what Mobipocket does) and will set the margin between paragraphs to a small number. You can tweak these to whatever looks good. Mobi actually increased the distance between paragraphs a small amount (about 2 pixels) to do an exact match you might set margin-top:2px. Using a unit like em is better as it scales with text size.

Of course not everyone likes indent vs. space so an option --indent might be appropriate for mobi2imp.

Dale
Thanks for the suggestion! This construct will work; getting it into the converted HTML will be another story.

I will implement (in version 7) switches for indentation '--indent' and 'no paragraph separation '--nopara'. As it stands now, the default for eBook Publisher appears to be 'no' indentation and '1em' paragraph separation.

JSWolf, you would have to use two switches '--indent' (1em) and '--nopara' (0em) to achieve your desired results. Wait until I implement these options as my testing indicates they do work.

-Nick
nrapallo is offline   Reply With Quote