Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 05-25-2011, 06:13 AM   #1
yuxi_kelly
Enthusiast
yuxi_kelly began at the beginning.
 
Posts: 37
Karma: 10
Join Date: Oct 2010
Device: ipad
small caps

if I use INDD to create an epub, the small caps show well on ipad.
BUT it do not work on Adobe Digital Editions.

BUT my book has 40 headers for every chapter, all of them are caps and small caps.

Who can tell me a easy way to get small caps show well both in ipad and ADE?

I do not want to write <span>ABC</span> for every small caps in Dreamweaver. crying crying

begging,
yuxi_kelly is offline   Reply With Quote
Old 05-25-2011, 06:53 AM   #2
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Hello

This is a tricky field.

ADE requires true small caps and does not recognize emulated small caps.

The usual (MS) fonts lack a true small cap font though. So, if you want to add true small caps, you should consider using embedded fonts. But some e-readers don't recognize embedded fonts. A catch 22 problem...

If your headers have small caps, they should be recognized as such but you must give them in the CSS stylesheet not only a font-variant:small-caps but mainly a font-family with small-caps support. The span element is required only for text within a paragraph.

Now that I have been pretty unclear, I let you consider one EPUB like the joint one. It makes use of embedded fonts, small-caps for titles and part of text. Could be an example of what I meant to say.

Bon courage.

I cooked this EPUB with writer2xhtml (short is W2X) and Sigil.
Attached Files
File Type: epub La Chinoise.epub (212.7 KB, 449 views)

Last edited by roger64; 05-25-2011 at 07:01 AM.
roger64 is offline   Reply With Quote
Advert
Old 05-25-2011, 07:00 AM   #3
Adjust
Addict
Adjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel is
 
Adjust's Avatar
 
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
If you have a small cap style applied in ID.
Then you can open the xhtml files in textwrangler or another editor which does regular expressions (GREP)
search for what ever the line is, for example:

<p class="bodytext"><span class="smallcaps">This is the small caps</span>and this is the rest of the paragraph text</p>

Find/change in text editor
Find
<span class="smallcaps">(.*?)</span>
Replace
<span class="smallcaps">\U\1\l</span>

Then in your css you just need the
span.smallcaps{
font-size: 85%
}

This method "fakes" small caps by making the type uppercase but smaller
Adjust is offline   Reply With Quote
Old 05-25-2011, 07:35 AM   #4
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,536
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
The trick proposed by Adjust could be done in CSS with:

Code:
span.smallcaps{
  text-transform: uppercase;
  font-size: 85%
}
if "text-transform" was included in the ePUB spec, which it is not. The drawback is that you can't easily code MIXED SIZE SMALL CAPS.
Jellby is offline   Reply With Quote
Old 05-25-2011, 09:35 AM   #5
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Hi

I took a lot of my science about this from
http://blog.hypsometry.com/articles/...ith-font-face/

Last edited by roger64; 05-25-2011 at 10:14 AM.
roger64 is offline   Reply With Quote
Advert
Old 05-25-2011, 08:49 PM   #6
Adjust
Addict
Adjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel is
 
Adjust's Avatar
 
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
Quote:
Originally Posted by Jellby View Post
The trick proposed by Adjust could be done in CSS with:

Code:
span.smallcaps{
  text-transform: uppercase;
  font-size: 85%
}
if "text-transform" was included in the ePUB spec, which it is not. The drawback is that you can't easily code MIXED SIZE SMALL CAPS.
Using the text-transform:uppercase DOES NOT work in Adobe Digital Editions, or desktop Kindle viewer.

Only works in iBooks

This is why I use my method.
Adjust is offline   Reply With Quote
Old 05-26-2011, 05:32 AM   #7
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,536
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Adjust View Post
Using the text-transform:uppercase DOES NOT work in Adobe Digital Editions, or desktop Kindle viewer.
I know, "text-transform" is not in the spec, and you can count on it being supported anywhere. I just say that it would be fine (but not perfect yet) if it worked.
Jellby is offline   Reply With Quote
Old 05-26-2011, 05:35 AM   #8
Adjust
Addict
Adjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel is
 
