Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Sorting russian text

by Hanamaki (Chaplain)
on Nov 02, 2001 at 22:21 UTC ( [id://122876]=note: print w/replies, xml ) Need Help??


in reply to Sorting russian text

Unfortunately there is no Russian sort module on CPAN. Therefore you have to roll your own sort routine or try to use locale if your system supports Russian locales.
Using locales means that you loose a lot of portability, therefore I don't want to advise you use them.

Since Russian encodings use only one byte (8-bit) it isn't that difficult to implement basic Russian sorting, I pressume. (Probably "e" and "ë " could be a problem). Anyway, Sean M. Burke's Article on International Sorting and the Sort::ArbBiLex modul should get you started.

Hanamaki

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://122876]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-18 17:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found