Upgrade to Unicode::Normalize 0.21 and Unicode::Collate 0.24,
[p5sagit/p5-mst-13.2.git] / ext / Unicode / Normalize / README
CommitLineData
9f1f04a1 1Unicode/Normalize version 0.21
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
8f118dcd 27Perl 5.6 or later
ac5ea531 28
45394607 29To install this module type the following:
30
31 perl Makefile.PL
32 make
33 make test
34 make install
35
ac5ea531 36If you have a C compiler and want to use the XS version,
37type the following:
38
39 perl Makefile.PL xs
40 make
41 make test
42 make install
43
ab8fe378 44If you decide to install the NoXS version after trying to build the XS,
45type the following:
46
47 make clean
48 perl Makefile.PL noxs
49 make
50 make test
51 make install
52
45394607 53DEPENDENCIES
54
55This module requires these other modules and libraries:
56
57Carp
58Exporter
ac5ea531 59File::Copy
45394607 60File::Spec
45394607 61
8f118dcd 62unicore/CombiningClass.pl (or unicode/CombiningClass.pl)
63unicore/Decomposition.pl (or unicode/Decomposition.pl)
64unicore/CompositionExclusions.txt (or unicode/CompExcl.txt)
ab8fe378 65
8f118dcd 66CAVEAT
ab8fe378 67
f027f502 68(1) In the perl-current, unicore/CompExcl.txt
69 is renamed unicore/CompositionExclusions.txt.
ab8fe378 70
6c941e0c 71(2) After these unicore/*.* files are updated.
ab8fe378 72
6c941e0c 73 In the case of an XS version:
8f118dcd 74 You must rebuild the module,
75 as the data will be compiled on building.
76
6c941e0c 77 In the case of a NoXS version:
8f118dcd 78 Rebuilding is not necessary,
79 as the data will be read on requirement.
2a204b45 80
45394607 81COPYRIGHT AND LICENCE
82
8f118dcd 83 SADAHIRO Tomoyuki
84
85 SADAHIRO@cpan.org
45394607 86
87 http://homepage1.nifty.com/nomenclator/perl/
88
6c941e0c 89 Copyright(C) 2001-2003, SADAHIRO Tomoyuki. Japan. All rights reserved.
45394607 90
6c941e0c 91 This module is free software; you can redistribute it
92 and/or modify it under the same terms as Perl itself.