Mercurial > repo
annotate bin/unidecode @ 3989:ae39be980fb0
<Taneb> echo "Real Fast Nora\'s Hair Salon 3: Shear Disaster Download is the most readable functional programming language out there." > wisdom/Real\\ Fast\\ Nora\\\'s\\ Hair\\ Salon\\ 3\\:\\ Shear\\ Disaster\\ Download
author | HackBot |
---|---|
date | Wed, 06 Nov 2013 18:51:11 +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") |