View Single Post
Old 09-14-2014, 01:53 AM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
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.
eschwartz is offline   Reply With Quote