Le 29 nov. 03, à 16:30, Jarkko.Hietaniemi a écrit :
I want to correctly sort words in a variety of languages, currently
French, English, Spanish, Portuguese, German and Arabic. I am using
Perl 5.8.1 and unicode. I think I need Unicode::Collate to have
*correct* sorting. Is this correct?
In addition to the problems listed by Sadahiro (most importantly that
the UCA
is not "correct" for any particular language, it is just a baseline
ordering
that is used for Unicode character data) I think it is worth pointing
out that
trying to sort multilingual data is practically doomed to fail sooner
or later
because many language-specific rules simply are contradictory.
Thank you both for your replies. What about sorting words in one
particular
language, is Perl's sort() good enough? I'm wondering, since language
isn't
one of sort()'s arguments.
--
Eric Cholet