![]() |
#1 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Calibre changes drop cap on converting epub -> azw3
I have a book using drop caps I coded in epub.
used this css: Code:
.Dropcap { float:left; font-size:5em; line-height:1; margin-bottom:-0.275em; margin-right:0.05em; margin-top:-0.06em; } In chapters that begin with a quote, I put the quote and the first letter in the span: Code:
<p class="noindent"><span class="Dropcap">‘D</span>o you want to go see some paintings?’ I ask So I run this through Calibre to make AZW3, and notice that the chapters beginning with a quote are only two line drop caps. Looking at the code, it's created a new style for those. Code:
.Dropcap { float: left; font-size: 5em; line-height: 1; margin-bottom: -0.275em; margin-right: 0.05em; margin-top: -0.06em; } .Dropcap1 { float: left; font-size: 2em; line-height: 1; margin-bottom: -0.275em; margin-right: 0.05em; margin-top: -0.06em; } So I used Calibre editor to change those chapters to just "Dropcap", that worked. Why did Calibre do this? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use the setting in the look & feel section of the conversion dialog to not rescale font sizes.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Font rescaling rescales all font sizes in the book. The user manual has a section explaining how it works. http://manual.calibre-ebook.com/conv...size-rescaling
|
![]() |
![]() |
![]() |
#5 | |
Connoisseur
![]() Posts: 95
Karma: 10
Join Date: Jan 2020
Device: kindle
|
Using Drop Caps
Quote:
Is there any way around this? |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,054
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
In the viewer you need to set (allow) it to use Publishers fonts and stylesheets/ (Good luck. Not all allow this, nor do it properly when they do ![]() |
|
![]() |
![]() |
![]() |
#7 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,750
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
In otherwords, most Android ePub apps are garbage because they don't respect the CSS.
|
![]() |
![]() |
![]() |
#8 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,054
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() FWIW it does get REAL tricky trying to allow users to make all their adjustments. If it was jus Scaling, then playing with Body, might be enough, allowing the rest |
|
![]() |
![]() |
![]() |
#9 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,750
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#10 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,724
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
![]() |
![]() |
![]() |
#11 |
Connoisseur
![]() Posts: 95
Karma: 10
Join Date: Jan 2020
Device: kindle
|
OK, I am using moon reader pro and it seems you have to set the moonreader options
1. Load the ebook. 2. Tap in the center of your tablet screen in order that the menu appears in the bottom. 3. Tap in the Options icon (the last one on the right side). 4. Select "Miscellaneous". 5. ENABLE "Show 'Preview with publisher formatting' Button on top bar". 6. UNCHECK "Disable CSS styles". Then they display |
![]() |
![]() |
![]() |
#12 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,054
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
FWIW I have the same app. I use it to check my work when other devices (my K4nt and Kobo) are not doing what I thought I did. |
|
![]() |
![]() |
![]() |
#13 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 320
Karma: 2228060
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on android
|
<style>
dropcap, h1 ~ p:first-of-type:first-letter, h2 + p:first-letter, h2 + img + p:first-letter, h2 + img + img + p:first-letter { color: red; font-size: 2em; line-height: 1em; float: none; /*float:none makes TALLcap*/} dropcap, h1 + p, h2 + p, h1 + img + p, h2 + img + p, h2 + img + img + p { text-indent: 0;}</style> The above works good for me. I put the dummy word 'dropcap' first to alphabetize the css. The 'text-indent:0;' makes the first paragraph of a chapter nonindented for the dropcap. I inserted 'img' in between 'h1' and 'p' because quite often I want a dropcap after an h1 which is followed by an image, then a p. This method automatically takes care of any double-quote starting the first paragraph. I prefer a TALLcap to a DROPcap, but it is a one word change. You can add h3 etc. if necessary. With this method you do not have to do anything at all in the text itself. Best regards, Pop |
![]() |
![]() |
![]() |
#14 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,750
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#15 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 320
Karma: 2228060
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on android
|
convert tallcap to dropcap
Sorry if I was not clear. change 'float;none' to 'float:left' and the tallcap will descend. Tweak 'line-height' and 'font-size' to taste. best regards, Pop
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Converting AZW3 to Epub | Lyn2012 | Conversion | 17 | 10-06-2014 08:47 AM |
Raised Drop Cap Image Followed by Small Caps | RyanMcSwain | ePub | 10 | 09-04-2014 10:12 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 |
Using CSS in Word to make a Drop Cap work in an Epub | brewt | ePub | 3 | 01-31-2009 06:00 PM |