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