Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 03:07 PM   #1
Dal Bhat
Zealot
Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.
 
Posts: 128
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?
Attached Thumbnails
Click image for larger version

Name:	Editor View.jpg
Views:	31
Size:	74.6 KB
ID:	226097   Click image for larger version

Name:	Editor Code.jpg
Views:	27
Size:	243.2 KB
ID:	226098  
Dal Bhat is offline   Reply With Quote
Old Yesterday, 03:24 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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;
to .dropcaps in the css
I use padding as some viewers override margin
theducks is offline   Reply With Quote
Old Yesterday, 07:11 PM   #3
Dal Bhat
Zealot
Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.
 
Posts: 128
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.
Attached Thumbnails
Click image for larger version

Name:	Live css.jpg
Views:	11
Size:	209.3 KB
ID:	226101  
Dal Bhat is offline   Reply With Quote
Old Yesterday, 07:23 PM   #4
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
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.
Karellen is offline   Reply With Quote
Old Yesterday, 07:29 PM   #5
Dal Bhat
Zealot
Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.
 
Posts: 128
Karma: 1655764
Join Date: Apr 2024
Device: Kindle 11th Gen; Clara BW
A ha. Thanks. Trying the fix now.
Dal Bhat is offline   Reply With Quote
Old Yesterday, 07:34 PM   #6
Dal Bhat
Zealot
Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.
 
Posts: 128
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.
Dal Bhat is offline   Reply With Quote
Old Yesterday, 07:47 PM   #7
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
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.
Karellen is offline   Reply With Quote
Old Yesterday, 08:17 PM   #8
Dal Bhat
Zealot
Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.
 
Posts: 128
Karma: 1655764
Join Date: Apr 2024
Device: Kindle 11th Gen; Clara BW
Quote:
But if you do want it fixed for personal use on a single ereader
Nah, it's not that important. But thanks for the background on them in general.

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?
Dal Bhat is offline   Reply With Quote
Old Yesterday, 08:34 PM   #9
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: 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;
}
Though as mentioned, dropcaps are a total PITA. You can make them look good on one device/app and they will need adjustment for another device/app.

My current choice for most purposes if someone insists on dropcaps is:
Code:
.dropcap {
  font-size: 1.5em;
  margin-top: -0.09em;
}
which is a pretty minimal dropcap.

Last edited by DNSB; Yesterday at 08:37 PM.
DNSB is offline   Reply With Quote
Old Yesterday, 08:35 PM   #10
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
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
Karellen is offline   Reply With Quote
Old Yesterday, 08:50 PM   #11
Dal Bhat
Zealot
Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.Dal Bhat ought to be getting tired of karma fortunes by now.
 
Posts: 128
Karma: 1655764
Join Date: Apr 2024
Device: Kindle 11th Gen; Clara BW
That worked just right, the S&R.

Thanks very much.
Dal Bhat is offline   Reply With Quote
Old Today, 09:44 AM   #12
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 84,993
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.
JSWolf is online now   Reply With Quote
Old Today, 12:14 PM   #13
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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:
Originally Posted by JSWolf View Post
The best solution is to delete the dropcap code in the the HTML and CSS.
That is the easiest way around, but is it the best?

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.
theducks is offline   Reply With Quote
Old Today, 01:49 PM   #14
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 84,993
Karma: 153791427
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by theducks View Post
That is the easiest way around, but is it the best?

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.
A lot of the time, the appearance is to try to match that of the pBook and it doesn't always work well. I have no idea if the author is approving this.

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.
JSWolf is online now   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 01:49 PM.


MobileRead.com is a privately owned, operated and funded community.