View Single Post
Old 06-20-2025, 08:25 PM   #25
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,864
Karma: 169716272
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
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.
The same way it's been done for decades. You wrap the first letter of the first paragraph in a chapter with a span. It may not be pretty but it's works until you change the view settings too far. From one recent ePub book:

Code:
<p class="first first-in-chapter first-full-width first-with-first-letter-m"><span class="first-letter first-letter-m first-letter-without-punctuation">M</span>
And yes, this ebook has 20 first-with-first-letter-? styles for the paragraphs and 20 first-letter-? styles for each of the spans.
DNSB is offline   Reply With Quote