![]() |
#16 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,037
Karma: 168808719
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Other than both books being terrible examples of coding, Shadows of Ecstasy has the coding for a drop cap while War in Heaven does not. Oddly the version of War in Heaven in the epub secion of MobileRead's library does have dropcaps and used header tags for the chapter headers.
In Shadows of Ecstasy, the calibre1 and calibre2 classes set font size to 1.125em and 1.5em respectively while in War in Heaven, the only style applied to the first paragraph sets the top and bottom margin to 1em. I would also suggest changing the use of pt (an absolute unit) in War in Heaven to a relative unit (em for example). Last edited by DNSB; 05-13-2025 at 12:53 PM. |
![]() |
![]() |
![]() |
#17 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,641
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
I don't see any drop cap in Shadows of Ecstasy; I only see raised caps; it's not the same thing. By the way, the xhtml code employed is not the best.
You have raised caps in Shadows because the first letter has the style "calibre1": Code:
.calibre1 { font-size: 1.5em; line-height: 1.2 } Code:
.calibre6 { font-size: 1.5em; line-height: 1.2 } For example, in Chapter One you should have the following: Code:
<p class="calibre2"><span class="calibre6">T</span>he telephone bell was ringing wildly, but without result, since there was no one in the room but the corpse.</p>
|
![]() |
![]() |
![]() |
#18 | |
Zealot
![]() Posts: 100
Karma: 10
Join Date: Dec 2008
Device: Kindle Paperwhite, TabPRO 8.4, Galaxy Light, Sony PRS-300
|
Quote:
|
|
![]() |
![]() |
![]() |
#19 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,750
Karma: 103847703
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
|
![]() |
![]() |
![]() |
#20 |
Zealot
![]() Posts: 100
Karma: 10
Join Date: Dec 2008
Device: Kindle Paperwhite, TabPRO 8.4, Galaxy Light, Sony PRS-300
|
Thanks all. This is a very tolerant forum, puting up with fools, if not gladly, at least patiently. I managed to cobble things together so that the book looks much better. At my age and stage, I don't intend to do many more eBooks, so don't expect or intend to master the skills necessary to do this like one really should. But, I'm pleased w what I've got.
|
![]() |
![]() |
![]() |
#21 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,037
Karma: 168808719
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Great to hear that you are happy with your results. For my uses, since I don't like dropcaps, I remove them. For books I am formatting for others or for publication, I tend to go for the looks good over as many devices as possible coding. Even with using all the tricks I've found over the years, you can't please all the people all the time but you can reduce the complaints to a tolerable amount.
|
![]() |
![]() |
![]() |
#22 |
Zealot
![]() Posts: 100
Karma: 10
Join Date: Dec 2008
Device: Kindle Paperwhite, TabPRO 8.4, Galaxy Light, Sony PRS-300
|
Well, LOL, since I was evidently in my ignorance referring to Raised Caps, and not Drop Caps at all, that might be a different matter. But, what I have shows nicely across all platforms to date. Thanks again.
|
![]() |
![]() |
![]() |
#23 |
Zealot
![]() Posts: 100
Karma: 10
Join Date: Dec 2008
Device: Kindle Paperwhite, TabPRO 8.4, Galaxy Light, Sony PRS-300
|
No kidding. I've taking a look under the hood, and find LOTS of "dead code" that seems entirely extraneous. I mean literally hundreds of snippets which enclose no text, or which appear to have no visible impact upon the text, as far as appearance is concerned. No idea where it came from, which is one of the drawbacks of taking someone else's ePub book and trying to adapt it. Rather like taking over cooking something w/o knowing what recipe and ingredients proceded one's own involvement.
So, is there a way to clean up such an ePub document w/o going through it line-by-line? I've got things looking pretty much the way I want, and the footnotes were all added individually and were "roll your own," so to speak, and I didn't have the skills or tools to do otherwise. I need to preserve those obviously. But, there is something inherently unsatisfying w seeing all of that mess beneath the otherwise nicely displayed text. Suggestions? It may be best just left along. One can always make things worse... Many thanks, again, to all. |
![]() |
![]() |
![]() |
#24 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,249
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
On a Kindle, raised caps do not work. They make the line stick up vs the other lines and there's nothing you can do to fix it.
|
![]() |
![]() |
![]() |
#25 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,249
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#26 |
Zealot
![]() Posts: 100
Karma: 10
Join Date: Dec 2008
Device: Kindle Paperwhite, TabPRO 8.4, Galaxy Light, Sony PRS-300
|
Many thanks. I'll give that a try. Separately, as far as the Raised Caps (not Drop Caps, to which I mistakenly them) go, they look OK to ME on MY Kindle and Kindle Reader. Screen capture from my PC Kindle Reader attached. Maybe I just have poor taste...
|
![]() |
![]() |
![]() |
#27 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,249
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
If you notice, the first line has more space between it and the second line then the second line and the third line. Also, the larger the raised letter, the worse it looks.
|
![]() |
![]() |
![]() |
#28 |
Zealot
![]() Posts: 100
Karma: 10
Join Date: Dec 2008
Device: Kindle Paperwhite, TabPRO 8.4, Galaxy Light, Sony PRS-300
|
Poor aesthetic sense. It didn't bother me. Now I'll try not to let it do so, LOL!
|
![]() |
![]() |
![]() |
#29 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,249
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#30 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: May 2025
Device: iPad
|
That is because of the line-height which is calculated for the current font-size, which means that the greater font of the raised cap will win to set the line-height prior to the normal text. You could try to set line-height to 1, but not all reader will accept custom line-heights.
|
![]() |
![]() |
![]() |
Tags |
format questions |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Drop caps? | jackm8 | Amazon Kindle | 5 | 02-07-2024 12:33 PM |
Best Way for Drop Caps | Wlan | ePub | 62 | 07-03-2018 07:11 PM |
Drop caps | RandyK | Conversion | 2 | 05-18-2014 09:13 PM |
Is there a way to strip drop caps? | ficbot | Calibre | 2 | 08-30-2013 11:06 AM |
Drop caps | huebi | ePub | 8 | 03-04-2012 06:25 AM |