Filewatcher File Search File Search
Content Search
» » » » » » perl-Unicode-Collate-0.72-1.el5.rf.i386.rpm » Content »
pkg://perl-Unicode-Collate-0.72-1.el5.rf.i386.rpm:816439/usr/share/doc/perl-Unicode-Collate-0.72/  info  HEADER  downloads

perl-Unicode-Collate - Perl module that implements Unicode Collation Algorithm…  more info»


Unicode/Collate version 0.72


  Unicode::Collate - Unicode Collation Algorithm


  use Unicode::Collate;

  $Collator = Unicode::Collate->new(%tailoring);

  @sorted = $Collator->sort(@not_sorted);

  $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.


  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/,
  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 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 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 test
   make install


  The conformant collation requires Unicode::Normalize (v 0.10 or later)
  although Unicode::Collate can be used without Unicode::Normalize.


  Though this module can be used without any C<table> file,
  to use this module easily, it is recommended to install a table file
  in the UCA format, by copying it under the directory
  <a place in @INC>/Unicode/Collate.

  You can install such a table file by adding it to "Collate" directory
  (where "keys.txt" is placed) in this distribution before executing

  The most preferable one is "The Default Unicode Collation Element Table"
  (aka DUCET), available from the Unicode Consortium's website: (latest version)

  If DUCET is not installed, it is recommended to copy the file
  to <a place in @INC>/Unicode/Collate/allkeys.txt manually.


  0. rewriting UCA_Version and Base_Unicode_Version in
     and t/version.t is preferred.
  1. replace Collate/allkeys.txt with a new DUCET.
  2. run mklocale to generate new Locale/*.pl and
  3. replace Collate/Locale/*.pl with the new Locale/*.pl,
     and Collate/CJK/ with the new
  4. make test.
     IF FAIL, it may require more changes, not be easy.


The Unicode::Collate module for perl was written by SADAHIRO Tomoyuki,
<>. This module is Copyright(C) 2001-2011,
SADAHIRO Tomoyuki. Japan. All rights reserved.

This module is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.

The file Unicode/Collate/allkeys.txt was copied verbatim
This file is Copyright (c) 1991-2009 Unicode, Inc. All rights reserved.
Distributed under the Terms of Use in
Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2017