View Single Post
Old 04-03-2015, 01:27 AM   #1
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
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;
}
which makes a 3-line high drop cap.

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">&lsquo;D</span>o you want to go see some paintings?&rsquo; I ask
And that works (though I would like to use a hanging quote, if anyone has a simple way to do that?)

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;
}
The original Dropcap is exactly as I made it, but there is now a "Dropcap1" which is 2em high, not 5.

So I used Calibre editor to change those chapters to just "Dropcap", that worked.

Why did Calibre do this?
AlanHK is offline   Reply With Quote