summaryrefslogtreecommitdiff
path: root/sys/src/cmd/tcs/tcs.c
diff options
context:
space:
mode:
authorJacob Moody <moody@posixcafe.org>2023-03-27 03:45:32 +0000
committerJacob Moody <moody@posixcafe.org>2023-03-27 03:45:32 +0000
commitd2753b4d5f877b14426b55554945863364b0fbbf (patch)
treee9e4adb115c54c6ee14062d7a109fd9e1e49f72a /sys/src/cmd/tcs/tcs.c
parente0d114547c7f54ebd32b69f922e7d6538a63636e (diff)
tcs: add nfc and nfd output formats
Diffstat (limited to 'sys/src/cmd/tcs/tcs.c')
-rw-r--r--sys/src/cmd/tcs/tcs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/src/cmd/tcs/tcs.c b/sys/src/cmd/tcs/tcs.c
index e3ed46705..229059574 100644
--- a/sys/src/cmd/tcs/tcs.c
+++ b/sys/src/cmd/tcs/tcs.c
@@ -613,6 +613,10 @@ struct convert convert[] =
{ "utf-16be", "alias for unicode-be (MIME)", Func, 0, (Fnptr)unicode_out_be },
{ "utf-16le", "alias for unicode-le (MIME)", From|Func, 0, (Fnptr)unicode_in_le },
{ "utf-16le", "alias for unicode-le (MIME)", Func, 0, (Fnptr)unicode_out_le },
+ { "nfc", "Unicode Normalization Form C", From|Func, 0, (Fnptr)utf_in },
+ { "nfc", "Unicode Normalization Form C", Func, 0, (Fnptr)utfnfc_out },
+ { "nfd", "Unicode Normalization Form D", From|Func, 0, (Fnptr)utf_in },
+ { "nfd", "Unicode Normalization Form D", Func, 0, (Fnptr)utfnfd_out },
{ "viet1", "Vietnamese VSCII-1 (1993)", Table, (void *)tabviet1 },
{ "viet2", "Vietnamese VSCII-2 (1993)", Table, (void *)tabviet2 },
{ "vscii", "Vietnamese VISCII 1.1 (1992)", Table, (void *)tabviscii },