View Single Post
Old 01-05-2012, 06:05 AM   #113
snarkophilus
Wannabe Connoisseur
snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.
 
Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
Thanks Jackie. I'm glad both that the idea worked, and that it wasn't too hard to do!

It also works here as well. I'm also pretty happy that the same epub works on my PRS-350 too, so the @import pointing to a file that doesn't exist doesn't cause problems (on the 350 at least).

The next thing I'm wondering if how hard it would be to automate adding that @import to every epub in my Calibre library. Some epubs have multiple CSS files, so you can't just blindly add the @import to every CSS you see. I wonder if the "Modify Epub" plugin is the right place for this (with some generic "make sure this CSS line is present in an epub" method)?

Cheers,
Simon.
snarkophilus is offline   Reply With Quote