View Single Post
Old 08-02-2012, 09:55 PM   #7
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,503
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 Jellby View Post
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.

If I can kibbitz a bit:

First, I have found that :first-letter and :first-line are largely unsupported; although I can get it to work some of the time, I can't get it to work consistently enough to be usable for a commercial book. Jellby, I think you and I just traded some discussion about this somewhere else, but I don't remember where, AND, more importantly:

@kaylee:

If you try to use a dropcap with a span of smallcaps, it won't work at ALL, on the Nook. I do see that your dropcap isn't actual text, but an image, but I don't believe that will change anything; we tried this about a year ago for a client, and went through more revisions than I can express, but with Nook's specs, it simply won't work. If you don't set hyphenation off, it will do very bizarre things like place the text of the second span vertically on a page; if you do turn hyphenation off, the text will--as happened with you--run the text inside the span off the right-margin. For whatever reason, it just doesn't bloody work. Or, at least, it wasn't workable a year ago, and I doubt that Nook has upgraded anything that would change that in the last 9-12 months. We must have tried 18 different versions of that, but nothing worked. It's not the first-line or first-letter thing; it's the two spans.

Of course, if anyone can get it to work on a Nook, it might be Jellby, but nothing we tried worked, our client had to settle for simple caps that we entered manually, no spans, no text-transform, no smallcaps.

HTH,
Hitch
Hitch is offline   Reply With Quote