Commit | Line | Data |
e524f5b2 |
1 | Unicode/Normalize version 0.28 |
45394607 |
2 | =================================== |
3 | |
f027f502 |
4 | Unicode::Normalize - Unicode Normalization Forms |
45394607 |
5 | |
6 | SYNOPSIS |
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 | |
25 | INSTALLATION |
26 | |
e524f5b2 |
27 | Perl 5.6.1 or later. |
28 | (Perl 5.8.0 or later is recommended.) |
ac5ea531 |
29 | |
82e740b6 |
30 | To 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 |
37 | If you want to install pure Perl (i.e. no-XSUB), |
38 | type 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 |
46 | After building no-XSUB, if you decide to install XSUB, |
47 | type 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 |
56 | DEPENDENCIES |
57 | |
82e740b6 |
58 | This module requires other modules and libraries following: |
45394607 |
59 | |
60 | Carp |
61 | Exporter |
ac5ea531 |
62 | File::Copy |
45394607 |
63 | File::Spec |
45394607 |
64 | |
8f118dcd |
65 | unicore/CombiningClass.pl (or unicode/CombiningClass.pl) |
66 | unicore/Decomposition.pl (or unicode/Decomposition.pl) |
67 | unicore/CompositionExclusions.txt (or unicode/CompExcl.txt) |
ab8fe378 |
68 | |
8f118dcd |
69 | CAVEAT |
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 |
87 | COPYRIGHT AND LICENCE |
88 | |
e524f5b2 |
89 | SADAHIRO Tomoyuki <SADAHIRO@cpan.org> |
45394607 |
90 | |
91 | http://homepage1.nifty.com/nomenclator/perl/ |
92 | |
6c941e0c |
93 | Copyright(C) 2001-2003, 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. |