Upgrade to Unicode-Normalize-1.00
[p5sagit/p5-mst-13.2.git] / ext / Unicode / Normalize / README
CommitLineData
fe067ad9 1Unicode/Normalize version 1.00
45394607 2===================================
3
f027f502 4Unicode::Normalize - Unicode Normalization Forms
45394607 5
6SYNOPSIS
7
8 use Unicode::Normalize;
9
8f118dcd 10 $NFD_string = NFD($string); # Normalization Form D
11 $NFC_string = NFC($string); # Normalization Form C
12 $NFKD_string = NFKD($string); # Normalization Form KD
13 $NFKC_string = NFKC($string); # Normalization Form KC
14
8f118dcd 15 or
45394607 16
45394607 17 use Unicode::Normalize 'normalize';
18
8f118dcd 19 $NFD_string = normalize('D', $string); # Normalization Form D
20 $NFC_string = normalize('C', $string); # Normalization Form C
21 $NFKD_string = normalize('KD', $string); # Normalization Form KD
22 $NFKC_string = normalize('KC', $string); # Normalization Form KC
23
45394607 24
25INSTALLATION
26
e524f5b2 27Perl 5.6.1 or later.
28(Perl 5.8.0 or later is recommended.)
ac5ea531 29
82e740b6 30To install this module (XSUB: needs a C compiler), type the following:
45394607 31
32 perl Makefile.PL
33 make
34 make test
35 make install
36
82e740b6 37If you want to install pure Perl (i.e. no-XSUB),
38type the following (!! "disableXS" must run before "Makefile.PL" !!):
ac5ea531 39
82e740b6 40 perl disableXS
41 perl Makefile.PL
ac5ea531 42 make
43 make test
44 make install
45
82e740b6 46After building no-XSUB, if you decide to install XSUB,
47type the following (!! "enableXS" must run before "Makefile.PL" !!):
ab8fe378 48
49 make clean
82e740b6 50 perl enableXS
51 perl Makefile.PL
ab8fe378 52 make
53 make test
54 make install
55
45394607 56DEPENDENCIES
57
82e740b6 58This module requires other modules and libraries following:
45394607 59
60Carp
61Exporter
ac5ea531 62File::Copy
45394607 63File::Spec
45394607 64
8f118dcd 65unicore/CombiningClass.pl (or unicode/CombiningClass.pl)
66unicore/Decomposition.pl (or unicode/Decomposition.pl)
67unicore/CompositionExclusions.txt (or unicode/CompExcl.txt)
ab8fe378 68
8f118dcd 69CAVEAT
ab8fe378 70
f027f502 71(1) In the perl-current, unicore/CompExcl.txt
72 is renamed unicore/CompositionExclusions.txt.
ab8fe378 73
6c941e0c 74(2) After these unicore/*.* files are updated.
ab8fe378 75
82e740b6 76 In the case of an XS edition:
8f118dcd 77 You must rebuild the module,
78 as the data will be compiled on building.
79
82e740b6 80 In the case of a pure Perl edition:
8f118dcd 81 Rebuilding is not necessary,
82 as the data will be read on requirement.
2a204b45 83
82e740b6 84(3) Pure Perl edition, Normalize.pmN, may work without any other file
85 in this distribution (it must be renamed Normalize.pm, though)
86
45394607 87COPYRIGHT AND LICENCE
88
e524f5b2 89 SADAHIRO Tomoyuki <SADAHIRO@cpan.org>
45394607 90
91 http://homepage1.nifty.com/nomenclator/perl/
92
fe067ad9 93 Copyright(C) 2001-2006, SADAHIRO Tomoyuki. Japan. All rights reserved.
45394607 94
6c941e0c 95 This module is free software; you can redistribute it
96 and/or modify it under the same terms as Perl itself.