summaryrefslogtreecommitdiff
path: root/NFC
diff options
context:
space:
mode:
authorPatrick Simianer <patrick@lilt.com>2020-02-03 15:24:31 +0000
committerPatrick Simianer <patrick@lilt.com>2020-02-03 15:24:31 +0000
commit4bcee680245bb606c2ce06a304d78c1ac4c83134 (patch)
treee18197b9b01490a08e55049610c014ef6c3cf20d /NFC
parent8a80dcf1353f93f8bfc9d5976c58861687add941 (diff)
NFC normalization in python
Diffstat (limited to 'NFC')
-rwxr-xr-xNFC9
1 files changed, 9 insertions, 0 deletions
diff --git a/NFC b/NFC
new file mode 100755
index 0000000..aec1c58
--- /dev/null
+++ b/NFC
@@ -0,0 +1,9 @@
+#!/usr/bin/env python
+
+import fileinput
+import unicodedata
+import sys
+
+for line in fileinput.input():
+ sys.stdout.write(unicodedata.normalize('NFC', line))
+