View Single Post
Old 08-02-2012, 04:53 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,550
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Toxaris View Post
There are CSS attributes for firstline but those are ignored by most readers and they are not in the format specifications of the ePUB format.
The spec says:

Reading Systems must support all CSS2 selectors, including pseudo-elements and pseudo-classes

and this includes :first-letter and :first-line, so they are in the ePub spec, which doesn't mean they are supported by popular readers

What is not supported is the text-transform property that one would like to use in this case. What I'd do is choose one of:

1) Use :first-line and text-transform regardless of their support status. It's not grave if they don't work now, it's a purely aesthetic formatting that doesn't add anything significant. In some future they'll work, or they'll be easily converted to something that works.

2) Hardcode as uppercase letters (or as smallcaps) only the first word (or the first two words, if the first one is one-letter). This doesn't change when the font size or text width are changed, and doesn't look wrong.

Last edited by Jellby; 08-02-2012 at 05:00 AM.
Jellby is online now   Reply With Quote