1 Unicode/Collate version 0.33
2 ===============================
6 Unicode::Collate - Unicode Collation Algorithm
13 $Collator = Unicode::Collate->new(%tailoring);
16 @sorted = $Collator->sort(@not_sorted);
19 $result = $Collator->cmp($a, $b); # returns 1, 0, or -1.
20 $result = $Collator->eq($a, $b); # returns true/false
21 (similarly ->ne, ->lt, ->le, ->gt, ->ge)
26 (recommended: Perl 5.8.0 or later)
28 To use this module, it is recommended to install a table file
29 in the UCA format, by copying it into the directory
30 where F<Unicode/Collate.pm> is installed;
31 e.g. into F<perl/lib/Unicode/Collate/> directory
32 if you have F<perl/lib/Unicode/Collate.pm>.
34 The most preferable one is "The Default Unicode Collation Element Table",
35 available from the Unicode consortium's website:
37 http://www.unicode.org/Public/UCA/latest/allkeys.txt (latest version)
39 Though this distribution contains a subset of allkeys.txt, named "keys.txt",
40 this one is intended only for doing a test of this module
41 and practically useless for any other purpose.
43 To install this module type the following:
50 (!! XSUB for Unicode::Collate is an EXPERIMENTAL support !!)
51 If you have a C compiler and want to use XSUB edition,
52 type the following (!! "enableXS" must run before "Makefile.PL" !!):
60 If you decide to install pure Perl (i.e. non-XS) edition after trying
61 to build XSUB, type the following:
72 The conformant collation requires Unicode::Normalize (v 0.10 or later)
73 although Unicode::Collate can be used without Unicode::Normalize.
77 SADAHIRO Tomoyuki <SADAHIRO@cpan.org>
79 http://homepage1.nifty.com/nomenclator/perl/
81 Copyright(C) 2001-2003, SADAHIRO Tomoyuki. Japan. All rights reserved.
83 This library is free software; you can redistribute it
84 and/or modify it under the same terms as Perl itself.