This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Upgrade to Unicode::Collate 0.28
[perl5.git] / lib / Unicode / Collate / README
CommitLineData
06c8fc8f 1Unicode/Collate version 0.28
45394607
JH
2===============================
3
caffd4cf 4NAME
45394607 5
caffd4cf 6 Unicode::Collate - Unicode Collation Algorithm
45394607
JH
7
8SYNOPSIS
9
10 use Unicode::Collate;
11
12 #construct
5398038e 13 $Collator = Unicode::Collate->new(%tailoring);
45394607
JH
14
15 #sort
5398038e 16 @sorted = $Collator->sort(@not_sorted);
45394607
JH
17
18 #compare
5398038e
TS
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)
45394607
JH
22
23INSTALLATION
24
4d36a948 25Perl 5.6.1 or later
45394607
JH
26
27To install this module type the following:
28
29 perl Makefile.PL
30 make
31 make test
32 make install
33
caffd4cf
TS
34To use this module, it is better to install a table file in the UCA format,
35by copying it into the lib/Unicode/Collate directory.
36
37The most preferable one is "The Default Unicode Collation Element Table",
38available from the Unicode consortium's website:
39
40 http://www.unicode.org/reports/tr10/allkeys.txt
41
42Though this distribution contains a subset of allkeys.txt, named "keys.txt",
43this one is intended only for doing a test of this module
44and practically useless for any other purpose.
45
45394607
JH
46DEPENDENCIES
47
0116f5dc 48 The conformant collation requires Unicode::Normalize (v 0.10 or later)
809c7673 49 although Unicode::Collate can be used without Unicode::Normalize.
45394607
JH
50
51COPYRIGHT AND LICENCE
52
4d36a948 53SADAHIRO Tomoyuki <SADAHIRO@cpan.org>
45394607
JH
54
55 http://homepage1.nifty.com/nomenclator/perl/
56
ae6aa562 57 Copyright(C) 2001-2003, SADAHIRO Tomoyuki. Japan. All rights reserved.
45394607 58
809c7673
TS
59 This library is free software; you can redistribute it
60 and/or modify it under the same terms as Perl itself.
45394607 61