Hi
After various tries, it seems to work pretty well for longhand CSS stylesheets... but for
shorthand. In this latter case, the script just ignores the shorthand properties and lefts it untouched. Adding shorthand to the script conversion capabilities is probably doable, but it would maybe begin to stretch dangerously the regex...
Before coming back - shameful - to
pingouinux for this, I thought about another possible solution: I remarked in
Calibre/Look and feel that we can use
ebook-convert to expand css with the following option:
Would it be possible to integrate this in the script as a first move ?
Here is what we get when launching
--expand-css alone:
After that, the script is working quite well.
At that point also, also, we can wonder if it would not be better to integrate the script as a new option within
ebook-convert...