News for hackers. Stuff that matters.
Re:CSS text-transform is language-dependant: the Dutch case ... by pennig on Sunday April 01, 2012 @12:12PM (#3784050)
The code path for that case must be delightful.
Re:CSS text-transform is language-dependant: the Dutch case ... by robin_reala on Sunday April 01, 2012 @12:55PM (#3784214)
Re:CSS text-transform is language-dependant: the Dutch case ... by masklinn on Sunday April 01, 2012 @01:20PM (#3784301)
It's really weird that they just add special cases like that. Though I expect it's just because they don't have enough special cases yet (went from one — for the Turkish I — to two).

I'd have expected something like a generic Unicode-aware/y text management layer, and CSS text transforms would just go through that layer.

Re:CSS text-transform is language-dependant: the Dutch case ... by mcpherrinm on Monday April 02, 2012 @02:15AM (#3786565)
The problem is that Unicode doesn't know about language. Unicode is just characters.

Language-aware bits are more gross, but then language often is. It's not nicely structured like most of the other things we encounter when transforming data.

Re:CSS text-transform is language-dependant: the Dutch case ... by masklinn on Tuesday April 03, 2012 @02:28AM (#3791760)
> The problem is that Unicode doesn't know about language. Unicode is just characters.

I won't blame you for this, it is a common mistake, but Unicode goes far beyond merely mapping characters to integers. The Standard Annexes, Technical Reports and Technical Specifications cover pretty much all things localization from line breaking [UAX14] to regular expressions [UTS18] through date and time formatting [UTS35] or sorting [UTS10].

And as it turns out, both uppercasing and titlecasing are covered by [UAX44] as part of the SpecialCasing.txt file which provides lower, upper and title-casing (along with optional conditions) for characters with non-trivial mappings (trivial 1:1 mappings are covered in the base UnicodeData.txt file)

[UAX14] http://www.unicode.org/reports/tr14/

[UTS18] http://www.unicode.org/reports/tr18/

[UTS35] http://www.unicode.org/reports/tr35/

[UTS10] http://www.unicode.org/reports/tr10/

[UAX44] http://www.unicode.org/reports/tr44/

Re:CSS text-transform is language-dependant: the Dutch case ... by underwater on Sunday April 01, 2012 @03:29PM (#3784645)
Eek. Not only are they hardcoding the logic but they mix their CSS-specific code into the function. I understand that they are handling a limited number of cases now but if I came across that kind of code in my work I'd be very sceptical.
Re:CSS text-transform is language-dependant: the Dutch case ... by ars on Sunday April 01, 2012 @03:48PM (#3784684)
That's called not over engineering something.

Making something more complicated doesn't make it better. Make it more complicated when you need to, not before.

Re:CSS text-transform is language-dependant: the Dutch case ... by darklajid on Sunday April 01, 2012 @03:58PM (#3784700)
I wonder how the German ß is handled. Having no clue about the implementation of these transforms, wouldn't that be a similar case?
Re:CSS text-transform is language-dependant: the Dutch case ... by lillycat on Sunday April 01, 2012 @04:26PM (#3784767)
Yes, in Firefox the 'esszet' is transformed in SS when in capital letters. But this done since a long time. The dotted and dot-less Turkic, and the Dutch IJ, are new in Firefox 14 (which is the first browser to support it, AFAIK).

There is some specific cases with accented Greek diphthongs, where the diacritic position changes in upper and lower case, but Mozilla is working on a fix.