Artifact c3de721fb6bf778338c5ba8296646042b25755e423c5cef55a8c419af0568b27:
- File doc/markdown/Tcl/unicode.md — part of check-in [b84ce0eee1] at 2026-10-04 22:10:02 on branch tip-700 — file location re-organisation (part 1) (user: Torsten, size: 1776) [annotate] [blame] [check-ins using]
- File doc/markdown/unicode.md — part of check-in [5e80e55e41] at 2026-09-26 22:40:07 on branch tip-700 — - added a "title" metadata element to the generated yaml block to satisfy Pandoc when converting to HTML - added markdown2html.tcl as prototype/placeholder of conversion script markdown -> HTML - added some CSS to play with a good visual representation of the generated HTML, starting with the n section pages - fixed man2markdown.tcl not giving the two .TP/.IP parsing places the same treatment (user: Torsten, size: 1776) [annotate] [blame] [check-ins using]
CommandName: unicode title: 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.