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

Re: [css3-text] text-transform:capitalize

From: Christoph Päper <christoph.paeper@crissov.de>
Date: Tue, 22 Feb 2011 11:02:41 +0100
Cc: "'WWW International' (www-international@w3.org)" <www-international@w3.org>
Message-Id: <D6E6B518-9E0B-4F21-AD28-E9AD2A6B3AA7@crissov.de>
To: W3C style mailing list <www-style@w3.org>
Koji Ishii:

> it looks like we're in the consensus for the following points:
> 
> 1. The feature should rely on Unicode to define its scope
> 2. The name of the value should stay unchanged
> 3. The wording "language-specific rules *must* be used"[1] should be weakened at least for this value as language-specific rules for this value is more complicated than upper/lower. We'd like to allow UAs to implement language-specific rules, but we might not be able to test and make them interoperable.
> 4. Use UAX#29 for word break
> 5. Apply Titlecase_Mapping defined in Unicode[2] to the first letter of every word

ad 2. you could introduce a ‘titlecase’ value that should use language-dependent rules, but may fallback to ‘capitalize’.
ad 3. The current text is only about case pairs like ‹I›/‹i› that may vary depending on language, it does not say anything about higher level rules, i.e. grammatical ones.

Btw.: I still think the new values ‘fullwidth’ and ‘large-kana’ need to be revised.

> A couple of concerns were left:
> 
> A. I'd like to add:
> 5.1. Except that numeric glyphs appear before the first letter of a word
> 
> B. No existing implementations match to this spec.
> 
> C. Unicode defines "first letter of a word is an uppercase letter and the rest of the letters are lowercase". All current implementation leaves the rest of the letters untouched. CSS 2.1 also defines "other characters are unaffected"[1]. But I see doing this might result strange for "LJ" case.

Lowercasing the rest is helpful for 

  <abbr>AIDS</abbr>

or, better yet, 

  acronym {text-transform: capitalize;}

but harmful for 

  <h1>Scrooge McDuck richest duck ever</h1> 

as long as we don’t have and use 

  <h1><name>Scrooge McDuck</name> richest duck ever</h1>
  name {text-transform: none;}
Received on Tuesday, 22 February 2011 10:05:16 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:37 GMT