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-31-2016, 11:32 AM   #16
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,983
Karma: 128903378
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 dwig View Post
Which the OP said he was using.

@JSWolf: I would think a simple font declaration in the CSS for a styled SPAN in combination with embedding the smallcaps font would work just fine. It should work much like the tags for bold and italic. It would work for any format/device that supported custom fonts and would gracefully fall back to C/LC when either the format lacked support for embedded fonts or the user disabled the use of embedded fonts in their reader.
You do know that you are answering a question from 2009 and it's 2016 now.
JSWolf is offline   Reply With Quote
Old 05-31-2016, 12:47 PM   #17
dwig
Wizard
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 1,613
Karma: 6718479
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
Quote:
Originally Posted by JSWolf View Post
You do know that you are answering a question from 2009 and it's 2016 now.
Yes, but it was dusted off and brought forward will a lot of additional discussion that seemed to be taking a tangential direction so I was inclined to comment, more for lurkers and for you in particular as I would have expected you to have resolved this over a half decade ago.
dwig is offline   Reply With Quote
Advert
Old 05-31-2016, 01:12 PM   #18
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,983
Karma: 128903378
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 dwig View Post
Yes, but it was dusted off and brought forward will a lot of additional discussion that seemed to be taking a tangential direction so I was inclined to comment, more for lurkers and for you in particular as I would have expected you to have resolved this over a half decade ago.
Yes, I have solved this long ago. I know a lot more about ePub now then I did back then.
JSWolf is offline   Reply With Quote
Old 05-31-2016, 09:59 PM   #19
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by dwig View Post
Which the OP said he was using.

@JSWolf: I would think a simple font declaration in the CSS for a styled SPAN in combination with embedding the smallcaps font would work just fine. It should work much like the tags for bold and italic. It would work for any format/device that supported custom fonts and would gracefully fall back to C/LC when either the format lacked support for embedded fonts or the user disabled the use of embedded fonts in their reader.
MattMC was, if I am not wrong, commenting about Bentleymaniac's suggested solution using text-transform. He, MattMC, was correct when he said it wouldn't be a true smallcap. Even IF you could get that to work on ePUB2, which is still holding the day.

Not to wax poetic and all geezer-like, but there's an elegance to an actual smallcaps font variant that you simply don't get by squishing the full-size characters. This does not mean that we haven't all done it; gods know, I have, when I couldn't get a client to realize that the LookInside shouldn't be the driver for the layout, but...yowch. I don't like squishing.

Hitch
Hitch is offline   Reply With Quote
Old 06-02-2016, 02:20 PM   #20
mattmc
Connoisseur
mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.
 
Posts: 89
Karma: 185923
Join Date: May 2015
Device: iPad 1/2/Air, K3/PW2/Fire1, Kobo Touch, Samsung Tab, Nook Color/Touch
Quote:
Originally Posted by Hitch View Post
MattMC was, if I am not wrong, commenting about Bentleymaniac's suggested solution using text-transform. He, MattMC, was correct when he said it wouldn't be a true smallcap. Even IF you could get that to work on ePUB2, which is still holding the day.
Precisely.

Quote:
Originally Posted by pdurrant View Post
It will be true smallcaps if the software displaying the ePub uses true smallcaps from the font, as it should if it is available.

The lack of smallcaps support is entirely an implementation problem, rather than a standards one.
For sure. I'm not aware of a single ereader that properly reads from the smallcaps portion of an OTF when given the font-variant instruction.

In my experience, your font has to have actual small-caps glyphs in the lowercase letter slots, for this to be pulled off on the broad range of ereaders we try to support these days.
mattmc is offline   Reply With Quote
Advert
Old 06-02-2016, 02:40 PM   #21
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,983
Karma: 128903378
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 mattmc View Post
For sure. I'm not aware of a single ereader that properly reads from the smallcaps portion of an OTF when given the font-variant instruction.

In my experience, your font has to have actual small-caps glyphs in the lowercase letter slots, for this to be pulled off on the broad range of ereaders we try to support these days.
This is correct. Current Readers cannot get to the small-caps in an OTF font unless the small-caps have replaced the lowercase letters.

But some fonts do have a small-caps variant so you can use that to get true small-caps. I know some SIL fonts have small-caps built-in tot he OTF, but somewhere on the SIL sight, you can take the font families and make small-caps versions out of it.
JSWolf is offline   Reply With Quote
Reply


Forum Jump


All times are GMT -4. The time now is 09:21 AM.


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