3 ms·
I know it seems insane, but Turkish capitalization is not fun to work with as a programmer. When they latinized the alphabet 100 years ago or so, they were sho
by dasil003 14y ago
I know it seems insane, but Turkish capitalization is not fun to work with as a programmer. When they latinized the alphabet 100 years ago or so, they were short on vowels and so it must have seemed pretty clever and convenient to make i and I separate letters with İ and ı respective case pairs. From a western programmers perspective though it's one of the worst unicode special cases owing to its combined unexpectedness and commonness.
Just as an example, text-transform: uppercase has been broken in Turkish for all major browsers until I believe Firefox finally fixed it late last year, after having a bug open for nearly a decade.
- obilgic 14y agoJust my curiosity, how do you know that they were short on vowels?
- deleted 14y ago[deleted]
- mtts 14y agoI'm not the parent and I'm not very familiar with this specific case, but in general the number of vowels in the Latin alphabet is really only sufficient for, well, Latin, and for languages that have the same, rather limited, number of vowels or less. English, for example, has more than 20 vowels (according to Wikipedia: http://en.wikipedia.org/wiki/English_phonology http://en.wikipedia.org/wiki/English_phonology), but then English happens to be a language with a larger than average number of vowels. Turkish makes do with a mere 8, but even that is more than the Latin alphabet can accommodate (5)
- zokier 14y agoFrom my point of view there could be one very simple solution: just add new codepoints in unicode for turkish I and i. So the latin i would follow the common case conventions, and turkish i would use whatever crazy stuff they have there. Of course that might be bit late to do now, there is probably too much text encoded in the current format.
- mtts 14y agoIt's probably a bit late, agreed, but it seems to me this problem is just as much the fault of the encoding itself as it is the fault of PHP : Turkish i and I may look like Western European i and I but they're entirely different characters.
- jeltz 14y agoIf they only had used Ï and ï instead everything would have been much simpler.