Alphabet of Arabic and Japanese text, which is in Unicode?

Does anyone have a code for the Arabic and Japanese text alphabet that is in Unicode? If the code was in ruby, that would be great.

+5
source share
5 answers

Unicode code points are not listed alphabetically (for example, Z <a), but they will still be roughly the same. There is a canonical Unicode order defined by the Unicode Collation Algorithm , and they also apply to the language order (the French order is not the same as the German or Czech order, even with the same alphabet), which can be specified in the locale information. I think the ICU library contains the language specific algorithms you are looking for.

+4
source

I don't know Ruby, but python has an ord () function that translates a special Unicode character to its Unicode code point. For example,

>>> a = u'ل'
>>> ord(a)
0: 1604
>>> b = u'ع'
>>> ord(b)
1: 1593

Look for something similar in Ruby. I assume that Arabic characters are listed in Unicode in alphabetical order.

0

, mylist.sort?

0

words.sort . , , . , , , .

0

mylist.sort Ruby 1.9 ( ). Ruby 1.8, Unicode , , character-encodings gem, String UTF-8. ( mylist.sort .)

0

All Articles