Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-13-2009, 12:38 PM   #1
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 2,877
Karma: 4200035
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350, PB360, Kobo Glo/AuraHD/Aura6"/AuraH2O
Calibre, EPUB and DropCap size

I have been experimenting with adding DropCaps to my ebooks - courtesy of some of the advice in the EPUB forum - but am having problems controlling the size of the DropCap in Calibre's EPUB conversion.

My EPUB is displaying DropCaps OK but they are not as large as specified in my source CSS.

For example:

Source CSS:
.dropcap {
font-size: 4em;
font-weight: bold;
float: left;
line-height: 1em;
margin-top: -0.01em;
margin-right: 0.1em
}
CSS inside Calibre EPUB - conversion Base Font Size 10pt
.dropcap {
float: left;
font-size: 2.4em;
font-weight: bold;
line-height: 1em;
margin-right: 0.1em;
margin-top: -0.01em
}
CSS inside Calibre EPUB - conversion Base Font Size 12pt
.dropcap {
float: left;
font-size: 2em;
font-weight: bold;
line-height: 1em;
margin-right: 0.1em;
margin-top: -0.01em
}
CSS inside Calibre EPUB - conversion Base Font Size 8pt
.dropcap {
float: left;
font-size: 3.2em;
font-weight: bold;
line-height: 1em;
margin-right: 0.1em;
margin-top: -0.01em
}
As you can see the CSS values are retained pre/post conversion on all items except the font-size.

When converted at Base Font Size 10 or 12 the DropCap has a depth of just under 2 lines of body text.

When converted at Base Font Size 8 the DropCap has a depth of 2-3 lines of body text. The trouble with this setting is that I have to set the PRS-505 magnification to Large to read the body text which doesn't give enough flexibility for poor reading conditions.

My eventual aim is to set the source CSS font-size to a value where I get a DropCap depth of exactly 2 lines (or close enough) but until I can figure out what's happening during the conversion I suspect I'm not going to get there.

Please can anyone help?
jackie_w is online now   Reply With Quote
Old 11-13-2009, 12:42 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,314
Karma: 5382313
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That's because calibre rescales font sizes. There's a section on how rescaling works in the user manual. If you are sure you dont want font size rescaling, you can just turn it off in the conversion options.
kovidgoyal is offline   Reply With Quote
 
Advertisement
Old 11-13-2009, 12:44 PM   #3
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 2,877
Karma: 4200035
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350, PB360, Kobo Glo/AuraHD/Aura6"/AuraH2O
That was quick! I'll give that a try.
jackie_w is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem converting pdf to epub (size) using calibre abadguy PDF 6 03-23-2012 06:33 AM
ePub file size Adjust ePub 16 10-27-2010 12:55 PM
v0.7.2 increase in epub file size? skb Calibre 2 06-12-2010 06:12 PM
Managing epub size/conversion sircastor ePub 1 12-19-2009 01:35 AM
Increase font size of epub? pennpin PocketBook 0 11-25-2009 06:41 PM


All times are GMT -4. The time now is 09:50 AM.


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