Commit | Line | Data |
1efaba7f |
1 | Unicode/Normalize version 0.22 |
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 | |
1efaba7f |
27 | Perl 5.6.1 or later |
ac5ea531 |
28 | |
45394607 |
29 | To install this module type the following: |
30 | |
31 | perl Makefile.PL |
32 | make |
33 | make test |
34 | make install |
35 | |
ac5ea531 |
36 | If you have a C compiler and want to use the XS version, |
37 | type the following: |
38 | |
39 | perl Makefile.PL xs |
40 | make |
41 | make test |
42 | make install |
43 | |
ab8fe378 |
44 | If you decide to install the NoXS version after trying to build the XS, |
45 | type the following: |
46 | |
47 | make clean |
48 | perl Makefile.PL noxs |
49 | make |
50 | make test |
51 | make install |
52 | |
45394607 |
53 | DEPENDENCIES |
54 | |
55 | This module requires these other modules and libraries: |
56 | |
57 | Carp |
58 | Exporter |
ac5ea531 |
59 | File::Copy |
45394607 |
60 | File::Spec |
45394607 |
61 | |
8f118dcd |
62 | unicore/CombiningClass.pl (or unicode/CombiningClass.pl) |
63 | unicore/Decomposition.pl (or unicode/Decomposition.pl) |
64 | unicore/CompositionExclusions.txt (or unicode/CompExcl.txt) |
ab8fe378 |
65 | |
8f118dcd |
66 | CAVEAT |
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 |
81 | COPYRIGHT 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. |