1 Unicode/Collate version 0.52
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)
25 Perl 5.6.1 or later is required.
26 Perl 5.8.1 or later is recommended.
28 Though this module can be used without any C<table> file,
29 to use this module easily, it is recommended to install a table file
30 in the UCA format, by copying it under the directory
31 <a place in @INC>/Unicode/Collate.
33 You can install such a table file by adding it
34 to "Collate" directory (where "keys.txt" is placed) in this distribution
35 before executing Makefile.PL.
37 The most preferable one is "The Default Unicode Collation Element Table"
38 (aka DUCET), available from the Unicode Consortium's website:
40 http://www.unicode.org/Public/UCA/
42 http://www.unicode.org/Public/UCA/latest/allkeys.txt (latest version)
44 If DUCET is not installed, it is recommended to copy the file
45 from http://www.unicode.org/Public/UCA/latest/allkeys.txt
46 to <a place in @INC>/Unicode/Collate/allkeys.txt
49 Though this distribution contains a subset of allkeys.txt, named "keys.txt",
50 this one is intended only for doing a test of this module
51 and practically useless for any other purpose.
53 To install this module type the following:
60 (!! XSUB for Unicode::Collate is an EXPERIMENTAL support !!)
61 If you have a C compiler and want to use XSUB edition,
62 type the following (!! "enableXS" must run before "Makefile.PL" !!):
70 If you decide to install pure Perl (i.e. non-XS) edition after trying
71 to build XSUB, type the following:
82 The conformant collation requires Unicode::Normalize (v 0.10 or later)
83 although Unicode::Collate can be used without Unicode::Normalize.
85 AUTHOR, COPYRIGHT AND LICENSE
87 The Unicode::Collate module for perl was written by SADAHIRO Tomoyuki,
88 <SADAHIRO@cpan.org>. This module is Copyright(C) 2001-2005,
89 SADAHIRO Tomoyuki. Japan. All rights reserved.
91 This module is free software; you can redistribute it and/or
92 modify it under the same terms as Perl itself.
94 The file Unicode/Collate/allkeys.txt was copied directly
95 from http://www.unicode.org/Public/UCA/4.1.0/allkeys.txt
96 This file is Copyright (c) 1991-2005 Unicode, Inc. All rights reserved.
97 Distributed under the Terms of Use in http://www.unicode.org/copyright.html