1unicode(n)                   Unicode normalization                  unicode(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       unicode - Implementation of Unicode normalization
9

SYNOPSIS

11       package require Tcl  8.3
12
13       package require unicode  1.0
14
15       ::unicode::fromstring string
16
17       ::unicode::tostring uclist
18
19       ::unicode::normalize form uclist
20
21       ::unicode::normalizeS form string
22
23_________________________________________________________________
24

DESCRIPTION

26       This is an implementation in Tcl of the Unicode normalization forms.
27

COMMANDS

29       ::unicode::fromstring string
30              Converts string to list of integer Unicode character codes which
31              is used in unicode for internal string representation.
32
33       ::unicode::tostring uclist
34              Converts list of integers uclist back to Tcl string.
35
36       ::unicode::normalize form uclist
37              Normalizes Unicode characters list ulist according to  form  and
38              returns  the normalized list. Form form takes one of the follow‐
39              ing values: D (canonical decomposition), C (canonical decomposi‐
40              tion,  followed  by  canonical  composition),  KD (compatibility
41              decomposition), or KC (compatibility decomposition, followed  by
42              canonical composition).
43
44       ::unicode::normalizeS form string
45              A  shortcut  to  ::unicode::tostring  [unicode::normalize \$form
46              [::unicode::fromstring \$string]].  Normalizes  Tcl  string  and
47              returns normalized string.
48

EXAMPLES

50       % ::unicode::fromstring "\u0410\u0411\u0412\u0413"
51       1040 1041 1042 1043
52       % ::unicode::tostring {49 50 51 52 53}
53       12345
54       %
55
56
57       % ::unicode::normalize D {7692 775}
58       68 803 775
59       % ::unicode::normalizeS KD "\u1d2c"
60       A
61       %
62
63

REFERENCES

65       [1]    "Unicode  Standard  Annex  #15:  Unicode  Normalization  Forms",
66              (http://unicode.org/reports/tr15/)
67

AUTHORS

69       Sergei Golovan
70

BUGS, IDEAS, FEEDBACK

72       This document, and the package it describes, will  undoubtedly  contain
73       bugs and other problems.  Please report such in the category stringprep
74       of       the       Tcllib       SF       Trackers       [http://source
75       forge.net/tracker/?group_id=12883].   Please  also report any ideas for
76       enhancements you may have for either package and/or documentation.
77

SEE ALSO

79       stringprep(n)
80

KEYWORDS

82       normalization, unicode
83
85       Copyright (c) 2007, Sergei Golovan <sgolovan@nes.ru>
86
87
88
89
90stringprep                           1.0.0                          unicode(n)
Impressum