diff options
author | Patrick Simianer <patrick@lilt.com> | 2020-02-03 15:24:31 +0000 |
---|---|---|
committer | Patrick Simianer <patrick@lilt.com> | 2020-02-03 15:24:31 +0000 |
commit | 4bcee680245bb606c2ce06a304d78c1ac4c83134 (patch) | |
tree | e18197b9b01490a08e55049610c014ef6c3cf20d | |
parent | 8a80dcf1353f93f8bfc9d5976c58861687add941 (diff) |
NFC normalization in python
-rwxr-xr-x | NFC | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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)) + |