![]() |
#1 |
Connoisseur
![]() Posts: 95
Karma: 10
Join Date: Jan 2020
Device: kindle
|
Drop cap in epub3 for Kindle
I have created a drop cap as follows
<p><span class="first-letter">T</span> with css .first-letter { font-family: 'English'; color:#986335; border-bottom-width: 0; border-left-width: 0; border-right-width: 0; border-top-width: 0; float: left; font-size: 3.91625em; height: 1.1em; line-height: 0.8em; padding: 0%; margin: 0% 0.04em } My issue is that in the Kindle previewer 3, this code works perfectly, however when I use the KDP edit and launch the previewer, the Drop Cap is as shown in the attached image. I have tried many different coding from the forum, but all with the same result. Is there a way of applying Drop Cap, using epub3 in Sigil? |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,742
Karma: 45300001
Join Date: Sep 2012
Location: Ohio
Device: iPhone 13 Pro, iPad mini, iPad Pro 12.9",Paperwhite 6.8", Scribe 2022
|
As a reader, I despise drop caps.
Carry on. |
![]() |
![]() |
![]() |
#3 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,696
Karma: 103837201
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
1) I don't like them on printed works either.
2) They only seem to work on some formats. |
![]() |
![]() |
![]() |
#4 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,123
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
That is NOT a drop cap. That's an enlarged first letter and it doesn't work on a Kindle because the first line is too far away from the second line. You can do this in ePub, but not in Mobi, KF8, or KFX.
A drop cap is when it is a larger letter and it descends 2 or 3 lines and the top of the letter is at the top of the first line with the text to the right of the larger letter. |
![]() |
![]() |
![]() |
#5 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,805
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I despise using drop caps since they basically need to be tweaked for every format and ereader. That being said, the larger the font size for a drop cap compared to the body text, the harder it is to to make it look half decent on multiple platforms. One book I worked on used a cursive font for the drop caps. I ended up with a separate class for each letter used as a drop cap and another class for the case where a double quote preceded the first letter. It ended up looking half decent on 768x1024 or larger displays but the CSS was a dog's breakfast.
The basic code looks like this with the margins being tweaked for the individual characters: .first-letter-t { float: left; font-size: 300%; margin-left: 0.03em; margin-top: -0.3em; margin-right: 0.12em; margin-bottom: -0.36em; font-weight: bold; } Last edited by DNSB; 05-18-2020 at 05:42 PM. |
![]() |
![]() |
![]() |
#6 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,123
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#7 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,805
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
If worse comes to worse, using images tends to be the best answer for drop caps across multiple platforms. One of the earliest guides I ran into is Drop Caps: Historical Use And Current Best Practices With CSS. One of the things I liked is that she did not present any one best answer but instead looked at the various ways of doing drop caps. I seem to remember that there was another useful entry on Elizabeth Castro's Pigs, Gourds and Wikis page but I can no longer locate it. |
|
![]() |
![]() |
![]() |
#8 | |
Connoisseur
![]() Posts: 95
Karma: 10
Join Date: Jan 2020
Device: kindle
|
Quote:
|
|
![]() |
![]() |
![]() |
#9 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,805
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
![]() |
![]() |
![]() |
#10 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,582
Karma: 14328510
Join Date: Nov 2019
Device: none
|
Sigil's TagMechanic makes short work of drop caps; Action type=delete, Tag name=span, Having the attribute=class, Whose value is="dropcap", and walla, all gone and into the bit bucket.
|
![]() |
![]() |
![]() |
#11 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,123
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Aura E2 Drop cap weirdness. | theducks | Kobo Reader | 27 | 04-30-2022 03:53 PM |
Calibre changes drop cap on converting epub -> azw3 | AlanHK | Conversion | 19 | 02-14-2020 10:24 AM |
Drop cap issue converting ePub > AZW3 | Pepper Breath | Conversion | 14 | 09-17-2018 06:59 AM |
Drop cap bug on Paperwhite | dgatwood | Kindle Formats | 11 | 04-10-2014 04:14 AM |
Aura HD Drop Cap coding help, please | MacEachaidh | Kobo Reader | 13 | 08-15-2013 01:18 PM |