W3C home > Mailing lists > Public > www-style@w3.org > February 2011

Re: [css3-text] text-transform:capitalize (was New WD of CSS Text Level 3

From: Xaxio Brandish <xaxiobrandish@gmail.com>
Date: Sat, 19 Feb 2011 13:28:07 -0800
Message-ID: <AANLkTin2qWi-D_x7Qsi-HL+h5bB8hYe7Ledo1NpVyX2y@mail.gmail.com>
To: John Cowan <cowan@mercury.ccil.org>
Cc: Koji Ishii <kojiishi@gluesoft.co.jp>, W3C style mailing list <www-style@w3.org>, "'WWW International' (www-international@w3.org)" <www-international@w3.org>

I was thinking about commenting on this as well, but I hesitated due to the
characters in Japanese not being technically "letters".  I'm glad that you
said something, because at least I was thinking along the right lines.  I
also hesitated because I was wondering if "word" in the description covers
only letters and already excludes punctuation.

Perhaps "word" should be defined as "characters excluding punctuation and
whitespace".  In Firefox and Chrome tests, numbers directly in before
letters keep the letters from receiving capitalization when using this

Also, what about names like O'Donnell?  Are these kinds of cases
undetectable for the purpose of applying this property...?


On Sat, Feb 19, 2011 at 1:16 PM, John Cowan <cowan@mercury.ccil.org> wrote:

> Koji Ishii scripsit:
> > Transforms the first character in each word to uppercase; all other
> > characters remain unaffected; i.e., they're not transformed to
> > lowercase, but will appear as written in the document.
> It seems to me that it is better to speak of the "first letter with case".
> For example, "'tis" (short for "it is") titlecases to "'Tis", not "'tis".
> Similarly, the word "!Kung" (the name of a South African people) is
> correctly so capitalized whether the "!" is the punctuation mark or
> the identical-looking U+01C3, a caseless letter.  (The Dutch words 't,
> 's, and 'n never get capitalized, but we can't have everything.)
> Furthermore, the Croatian double letters dj, lj, nj, and dz-with-caron
> must be correctly titlecased to Dj, Lj, Nj, and Dz-with-caron, whether
> they are represented with one character or two.  Unicode already provides
> a titlecase mapping that handles these and other two-letter characters.
> --
> It was impossible to inveigle           John Cowan <cowan@ccil.org>
> Georg Wilhelm Friedrich Hegel           http://www.ccil.org/~cowan
> Into offering the slightest apology
> For his Phenomenology.                      --W. H. Auden, from "People"
> (1953)
Received on Saturday, 19 February 2011 22:10:28 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:56 UTC