def _transliterate(u, xlate):
 u = unicodedata.normalize('NFD', u)
 u = u''.join([(u'' if _is_unicode_combining(x) else x) for x in u])
 u = _translate(u, xlate)
 return unicode(u)

def _transliterate ( u , xlate ) : u = unicodedata . normalize ( 'NFD' , u ) u = u'' . join ( [ ( u'' if _is_unicode_combining ( x ) else x ) for x in u ] ) u = _translate ( u , xlate ) return unicode ( u )
perform transliteration using the specified dictionary .