View Single Post
Old 03-21-2010, 10:19 PM   #20
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Smile

About clean CSS files

I just learnt this not too obvious pearl of wisdom about OpenOffice.

If you wish to get a nice clean EPUB calibre code for your CSS file , coming from an OpenOffice odt file, your odt file must of course be at first clean (not encumbered by many useless styles) before being given to calibre.

This "cleanness" depends heavily on user's behaviour and a little about understanding how OpenOffice works. You have to be aware of the following curious phenomenon.

In OpenOffice, you should always modify your styles using F11, selecting one style, right-click, select: modify. You modify this way the normal styles, kept in the style.xml file.

If you proceed directly like this to modify a style: menu Format, Paragraph...you'll create in fact a new and so-called automatic style which will be saved in content.xml. One automatic style could be OK, but beware, if you are used to work this way, it will create in the end a lot of unnecessary (and redundant for the most part) styles, which will give you a "dirty" or very heavy css stylesheet, confusing to modify.

Normal and automatic styles are OpenOffice used expressions, not mine.

So better stick to F11 to practice with styles.

Last edited by roger64; 03-21-2010 at 10:22 PM.
roger64 is offline   Reply With Quote