Thread: Stripping Fonts
View Single Post
Old 10-05-2011, 11:32 AM   #3
Rob Lister
Fanatic
Rob Lister ought to be getting tired of karma fortunes by now.Rob Lister ought to be getting tired of karma fortunes by now.Rob Lister ought to be getting tired of karma fortunes by now.Rob Lister ought to be getting tired of karma fortunes by now.Rob Lister ought to be getting tired of karma fortunes by now.Rob Lister ought to be getting tired of karma fortunes by now.Rob Lister ought to be getting tired of karma fortunes by now.Rob Lister ought to be getting tired of karma fortunes by now.Rob Lister ought to be getting tired of karma fortunes by now.Rob Lister ought to be getting tired of karma fortunes by now.Rob Lister ought to be getting tired of karma fortunes by now.
 
Posts: 532
Karma: 3293888
Join Date: Oct 2011
Location: Virginia
Device: Nook Simple Touch
Quote:
Originally Posted by theducks View Post
I use Sigil with the following REGEX S&R to strip all the excess (MSWORD) font definitions.

Code:
Search:  \@font-face \{.+\}\s\s\s  Replace: (nothing)
The problem with this is: there may be a single Nice font used for Initial caps or alternate characters.
You just reduced the book to a step above mono-spaced text
Thanks for that. Still, given the heuristic processing already available in Calibre, I'm just surprised Font normalizing wasn't included...it seems so very basic. There should at least be a global substitution tool, even if it included flashing red 40pt warnings about killing the author-intended styles.

The fact that it is not there, and with no [obvious] mention of it in the Calibre FAQs, makes me think twice about creating a script or plug-in to do automatically.
Rob Lister is offline   Reply With Quote