Unicode/Collate version 0.95 =============================== NAME Unicode::Collate - Unicode Collation Algorithm SYNOPSIS use Unicode::Collate; #construct $Collator = Unicode::Collate->new(%tailoring); #sort @sorted = $Collator->sort(@not_sorted); #compare $result = $Collator->cmp($a, $b); # returns 1, 0, or -1. $result = $Collator->eq($a, $b); # returns true/false (similarly ->ne, ->lt, ->le, ->gt, ->ge) Note: Strings in @not_sorted, $a and $b are interpreted according to Perl's Unicode support. See perlunicode, perluniintro, perlunitut, perlunifaq, utf8. Otherwise you can use "preprocess" or should decode them before. INSTALL Perl 5.6.1 or later is required. Perl 5.8.1 or later is recommended. Though this distribution contains a subset of an old DUCET, named "keys.txt", this one is intended only for doing a test of this module and practically useless for any other purpose. Installation of Unicode::Collate::Locale requires Collate/Locale.pm, Collate/Locale/*.pm, Collate/CJK/*.pm and Collate/allkeys.txt. On building, Unicode::Collate::Locale doesn't require any of data/*.txt, gendata/*, and mklocale. Tests for Unicode::Collate::Locale are named t/loc_*.t. Since 0.54, XSUB that requires a C compiler will be built by default. To install this module type the following: perl Makefile.PL make make test make install Even if a C compiler is not available, pure Perl (i.e. non-XS) edition is available; type the following: perl disableXS perl Makefile.PL make make test make install If you decide to install XSUB edition after trying to build pure Perl, type the following: make clean perl enableXS perl Makefile.PL make make test make install DEPENDENCIES The conformant collation requires Unicode::Normalize (v 0.10 or later) although Unicode::Collate can be used without Unicode::Normalize. ABOUT DUCET Though this module can be used without any C