css "smart quotes"

css "smart quotes"
Ain’t gonna happen. Smart quotes are semantic. CSS “smart quotes” is akin to CSS “spelling correction.” Consider the following:
“’Twas the night ’fore Christmas and she said, ‘It’s snowed about 6" so far.’”
Those are very difficult to get right if you don’t pay attention to the meaning behind them. The reason those particular quotes are done correctly is because I wrote a nice Perl module to handle it but even with recursive regular expressions, it’s tricky and without a semantic parser and correct grammar in the target text it cannot be done perfectly.
It’s not that a good try can’t be made, obviously. If code I wrote can get it 99.8% of the time then better hackers could get it 99.99%. CSS is about display and style, however, and as such should not contain logic about content.
[close] Permanent link · http://querylog.com/q/css+%22smart+quotes%22

Suggested HTML for linking:
Link preview: css "smart quotes"
09 July 2005 · Internet & computing
The page found by the original query:
Smart quotes with Perl
Browse by the page—15 Q&R each
« previous | more »