view bin/unidecode @ 5232:8e51f494e522

<int-e> ` echo \'welcome "$@" | sed s/\\\\\\<.//g\' > bin/elcome
author HackBot
date Sat, 03 Jan 2015 22:58:33 +0000
parents 940c1732e450
children
line wrap: on
line source

#!/usr/bin/env python
import os, sys
import unicodedata
s = u" ".join("[U+{0:04X} {1}]".format(ord(c), unicodedata.name(c, "DUNNO")) for c in " ".join(sys.argv[1:]).decode("utf-8")).encode("utf-8")
if u"DUNNO" in s:
  os.execvp("multicode", ["multicode"] + sys.argv[1:])
else:
  print s