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.