From 4bcee680245bb606c2ce06a304d78c1ac4c83134 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Mon, 3 Feb 2020 15:24:31 +0000 Subject: NFC normalization in python --- NFC | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 NFC (limited to 'NFC') 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)) + -- cgit v1.2.3