Thanks. It's surprisingly easy. Code works on .epubs that are then converted to .kfx with KFX Output plugin.
All that's needed is "span.dropcaps" into styles.css, then <span class="dropcaps">T</span> around first capital letter in the chapter, replacing the T.
Quote:
span.dropcaps
{
font-weight:normal;
font-size:320%;
float:left;
margin-top:-0.3225em;
margin-bottom:-0.3245em;
}
<span class="dropcaps">T</span>
|
A slight problem is that this code doesn't work the same way in epub format. Looking at preview in Sigil and Calibre, capital letter is off, but in Kindle Previewer it's then properly formatted. So it takes a bit of packing and unpacking from epub to kfx when adjusting things.
Also, it's not as pleasing visually in case of very short paragraphs, or when very small fonts settings are selected. But by the looks of it, typesetters in old paperbacks did it in a very similar way:
https://archive.org/details/producer...p?view=theater (page 28, page 38, page 157...)
I'm just wonder now if there's a way to tune it so that it looks the same in epub and in kindle's format without changing the code.