Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the standard algorithm for converting unicode characters into lowercase?

I want to know the standard algorithm for converting unicode characters into lowercase as proposed by unicode.org.

Also, do most programming languages follow this proposed standard?

like image 914
Albert Avatar asked Aug 19 '10 13:08

Albert


2 Answers

I want to know the standard algorithm for converting unicode characters into lowercase as proposed by unicode.org.

The basic algorithm is simply to concatenate the lowercase of each individual character (as defined by the penultimate column in UnicodeData.txt). There are also some special rules to handle multiple-character mappings (İ → i̇ with an extra COMBINING DOT ABOVE the i), conditional mappings (Σ → ς at the end of a word, but σ otherwise), and language-sensitive rules (like Turkish dotless ı).

Also, do most programming languages follow this proposed standard?

Java does. Python implements the basic rules, but not the special rules. And C has no standardized Unicode support at all.

like image 128
dan04 Avatar answered Oct 02 '22 20:10

dan04


.NET does have unicode support and offers built-in functions to switch between upper and lower case. This is probably true with some other languages, as well.

like image 40
Russ Avatar answered Oct 02 '22 20:10

Russ