View Single Post
Old 02-25-2013, 01:44 PM   #15
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
Since the spec-compliant way of dealing with punctuation before the first letter is not always what I want (and even if :first-letter were supported, I'm pretty sure punctuation treatment would be defective), I'm not so troubled by the lack of support. It's more reliable to use spans anyway.



Yes, although you can't really put a span around the first line, because you don't know what the first line will be.
Yes, I was about to explain to Wolfie that what phossler was seeking was a way to implement Liz' lovely "first-line" and "first-letter" CSS examples in E:STTP because, in theory, the CSS does all the heavy lifting for you, whereas with spans, you have to individually mark every "first letter" and every first-length (of whatever) you want to mark. What would have been nice would be if first-line were supported, because those of us that make books are frequently requested to make the "first line" smallcaps (or all bold, or whatever), and of course, that's not reliably "doable." Thus, we too use spans, and have to explain (for the 594th time) that it can't be "fixed," because it isn't broken. ;-)

However, if you mark your chapter heads consistently, you can develop regex for, at least, the first-letter. I've never really worked out an automatic way to mark "first-line" or its emulation, because you're always making judgment calls about where to end the smallcaps or bold. {shrug}.

@user_none:

I, for one, do not love the Calibre reader. In the past--and I admit I haven't looked at it this year--it would not display italics and bold, along with other minor display glitches.

Hitch
Hitch is offline   Reply With Quote