-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Привет Игор ☺
* Igor K.:
I have a word = "ПРИВЕТ", it's in russian, and i want to downcase this
word(=привет). But standart method downcase not works with non-english
letters
Should no tool be available to do downcase, upcase, and the like for
Russian what about implementing it? Doing so is not very complicated.
If you actually intend to do this please support all characters of the
Cyrillic script (quite a number of them is not used in Russian).
The full list of Cyrillic characters and their Unicode code points are
available at Unicode.org
Cyrillic:
http://www.unicode.org/charts/PDF/U0400.pdf
Cyrillic supplement:
http://www.unicode.org/charts/PDF/U0500.pdf
IANAL but to my understanding it is perfectly legal to use these sheets
(in contrast to buying high-price standards documents that is) for
implementing a conversion tool.
- From these sheets you can create an array of all lowercase and an array
of all uppercase letters and out of them regular expressions that match
precisely one Cyrillic letter and a hash that maps each lowercase
character onto an uppercase one and one that maps each uppercase
character onto a lowercase one. Should some lowercase or uppercase
character have no counterpart (I am not completely sure if this is the
case or not) simply exclude it.
Consider applying the standard method before applying the abovementioned
mapping.
Hope that helps a bit,
Josef 'Jupp' Schugt
- --
Blog available at
http://www.mynetcologne.de/~nc-schugtjo/blog/
PGP key with id 6CC6574F available at
http://wwwkeys.de.pgp.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora -
http://enigmail.mozdev.org
iD8DBQFG2V+yrhv7B2zGV08RAhsIAKC48/AXTo3/qB0vo9l0tMM5su3MRQCZAW3L
uiT9bm6vhi/eN5dKxwHrWPQ=
=1Mdu
-----END PGP SIGNATURE-----