find any text of upper+lower letters, with a class indicator (dot) in it, followed by {font-anything: type} and replace it with .type {font-anything: type}.
Basically, convert the css selector for both to either ".bold|.italic", depending.
No need to restrict it to p or a only.
I think Sigil was the one to autoconvert <b> or <i> to those css styles in the first place. I don't like Tidy, I prefer to change things myself if and when I want to. Same reason I only Beautify in calibre editor after I have already validated with Check Book. Difference is, calibre editor doesn't take it upon itself to change the code, except to fix malformed xhtml.
Last edited by eschwartz; 09-14-2014 at 01:58 AM.
|