- NAME
- unicode — Unicode character transforms
- SYNOPSIS
- DESCRIPTION
- unicode tonfc ?-profile profile? string
- unicode tonfd ?-profile profile? string
- unicode tonfkc ?-profile profile? string
- unicode tonfkd ?-profile profile? string
- SEE ALSO
- KEYWORDS
unicode — Unicode character transforms
unicode function ?options? string
The command performs one of several Unicode character transformations, depending on
function which may take the values described below.
- unicode tonfc ?-profile profile? string
-
Returns string normalized as per Unicode Normalization Form C (NFC).
- unicode tonfd ?-profile profile? string
-
Returns string normalized as per Unicode Normalization Form D (NFD).
- unicode tonfkc ?-profile profile? string
-
Returns string normalized as per Unicode Normalization Form KC (NFKC).
- unicode tonfkd ?-profile profile? string
-
Returns string normalized as per Unicode Normalization Form KD (NFKD).
The normalization forms NFC, NFD, NFKC and NFKD referenced above are defined
in Section 3.11 of the Unicode standard
(see https://www.unicode.org/versions/Unicode16.0.0/core-spec/chapter-3/).
The -profile option determines the command behavior in the presence
of conversion errors. The passed profile must be strict or replace.
See the PROFILES section in the documentation
of the encoding command for details on profiles.
Tcl_UtfToNormalized
Unicode, normalize
Copyright © 2025 Ashok P. Nadkarni.