Mercurial > repo
annotate bin/unidecode @ 3911:8c112ffd5765
<kmc> addquote zzo38 [~zzo38@24-207-49-17.eastlink.ca] has quit [Quit: I need the stats for the small leech, not the big one. So, if you write it on here while I am gone then when I return I will check.]
author | HackBot |
---|---|
date | Tue, 15 Oct 2013 22:19:50 +0000 |
parents | b538b5f005ab |
children |
rev | line source |
---|---|
3896
53c912731c30
<fizzie> printf \'%s\\n\' \'#!/usr/bin/env python\' \'import sys\' \'import unicodedata\' \'print u" ".join("[{0}]".format(unicodedata.name(c, "DUNNO")) for c in sys.argv[1:].decode("utf-8")).encode("utf-8")\' > bin/unidecode
HackBot
parents:
diff
changeset
|
1 #!/usr/bin/env python |
53c912731c30
<fizzie> printf \'%s\\n\' \'#!/usr/bin/env python\' \'import sys\' \'import unicodedata\' \'print u" ".join("[{0}]".format(unicodedata.name(c, "DUNNO")) for c in sys.argv[1:].decode("utf-8")).encode("utf-8")\' > bin/unidecode
HackBot
parents:
diff
changeset
|
2 import sys |
53c912731c30
<fizzie> printf \'%s\\n\' \'#!/usr/bin/env python\' \'import sys\' \'import unicodedata\' \'print u" ".join("[{0}]".format(unicodedata.name(c, "DUNNO")) for c in sys.argv[1:].decode("utf-8")).encode("utf-8")\' > bin/unidecode
HackBot
parents:
diff
changeset
|
3 import unicodedata |
3901
b538b5f005ab
<fizzie> printf \'%s\\n\' \'#!/usr/bin/env python\' \'import sys\' \'import unicodedata\' \'print 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")\' > bin/unidecode
HackBot
parents:
3900
diff
changeset
|
4 print 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") |