This manual page is for Mac OS X version 10.6.3

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.




unicode(n)                                  Unicode normalization                                 unicode(n)



____________________________________________________________________________________________________________

NAME
       unicode - Implementation of Unicode normalization

SYNOPSIS
       package require Tcl  8.3

       package require unicode  1.0

       ::unicode::fromstring string

       ::unicode::tostring uclist

       ::unicode::normalize form uclist

       ::unicode::normalizeS form string

____________________________________________________________________________________________________________

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

COMMANDS
       ::unicode::fromstring string
              Converts string to list of integer Unicode character codes which is used in unicode for inter-nal internal
              nal string representation.

       ::unicode::tostring uclist
              Converts list of integers uclist back to Tcl string.

       ::unicode::normalize form uclist
              Normalizes Unicode characters list ulist according to form and returns  the  normalized  list.
              Form  form takes one of the following values: D (canonical decomposition), C (canonical decom-position, decomposition,
              position, followed by canonical composition), KD (compatibility decomposition), or KC (compat-ibility (compatibility
              ibility decomposition, followed by canonical composition).

       ::unicode::normalizeS form string
              A   shortcut   to   ::unicode::tostring   [unicode::normalize   \$form  [::unicode::fromstring
              \$string]].  Normalizes Tcl string and returns normalized string.


EXAMPLES
       % ::unicode::fromstring "\u0410\u0411\u0412\u0413"
       1040 1041 1042 1043
       % ::unicode::tostring {49 50 51 52 53}
       12345
       %


       % ::unicode::normalize D {7692 775}
       68 803 775
       % ::unicode::normalizeS KD "\u1d2c"
       A
       %


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


AUTHORS
       Sergei Golovan

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

SEE ALSO
       stringprep(n)

KEYWORDS
       normalization, unicode

COPYRIGHT
       Copyright (c) 2007, Sergei Golovan <sgolovan@nes.ru>




stringprep                                          1.0.0                                         unicode(n)

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Did this document help you? Yes It's good, but... Not helpful...