|
|
#1 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 129
Karma: 1655764
Join Date: Apr 2024
Device: Kindle 11th Gen; Clara BW
|
How/what do I edit in this to fix the appearance on my device?
This book was an epub converted to azw3 in calibre, polished and sent to Kindle.
The attached show what the text looks like in calibre's editor, and the code. On the Kindle, however, that dropcap looks exactly as though it were written as superscript or an exponent-- Small and snugged up against the left side of the second character. This is repeated after the Prologue at each new chapter. The only text funkiness I see in the book. It's not as though I can't read it; it just bugs me and I'd like to learn more about editing. How do I search this out in the book, and is there a fix? |
|
|
|
|
|
#2 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,967
Karma: 65700000
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I would add a
Code:
padding-right: .1em; I use padding as some viewers override margin |
|
|
|
|
|
#3 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 129
Karma: 1655764
Join Date: Apr 2024
Device: Kindle 11th Gen; Clara BW
|
I can find that section in Live css, but I don't k how to edit it to add that line.
|
|
|
|
|
|
#4 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,908
Karma: 9600930
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
You have to edit the css file. It is usually called stylesheet.css. It is in the Styles section underneath the list of xhtml files.
|
|
|
|
|
|
#5 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 129
Karma: 1655764
Join Date: Apr 2024
Device: Kindle 11th Gen; Clara BW
|
A ha. Thanks. Trying the fix now.
|
|
|
|
|
|
#6 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 129
Karma: 1655764
Join Date: Apr 2024
Device: Kindle 11th Gen; Clara BW
|
And no dice. Still have a superscript-looking first character, nothing like a dropcap.
|
|
|
|
|
|
#7 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,908
Karma: 9600930
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Yes, it will be difficult to fix the dropcap. You need to be aware that while the coding in the stylesheet.css can be spot on perfect, it is the readers that cause the problem. Readers tend to ignore and adjust the css rules to fit a particular style the manufacturers are going for... all in the effort of providing a perfect reading experience for the end user.
So, what will work in one ereader, may not work in another. For this reason I gave up on drop caps many years ago. Your best solution is to do away with drop-caps. There are plenty of threads on this forum regarding how "bad" and unsuited they are to ebooks. But if you do want it fixed for personal use on a single ereader that you use, then you would need to provide the ebook in scrambled format, and hopefully somebody with the same ereader as you can volunteer to fix and test. |
|
|
|
|
|
#8 | |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 129
Karma: 1655764
Join Date: Apr 2024
Device: Kindle 11th Gen; Clara BW
|
Quote:
Now, to just change it to a normal character in this book, would I simply delete the .dropcaps section of the css? Will that hose anything else in the text? |
|
|
|
|
|
|
#9 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 54,553
Karma: 182340325
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
You could try the following:
Code:
.dropcap {
float: left;
font-size: 2.5em;
line-height: 1.5;
margin-bottom: -0.4em;
margin-right: 0.05em;
margin-top: -0.35em;
}
My current choice for most purposes if someone insists on dropcaps is: Code:
.dropcap {
font-size: 1.5em;
margin-top: -0.09em;
}
Last edited by DNSB; Yesterday at 08:37 PM. |
|
|
|
|
|
#10 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,908
Karma: 9600930
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
I use an enlarged first character as shown in the image...
Attachment 206156 which is created by... <p class="scene"><span class="firstletterscene">M</span> .scene { padding-bottom: 0.01em; padding-top: 2em; text-indent: 0; } .firstletterscene { font-size: 1.5em; line-height: 1em; } If you don't want that, then remove the <span> surrounding the first letter using a Regex S&R. Search... <span class="dropcaps">(\w)</span> Replace... \1 |
|
|
|
|
|
#11 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 129
Karma: 1655764
Join Date: Apr 2024
Device: Kindle 11th Gen; Clara BW
|
That worked just right, the S&R.
Thanks very much. |
|
|
|
|
|
#12 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84,995
Karma: 153791427
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The best solution is to delete the dropcap code in the the HTML and CSS.
|
|
|
|
|
|
#13 | |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,967
Karma: 65700000
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
You lose the appearance the publisher / author wanted. Unfortunately, one solution does not work well (if at all) across devices. Kobo's break on wide letters (M, W) over a certain size. Kindles baseline seems to differ from Kobo (Kepub) so the adjusted margin-top, margin-bottom, vary in the up-down placement. |
|
|
|
|
|
|
#14 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84,995
Karma: 153791427
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Personally, I don't like drop caps, large letter, small caps, and bold at the beginning of the first paragraph of a chapter and sometimes the beginning of the first paragraph after a section break. |
|
|
|
|
|
|
#15 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 129
Karma: 1655764
Join Date: Apr 2024
Device: Kindle 11th Gen; Clara BW
|
The solution Karellen showed me was dropdead easy and, as far as I'm concerned, the best. Because it got me what I wanted with a few keystrokes and clicks and didn't otherwise change the appearance of the book on the Kindle.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to bulk edit/run check and fix on books | John IV | Editor | 3 | 03-12-2023 12:31 PM |
| Would Amazon find out if I edit and fix the error of my ebooks? | Julius Caesar | Amazon Kindle | 21 | 09-05-2016 05:44 AM |
| Aura HD Any idea on how to fix my device? | sdiox | Kobo Reader | 16 | 06-26-2015 07:25 PM |
| Device not charging -- is there a HW fix? | Savior1024 | Kindle Developer's Corner | 10 | 06-18-2015 08:25 PM |
| How to edit ebooks (fix typos etc.) while reading? | MCSmarties | Reading and Management | 6 | 07-28-2012 05:08 PM |