|
|
|
|
|
by schoen
984 days ago
|
|
One argument would be that you can apply functions to change their case. For example in Python >>> "Ᾰ̓ΡΕΤΉ".lower()
'ᾰ̓ρετή'
>>> "AWESOME".lower()
'awesome'
The Greek Α has lowercase form α, whereas the Roman A has lowercase form a.Another argument would be that you want a distinct encoding in order to be able to sort properly. Suppose we used the same codepoint (U+0050) for everything that looked like P. Then Greek Ρόδος would sort before Greek Δήλος because Roman P is numerically prior to Greek Δ in Unicode, even though Ρ comes later than Δ in the Greek alphabet. |
|
Now, 'I'.lower() depends on your locale.
A cause for a number of security exploits and lots of pain in regular expression engines.
edit: Well, apparently 'I'.lower() doesn't depend on locale (so it's incorrect for Turkish languages); in JS you have to do 'I'.toLocaleLowerCase('tr-TR'). Regexps don't support it in neither.