View Single Post
Old 05-02-2013, 05:19 AM   #7
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
EDIT: There's a more elegant solution. See post #9.

Quote:
Originally Posted by ricroma View Post
1) in the epub stylesheet I'm using a generic "serif" font:
There's no need to define a serif font for body text. The Kindle will automatically assign a serif font to it.

Quote:
Originally Posted by JSWolf View Post
The way to do it is to use uppercase and reduce the font size to .7em (or so) and then you'll have simulated smallcaps. It won't look quite right because it's simulated. The only real way to do it is to embed a font and the smallcaps version of the same font. That will work in KF8, but not Mobi.
That's incorrect. Unlike ADE based devices, KF8 enabled Kindle devices and apps support small caps without embedded fonts. All you have to do is apply a font-variant: small-caps style.

In this special case the best solution would be to format all small caps text as all upper case text and use text-transform: lowercase; for the KF8 part and font-size: 0.6em; for the non-KF8 part via media queries.

Code:
span.sc { font-variant: small-caps; font-weight: bold; }
@media not amzn-mobi { span.sc2 {text-transform: lowercase; } }
@media amzn-mobi { span.sc2 {font-size: 0.6em; } }

<p><span class="sc">M<span class="sc2">ORALISTS</span></span> and philosophers have adjudged those who throw temptation in the way of the erring, equally guilty with those who are thereby led into evil.</p>
(Since text-transform and font-variant aren't supported in Mobi7, they'll be ignored by KindleGen in the non-KF8 part.)
Attached Thumbnails
Click image for larger version

Name:	sc_azw3.JPG
Views:	426
Size:	33.5 KB
ID:	105237   Click image for larger version

Name:	sc_mobi7.JPG
Views:	399
Size:	35.3 KB
ID:	105238  

Last edited by Doitsu; 05-02-2013 at 11:45 AM.
Doitsu is offline   Reply With Quote