|04-06-2011, 07:50 AM||#1|
Join Date: Sep 2010
Strip specific styles from EPUB conversion?
I greatly prefer to read using light text on a black background (when using an LCD). However, I'm continually finding that converted books will just show up blank when I do this, because they have a defined text color (black) but no defined background color. It's not a great hardship to use a white background for one book, or go into Sigil and remove 'color:#000' from a few styles, but I'm getting increasingly frustrated with the need to check and fix each individual book after conversion. Is there some way to remove or override (with nothing, not with another specific color) all instances of the color: and font-color: styles during a conversion? The stylesheet doesn't seem to be available for search&replace.
|04-06-2011, 08:04 AM||#2|
Join Date: Apr 2009
Device: PRS-650, iPhone
Search and replace of css isn't possible as you noted. However in practice most books I've seen don't explicitly set font colors. For these cases you can use extra css and set font-color and background color on the body or page element. This will take care of most books during conversion.
It's just books that do have specific colors set that would still be a problem - the extra css feature can potentially override these too, but you need to know which selector to apply the setting too. @body or @page is probably too broad, so you'd need to go to p or whatever.
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Hyperlink styles ignored on conversion to Mobi||Muckraker||Conversion||2||04-01-2011 01:38 PM|
|Styles not showing in ePub.||Vijay||ePub||5||11-19-2010 11:43 PM|
|Can Calibre Strip HTML links when exporting to epub?||Dasun||Calibre||4||11-10-2010 11:28 AM|
|Any way to assign different styles to web pages vs. epub||richieadler||ePub||3||08-30-2009 05:38 PM|
|Best tool to strip text out of PDF for LRF conversion?||the7gerbers||LRF||3||03-22-2009 08:27 PM|