Adjust's Avatar
 
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
Ah, ok. I misread your post, apologies
Adjust is offline   Reply With Quote
Old 06-01-2011, 11:32 PM   #9
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,421
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
If you want the best possible small caps, find a good body font family that also has a small caps variety and use them.
JSWolf is offline   Reply With Quote
Old 06-02-2011, 12:32 AM   #10
Adjust
Addict
Adjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel is
 
Adjust's Avatar
 
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
Quote:
Originally Posted by JSWolf View Post
If you want the best possible small caps, find a good body font family that also has a small caps variety and use them.
Find a good FREE font family that also has small caps and use them.

1.5 Embedding of the Font Software into electronic documents or Internet pages is only permitted under the absolute assurance that the recipient cannot use the Font Software to edit or create a new document (read-only). It must be ensured that the Font Software cannot be fully or partially extracted from said documents.

http://www.linotype.com/2061-28225/l...otypeeula.html
Adjust is offline   Reply With Quote
Old 06-02-2011, 01:08 AM   #11
bobcdy
Fanatic
bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.
 
bobcdy's Avatar
 
Posts: 527
Karma: 1048576
Join Date: May 2009
Device: bebook; prs-950; nook simple touch; HTC Jetstream tablet
As for a free pd font with all caps, I use garava font from aimwell.org. Google garava font. It's a very comprehensive font family with several varations including smallcaps.
bobcdy is offline   Reply With Quote
Old 06-02-2011, 01:20 AM   #12
Adjust
Addict
Adjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel is
 
Adjust's Avatar
 
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
Wow, I think a wall of that font would be hard to read, the serifs are very fine...
Adjust is offline   Reply With Quote
Old 06-02-2011, 06:08 PM   #13
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,421
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by bobcdy View Post
As for a free pd font with all caps, I use garava font from aimwell.org. Google garava font. It's a very comprehensive font family with several varations including smallcaps.
Charis SIL is the font that most publishers use when they embed a font. Charis SIL has small caps built in, but ADE cannot access them. But using SIL TypeTuner, you can create a small caps version by extracting the small caps from the SIL font.
JSWolf is offline   Reply With Quote
Old 06-02-2011, 09:19 PM   #14
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by Adjust View Post
Find a good FREE font family that also has small caps and use them.

1.5 Embedding of the Font Software into electronic documents or Internet pages is only permitted under the absolute assurance that the recipient cannot use the Font Software to edit or create a new document (read-only). It must be ensured that the Font Software cannot be fully or partially extracted from said documents.

http://www.linotype.com/2061-28225/l...otypeeula.html
It is possible to encrypt fonts (obfuscate) in the folder to prevent their use by simply extracting them. Actually is is not really DRM but it passes the test identified above. ADE supports this but uses a slightly different scheme that the standard.

Dale
DaleDe is offline   Reply With Quote
Old 06-02-2011, 09:53 PM   #15
Adjust
Addict
Adjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel is
 
Adjust's Avatar
 
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
Yeah, even still, I'm not comfortable encrypting licensed fonts for inclusion for commercial products.

I actually know someone in my industry who got a visit by the font police...
Adjust is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
author sort appears in ALL CAPS cybmole Calibre 11 05-08-2011 08:05 AM
DR1000 FW2.0 - RC2 - font-variant: small-caps ThR iRex 0 06-29-2010 06:31 AM
newbiq Q about Drop Caps and Calibre NASCARaddicted Calibre 2 01-14-2010 08:03 PM
Unutterably Silly ANGRY CAPS Not_A_Crook Lounge 56 12-10-2009 02:16 AM
css drop caps coming out of calibre brewt Calibre 3 01-18-2009 05:00 PM


All times are GMT -4. The time now is 05:18 AM.


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