Skip to content

Commit ff2fb40

Browse files
committed
add Tcl normalization
my first tcl code! @xantronix would be proud
1 parent 9d39b1c commit ff2fb40

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ free to add or improve examples and new languages.
5252
[Python](normalization/python.md),
5353
[R](normalization/r.md),
5454
[Ruby](normalization/ruby.md)
55+
[Tcl](normalization/tcl.md)
5556

5657
7. **Letter casing**
5758

normalization/tcl.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Unicode normalization in Tcl
2+
3+
Unicode normalization is available in the tcllib package
4+
[unicode](http://tcllib.sourceforge.net/doc/unicode.html).
5+
6+
```tcl
7+
package require unicode
8+
9+
set nfd [::unicode::normalizeS D $str]
10+
set nfc [::unicode::normalizeS C $str]
11+
set nfkd [::unicode::normalizeS KD $str]
12+
set nfkc [::unicode::normalizeS KC $str]
13+
```

0 commit comments

Comments
 (0)