- From: fantasai <fantasai.lists@inkedblade.net>
- Date: Mon, 5 Mar 2018 15:53:58 +0900
- To: Jonathan Kew <jfkthame@gmail.com>, www-style list <www-style@w3.org>
On 03/16/2015 03:50 AM, Jonathan Kew wrote: > Unicode includes a few digraph characters such as "dz" and "lj" that have uppercase (DZ, LJ) and titlecase (Dz, Lj) equivalents. How > should these be handled by text-transform:capitalize when they occur in word-initial position? > > It's clear that the lowercase digraphs (dz) will be transformed according to their titlecase mapping (Dz), and that titlecase > digraphs will be unchanged. But what should be done when the text contains an uppercase digraph such as DZ? > ... > So I'd like to propose a minor change to the definition, something like: > > # 'capitalize' > # Puts the first typographic letter unit of each word in titlecase, unless it is already uppercase, in which case it is > unchanged. Other characters are unaffected. > > An alternative, perhaps even better, would be to make it contextual: > > # Puts the first typographic letter unit of each word in titlecase, unless it is already uppercase and is followed by > another uppercase letter, in which case it is unchanged. Other characters are unaffected. > > However, given that text-transform:capitalize is likely to remain a rather crude instrument -- it doesn't "know" about > language-specific stop lists of small words that should not be capitalized, for example -- I don't think the additional > implementation cost of making it context-dependent is worthwhile. Hi Jonathan, The CSSWG accepted your proposed changes in https://lists.w3.org/Archives/Public/www-style/2016Oct/0068.html and the changes were committed in https://hg.csswg.org/drafts/rev/11e8aa074031 Please let me know if that resolves the issue, or if further edits are needed. Thanks (and sorry for the belated response)! ~fantasai
Received on Monday, 5 March 2018 06:54:35 UTC