View Single Post
Old 09-15-2013, 12:23 PM   #670
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 1,061
Karma: 2178845
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
You're pretty close

When you put the CSS files in the right place, the magic happens when you send books to the device. Every time you send books to the device, before books are processed the extended driver will copy the appropriate CSS file to the device. Then, during processing, davidfor's code in the mainline driver will pick up the file and process it as if you'd put it there yourself.

The only thing to keep in mind, the rules are always added at the end of every stylesheet in the book. There's a bug open right now asking to have an option to add rules to the beginning of a stylesheet instead.
jgoguen is offline   Reply With Quote