Sort/UCA version 0.03 =============================== use UCA (Unicode Collation Algorithm) See UCA - Unicode TR #10. http://www.unicode.org/unicode/reports/tr10/ Fetch the following file before use (and put into the Sort/UCA dir). http://www.unicode.org/unicode/reports/tr10/allkeys.txt You can install this module using a subset "keys.txt" in this distribution without "allkeys.txt". SYNOPSIS use Sort::UCA; #construct $UCA = Sort::UCA->new(%tailoring); #sort @sorted = $UCA->sort(@not_sorted); #compare $result = $UCA->cmp($a, $b); # returns 1, 0, or -1. INSTALLATION To install this module type the following: perl Makefile.PL make make test make install DEPENDENCIES Perl 5.006 or later Carp, Exporter, Lingua::KO::Hangul::Util. BUGS At present, this module cannot compose nor decompose strings, and you must pass either the well-composed or the well-decomposed strings in the sort or cmp methods, or (?:de)?compose strings by preprocessing. e.g. a comparison of canonical equivalents, $UCA->cmp( "A\x{0301}", # LATIN CAPITAL LETTER A, COMBINING ACUTE ACCENT "\x{00C1}", # LATIN CAPITAL LETTER A WITH ACUTE ) must return 0, but does not. COPYRIGHT AND LICENCE SADAHIRO Tomoyuki http://homepage1.nifty.com/nomenclator/perl/ Copyright(C) 2001, SADAHIRO Tomoyuki. Japan. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.