View Single Post
Old 09-15-2009, 01:52 PM   #19
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,557
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by frabjous View Post
But what I had in mind above is something that went through all the CSS of the source and just changed any "font-family: XXX" attributes to "font-family: inherit" (and stripped any obsolete <font face="XXX"> tags) or something like that.
In my opinion, that would be the task of a different king of ePUB processor/editor, something like Calibre or Sigil. I don't want (at least at the moment) to do "modify" the ePUB, just the changes that can be done with CSS (i.e., what I'd expect an ePUB reader to be able to do).

Quote:
That was just an example. I'm not going to guess what class names the CSS of the book uses. If I open the source CSS to look, I might as well just alter the source CSS directly.
I know, maybe I didn't explain myself clearly. At the moment what I have in mind is something that works for "well behaved" ePUBs (those that use few classes, with relative units where possible, etc.) For other other more messy books, I don't think a robust and simple solution exists other than uncompressing the .epub, having a look at the CSS code and writing an appropriate CSS stylesheet to override it (the advantage over modifying the source CSS is precisely that you don't have to modify the original book, you can distribute the stylesheet and modify it in the future). This is what I meant with "some knowledge of CSS rules and of the classes used in the document".
Jellby is offline   Reply With Quote