View Single Post
Old 06-20-2025, 05:45 PM   #23
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,114
Karma: 148951761
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Falkor View Post
Personally, I consider them to be electronic books – so one should be able to style them somewhat like a book.

The "fancy" stuff is usually not that difficult. "Initial-letter" works pretty well and is widely supported – I don't have any reading app that doesn't support it. If it's not supported by a renderer it's not a big deal either. It can simpy be ignored (though I really think this absolutely needs to be supported on modern reading devices. Drop caps and raised caps are widely used and initial-letter is great solution for all the problems everybody is having with them).

Mirrored text (with an svg wrapper) works flawlessly for me as well.

On the other hand I've been trying to keep images and captions together on one page with <figure> and <figcaption>. Sounds very basic, but it's surprisingly challenging. With four different reading applications I can get four different results. They all behave very differently.

Also page breaks: epub is a format for books. The content is almost always displayed as pages. Yet the concept of pages is not even implemented into many readers and they use columns instead–and the two concepts may clash. Setting pagebreaks with CSS should really be quite simple. But the only way to make them work consistently in all reading apps is by splitting up the document.



That's what the "initial-letter" property is for. You set the size and sink and the renderer calculates the actual height and placement depending on the line height and font size.
So how do you do a drop cap for ePub 2? There is no initial letter. I prefer to read on my Kobo with ePub because it renders better. I will read with KePub when there is a need for it. But a drop cap is not a need for KePub.
JSWolf is offline   Reply With Quote