05-01-2013, 01:32 PM | #1 |
Junior Member
Posts: 3
Karma: 10
Join Date: May 2013
Device: Kindle 4
|
Kindle and small caps
Hi, this is my first post and I hope this is the right section, if not, I'm sorry!
I'm editing a digital edition for a book of a friend, and I'm facing several difficulties related to fonts. Hope that someone can help. Here I would like to have help for the most annoying issue I've found so far: I'm using Sigil for editing and then Kindlegen for convert into mobi format. Everything works, only problem is that the mobi file doesn't show small caps (that for peculiar reasons this book is full of). THese are all the information I can think of: 1) in the epub stylesheet I'm using a generic "serif" font: Code:
@font-face { font-family: serif; font-weight: normal; font-style: none; } Code:
.sc { font-variant: small-caps; } I don't know if Kindle default font doesn't support small caps or if I need to load the small caps font into the file. Thanks for any help! Ricroma |
05-01-2013, 02:53 PM | #2 |
Wizard
Posts: 1,551
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
The kf8 format indeed accepts small-caps. Of course, the text to be in small-caps must be "correctly written". If the original text is all in capital letters, then you won't see small-caps. The text must be written with the first letter as capital and the others as lowercase letters. So:
<span class="sc">TEST</span> -------------> INCORRECT: won't show as small-caps <span class="sc">Test</span> -------------> CORRECT: will show as small-caps The question is: how did you build the .mobi file? With Calibre? If so, that can be the source of your issue. Try building the .mobi file with kindlegen (or kindle previewer). (I suppose you are using a kindle device that supports the kf8 format) |
Advert | |
|
05-01-2013, 04:23 PM | #3 |
Junior Member
Posts: 3
Karma: 10
Join Date: May 2013
Device: Kindle 4
|
Hi RbnJrg!
And thanks for the answer! What is a kf8 format? I'm sorry to ask what may be a stupid question, but I'm kind of new to the ebook "business", and I still miss lots of base knowledge. Anyway, this is how I "work": 1) Edit the content with Sigil 2) Make sure everything looks right in Sigil viewer 3) Open the epub file with Calibre or an ebook reader on my tablet (Moon Reader) and make sure everything looks right 4) Convert the epub to mobi with KindleGen (I've been using calibre for the conversion but it was making a mess) 5) Check the mobi file with Kindle Previewer (and find out that everything looks ok except the small caps!) Thanks again for the help! RIcroma PS. yes, all the text that supposed to be in small caps is written in lower case letters. Last edited by ricroma; 05-01-2013 at 04:26 PM. |
05-01-2013, 04:35 PM | #4 |
Resident Curmudgeon
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
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.
|
05-01-2013, 04:36 PM | #5 | |
Resident Curmudgeon
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
Advert | |
|
05-01-2013, 04:37 PM | #6 |
Resident Curmudgeon
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
05-02-2013, 05:19 AM | #7 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
EDIT: There's a more elegant solution. See post #9.
There's no need to define a serif font for body text. The Kindle will automatically assign a serif font to it. Quote:
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> Last edited by Doitsu; 05-02-2013 at 11:45 AM. |
|
05-02-2013, 05:39 AM | #8 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Moved to the Mobi forum.
|
05-02-2013, 09:05 AM | #9 |
Wizard
Posts: 1,551
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Hi Doitsu,
Your solution is correct but maybe it could be a bit simpler Let's see: Code:
@media not amzn-mobi { span.sc { font-variant: small-caps;} } @media amzn-mobi { span.sc {font-size: 0.7em; text-transform: uppercase;} } <p>M<span class="sc">oralist</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> But if the ebook is exclusively for privately use and the device that we use it supports the .kf8 format, then there is no need to use media queries; just using "font-variant: small-caps;" will be enough |
05-02-2013, 09:19 AM | #10 | |
Wizard
Posts: 1,551
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
The .kf8 is the new amazon's ebook format supported so far by Kindle 3, Kindle 4, Kindle Touch, Kindle Paperwhite and Kindle Fire. So, the older Kindle (Kindle 1 and 2) only can read .mobi files and not .kf8 (.azw3) files. If your device is a Kindle 3 or newer, then you should be able to read .kf8 files and see text in small-caps. You are doing all well, but maybe you are not choosing the right device in Kindle Previewer. Choose Kindle Paperwhite as your device (and not Kindle) and you should see the text in small-caps. |
|
05-02-2013, 09:22 AM | #11 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
|
05-02-2013, 09:28 AM | #12 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
|
05-02-2013, 10:51 AM | #13 |
Junior Member
Posts: 3
Karma: 10
Join Date: May 2013
Device: Kindle 4
|
Wow! Thanks for all the answers!
Tonight I'll run some tests and see the best solution! Anyway, in short this is what I've understood 1) mobi files do not support small caps, in this case I have to fake them (useful for older kindle readers or not updated devices) 2) kf8 files support small font-variant: small-caps but not all devices support kf8 Right? and thanks a lot again! Ricroma |
05-02-2013, 11:01 AM | #14 |
Resident Curmudgeon
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
If the eBook in question is an eBook to be sold and it's also going to be sold in ePub, you have two choices. Do it uppercase way, or make two different versions of the eBook. One as the source for Kindles and one as the ePub to be sold.
|
05-02-2013, 04:39 PM | #15 | |
Wizard
Posts: 1,551
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Small caps | Notjohn | Sigil | 9 | 02-23-2013 10:19 AM |
Different ways of writing small-caps | roger64 | ePub | 3 | 11-25-2012 04:51 AM |
Small Caps | djulian | Kindle Formats | 2 | 04-05-2012 08:48 AM |
small caps problem in Sigil | goroke | Sigil | 16 | 08-05-2011 12:14 PM |
small caps | yuxi_kelly | ePub | 20 | 06-05-2011 12:04 AM |