Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-05-2011, 09:37 AM   #1
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
Stripping Fonts

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.
Rob Lister is offline   Reply With Quote
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: 30,932
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 offline   Reply With Quote
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
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where is the stripping of DRM legal? duckbill News 38 09-02-2011 01:27 PM
Sigil stripping covers from epubs Antioch Sigil 3 06-26-2011 12:09 AM
stripping acsm dot General Discussions 4 12-10-2010 10:04 AM
Stripping out dashes on epub convert? toddos Calibre 5 08-01-2010 03:29 PM
Noobie and DRM-stripping thecyberphotog Workshop 7 12-17-2009 08:17 PM


All times are GMT -4. The time now is 04:41 AM.


MobileRead.com is a privately owned, operated and funded community.