View Single Post
Old 01-01-2016, 03:22 PM   #26
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by RbnJrg View Post
Hi Hitch;

Happy New Year Yes, you are right, but in CoolReader nothing works, since it doesn't support "float" and many others css2 properties. Regarding Kindle, well, that's an interesting case. Sometime ago (about two years) I spent a lot of time trying to find a way to get a perfect drop cap with any Kindle device (e-ink or Fire models), with any font size, with any font family (with Kindle e-inks you have six fonts to choose). I wanted something consistently displayed, regardless of device used. Could that be possible? After lots of trial and error, I found the only way to get that target was with an image, so I decided to employ a SVG image. With the following code you can get a perfect drop cap for all Kindle models (forget for the moment KF7):

<snip>
Below you can check the respective epub, with the SVG image for the letter "B". Regarding KF7, you know, we can't get there drop caps, so I displayed the first letter as bold.

Regards
Rubén
Rubén:

As I said, I respect you and I'm enormously fond of you. I too admire the devotion and time you put into this. Something is rubbing up against the back of my head on this--I can't remember now what it is. Dammit. But there's something about using an imaged-drop-cap that doesn't work just so. I'll keep thinking. (Maybe in a few days--allegedly, I'm off work today!)

Nonetheless: awesome coding.

Hitch
Hitch is offline   Reply With Quote