Thread: Stripping Fonts
View Single Post
Old 10-05-2011, 09:59 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,086
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Rob Lister View Post
Hi all. I apologize if this is covered elsewhere, but [standard excuses for not doing a thorough search here].

When converting an e-book to epub format for use on a Nook Touch, I can't figure out how to strip out the existing font definitions. I have several compilations that, after conversion, show up on the reader in what appears to be Times New Roman bold (exceedingly ugly, whatever it is) and overrides the Nook's font type selection.

There doesn't seem to be a Calibre conversion tool to remove these definitions. Anyway, I know I can do it manually by editing the CSS file directly, but I just can't believe there isn't already a conversion tool for that <-- that's why I think I must be missing something fundamental.
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
theducks is online now   Reply With Quote