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

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 05-25-2011, 05: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, 05: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, 410 views)

Last edited by roger64; 05-25-2011 at 06:01 AM.
roger64 is offline   Reply With Quote
Advert
Old 05-25-2011, 06: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, 06: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,515
Karma: 18512745
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, 08: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 09:14 AM.
roger64 is offline   Reply With Quote
Advert
Old 05-25-2011, 07: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, 04: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,515
Karma: 18512745
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, 04: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, 10: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: 73,857
Karma: 128597114
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 online now   Reply With Quote
Old 06-01-2011, 11:32 PM   #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, 12: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, 12: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, 05: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: 73,857
Karma: 128597114
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 online now   Reply With Quote
Old 06-02-2011, 08: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, 08: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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 06:10 PM.


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