Hi
EDIT
I tested the script on several books and it's OK. One small thing, I realized that it does not convert negative indents like this one (a rare occurrence).
Code:
text-indent: -0.5cm;
For this reason, pingouinux suggests to change this line:
Code:
unit=re.compile('([^\d.]+:\s*)([\d.]+)(cm)?(;\s*)')
with this line (which also simplifies the code)
Code:
unit=re.compile('(.+:\s*)(-?[\d.]+)(cm)?(;\s*)')