10-11-2012, 11:53 AM | #1 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
EPUB without fonts
Hi
I am used to produce EPUB with embedded fonts. I would like to add EPUB without fonts. It's easy to suppress any information about font-family. But for styles, if I wish to give a clean EPUB without font, I need to transform the small-caps styles to reduced capitals styles. This must be done for paragraph and character styles (spans), probably best in Sigil. Has somebody any advice to make this transcription automatic? |
10-11-2012, 12:07 PM | #2 | |
Resident Curmudgeon
Posts: 74,228
Karma: 129333566
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
in CSS... .smallcaps { font-size: .75em } in the XML... <p>Here are some <span class="smallcaps">SMALLCAPS</span> for your enjoyment</p> |
|
10-11-2012, 12:50 PM | #3 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
It becomes interesting when you have MIXED CASE smallcaps...
Usually, it's not critical to have the letters shown as actual smallcaps, in those cases I just set the conditional styles (ADE only) to use bold (for instance) instead of smallcaps. Readers that support smallcaps will ignore the ADE-only style, and when (if) ADE supports smallcaps I'll simply remove the conditional styles. |
10-11-2012, 02:16 PM | #4 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
@JSWolf.
This is the downside of small-caps... You can't easily get rid of them... @Jellby I have still things to learn to understand your reply. Yes, I enjoy using - sparingly - these mixed case words with true small-caps. And the nicest they are, the hardest to go... How do you write your mixed case word without true small-caps? Do you need four spans to describe: mixed case? One for M, one for ixed, one for C, one for ase? |
10-11-2012, 03:43 PM | #5 |
Resident Curmudgeon
Posts: 74,228
Karma: 129333566
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Code:
M<span class="smallcaps">ixed</span> C<span class="smallcaps">ase</span> |
10-11-2012, 03:55 PM | #6 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
|
10-11-2012, 04:28 PM | #7 |
Berti
Posts: 1,196
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
|
|
10-11-2012, 10:59 PM | #8 | |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Quote:
I have a shortcut. I will leave my CSS style-sheet as it is except for this change: search for the small-cap font Code:
font-family:'Linux Libertine O C'; Code:
font-size:0.7em; For mixed cases though, I should have to parse manually the occurences in the xhtml files and correct them... I think I will probably forget them and leave everything as a fake small-cap... :-) Last edited by roger64; 10-12-2012 at 11:01 AM. Reason: Edit to suppress text-transform: uppercase |
|
10-12-2012, 03:29 AM | #9 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
That's risky, the "text-transform" property is not in the ePub spec, some readers may support it though (I'm not sure about ADE, but I believe it doesn't?)
|
10-12-2012, 10:59 AM | #10 | |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Quote:
I correct my previous message Last edited by roger64; 10-12-2012 at 11:02 AM. |
|
10-12-2012, 08:10 PM | #11 | |
Resident Curmudgeon
Posts: 74,228
Karma: 129333566
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
roger64, do use .75em if you want your smallcaps and not .7em. |
|
10-12-2012, 09:02 PM | #12 |
Linux User
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
https://wiki.mobileread.com/wiki/EPubHacks also contains some suggestions about small caps.
Seems to me though as if there just isn't a good solution. My current calibre settings would filter your smallcaps hack right out. There are too many books with whacky font sizes defined in them - on Smashwords probably because they use Word/DOC as a source? - so font size is one of the properties I filter out when converfixing books. |
10-12-2012, 09:52 PM | #13 | |
Resident Curmudgeon
Posts: 74,228
Karma: 129333566
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
As for the smallcaps using a font size being a hack, it's how nearly all ePub do it. So if you ePub > ePub all of you do ruin some things like smallcaps. |
|
10-13-2012, 03:08 AM | #14 | |
Berti
Posts: 1,196
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
|
Quote:
The point is, that the letters within the <span> MUST be converted to uppercase (Look at your example a few messages above (#5)). This is the major difference between small caps (Font) and fakesmallcaps. Last edited by mmat1; 10-13-2012 at 03:10 AM. |
|
10-13-2012, 01:51 PM | #15 |
Resident Curmudgeon
Posts: 74,228
Karma: 129333566
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
When I have an ePub that has enough instances of smallcaps, I do convert them to lowercase and use a real smallcaps font. Definitely looks better. I use Charis SIL most of the time and I have a smallcaps version.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ePub->ePub conversion with obfuscated fonts | DiapDealer | Conversion | 1 | 03-17-2012 02:33 PM |
Foreign fonts (PL) in epub | tntmarek | Interead COOL-ER | 1 | 03-04-2011 06:05 PM |
ePub embedded fonts | JSWolf | Ectaco jetBook | 9 | 09-14-2009 08:43 PM |
Epub & fonts | Nate the great | ePub | 8 | 07-28-2009 06:13 AM |
ePub + Embedded Fonts | Cygfrydd | ePub | 11 | 03-02-2009 05:56 PM |