Artifact a7657016c6394efba59e04e04999066a99f95a8fa3c001e97bc364df79cc0f93:
- File doc/markdown/unicode.md — part of check-in [321b67167b] at 2026-09-22 22:01:30 on branch tip-700 — - corrected over-agressive removal of empty lines, corrupting some divs - added some missing nroff escape sequences - CrtChannel.3: removed am additional and unnecessary .PP leaving an orphaned TIP220 behind - more ugly code to get the TIP markers across (or not) (user: Torsten, size: 1761) [annotate] [blame] [check-ins using]
CommandName: unicode ManualSection: n Version: 9.1 TclPart: Tcl TclDescription: Tcl Built-In Commands Links:
- Tcl_UtfToNormalized(3) Keywords:
- Unicode
- normalize Copyright:
- Copyright (c) 2025 Ashok P. Nadkarni. ---
Name
unicode - Unicode character transforms
Synopsis
::: {.synopsis} ::: [unicode]{.cmd} [function]{.arg} [options]{.optarg} [string]{.arg} :::
Description
The command performs one of several Unicode character transformations, depending on function which may take the values described below.
[unicode]{.cmd version="TIP726"} [tonfc]{.sub} [[-profile]{.lit} [profile]{.arg}]{.optarg} [string]{.arg} : Returns string normalized as per Unicode Normalization Form C (NFC).
[unicode]{.cmd version="TIP726"} [tonfd]{.sub} [[-profile]{.lit} [profile]{.arg}]{.optarg} [string]{.arg} : Returns string normalized as per Unicode Normalization Form D (NFD).
[unicode]{.cmd version="TIP726"} [tonfkc]{.sub} [[-profile]{.lit} [profile]{.arg}]{.optarg} [string]{.arg} : Returns string normalized as per Unicode Normalization Form KC (NFKC).
[unicode]{.cmd version="TIP726"} [tonfkd]{.sub} [[-profile]{.lit} [profile]{.arg}]{.optarg} [string]{.arg} : 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.