unicode-programming/normalization/tcl.md at master · patch/unicode-programming

Skip to content

Navigation Menu

Sign in

Appearance settings

Latest commit

File metadata and controls

13 lines (10 loc) · 349 Bytes

Unicode normalization in Tcl

Unicode normalization is available in the tcllib package unicode.

package require unicode

set nfd  [::unicode::normalizeS D  $str]
set nfc  [::unicode::normalizeS C  $str]
set nfkd [::unicode::normalizeS KD $str]
set nfkc [::unicode::normalizeS KC $str]