Add function for unicode NFC normalize.

This commit is contained in:
voussoir 2020-03-11 16:46:22 -07:00
parent f98364b814
commit da8d1d6224

View file

@ -16,6 +16,7 @@ import os
import random
import re
import sys
import unicodedata
from voussoirkit import getpermission
from voussoirkit import safeprint
@ -27,6 +28,8 @@ hyphen = '-'
quote = '"'
space = ' '
underscore = '_'
def unicode_normalize(s):
return unicodedata.normalize('NFC', s)
def brename(transformation, autoyes=False, recurse=False):
if recurse: