On Tue, 7 Sep 2004, Michael D Schleif wrote:
> I would like to normalize sections of text in a CGI application.
Normalize in what sense? And wouldn't it be better to do the processing in
the CGI script, rather than as a stylistic suggestion in CSS?
> of the web page text is automatically generated from user input (e.g.,
> text files, mysql db, &c.) Sometimes, users shout with the CapsLock ON,
> and other times they leave strange looking case combinations for other
> interesting reasons ;>
But what would you like to do with it? If you intend to change the text to
mixed case, you need much more processing that can be done in CSS
(e.g., recognizing the start of a sentence, proper names, and
> Empirically, I have found that if the original text is uppercase, then
> my options appear to be limited. `text-transform: capitalize' does
> *not* affect that text.
It should by definition change the first letter of each word into
uppercase and leave other characters unaffected. It is of fairly limited
usefulness (it does _not_ correspond to common English style in headings,
which capitalizes most words but _not_ certain "small words"), and most
probably it's of no help in your application - and neither is any other
value for text-transform, I guess.
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/