Mercurial > repo
annotate bin/unidecode @ 12268:6bbbe2a95120 draft
<b_jonas> slashlearn euclid//Euclid is a short geeky game in which the goal is to do Euclidean compass and straightedge constructions in as few steps as possible. It runs in the browser, found at "http://www.euclidthegame.com/". It was popular among #esoteric regulars in 2016-07.
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Mon, 16 Dec 2019 23:02:52 +0000 |
parents | c3351169a617 |
children |
rev | line source |
---|---|
5643 | 1 #!/usr/bin/env python |
2 import os, sys | |
3 import unicodedata | |
4 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") | |
5 if u"DUNNO" in s: | |
11148
c3351169a617
<fizzie> ` sed -i -e \'s/multicode/singlecode/g\' bin/unidecode
HackBot
parents:
5643
diff
changeset
|
6 os.execvp("singlecode", ["singlecode"] + sys.argv[1:]) |
5643 | 7 else: |
8 print s |