Reformat the character table, as suggested by Sanky.

This commit is contained in:
IIMarckus 2012-03-05 00:16:56 -07:00
parent d5fe70b03b
commit 89a76e887d

View File

@ -3,267 +3,267 @@
import sys
chars = {}
chars[""] = "$05"
chars[""] = "$06"
chars[""] = "$07"
chars[""] = "$08"
chars[""] = "$09"
chars[""] = "$0A"
chars[""] = "$0B"
chars[""] = "$0C"
chars[""] = "$0D"
chars[""] = "$0E"
chars[""] = "$0F"
chars[""] = "$10"
chars[""] = "$11"
chars[""] = "$12"
chars[""] = "$13"
chars[""] = "$19"
chars[""] = "$1A"
chars[""] = "$1B"
chars[""] = "$1C"
chars[""] = "$26"
chars[""] = "$27"
chars[""] = "$28"
chars[""] = "$29"
chars[""] = "$2A"
chars[""] = "$2B"
chars[""] = "$2C"
chars[""] = "$2D"
chars[""] = "$2E"
chars[""] = "$2F"
chars[""] = "$30"
chars[""] = "$31"
chars[""] = "$32"
chars[""] = "$33"
chars[""] = "$34"
chars[""] = "$3A"
chars[""] = "$3B"
chars[""] = "$3C"
chars[""] = "$3D"
chars[""] = "$3E"
chars[""] = "$40"
chars[""] = "$41"
chars[""] = "$42"
chars[""] = "$43"
chars[""] = "$44"
chars[""] = "$45"
chars[""] = "$46"
chars[""] = "$47"
chars[""] = "$48"
chars[""] = "$80"
chars[""] = "$81"
chars[""] = "$82"
chars[""] = "$83"
chars[""] = "$84"
chars[""] = "$85"
chars[""] = "$86"
chars[""] = "$87"
chars[""] = "$88"
chars[""] = "$89"
chars[""] = "$8A"
chars[""] = "$8B"
chars[""] = "$8C"
chars[""] = "$8D"
chars[""] = "$8E"
chars[""] = "$8F"
chars[""] = "$90"
chars[""] = "$91"
chars[""] = "$92"
chars[""] = "$93"
chars[""] = "$94"
chars[""] = "$95"
chars[""] = "$96"
chars[""] = "$97"
chars[""] = "$98"
chars[""] = "$99"
chars[""] = "$9A"
chars[""] = "$9B"
chars[""] = "$9C"
chars[""] = "$9D"
chars[""] = "$9E"
chars[""] = "$9F"
chars[""] = "$A0"
chars[""] = "$A1"
chars[""] = "$A2"
chars[""] = "$A3"
chars[""] = "$A4"
chars[""] = "$A5"
chars[""] = "$A6"
chars[""] = "$A7"
chars[""] = "$A8"
chars[""] = "$A9"
chars[""] = "$AA"
chars[""] = "$AB"
chars[""] = "$AC"
chars[""] = "$AD"
chars[""] = "$AE"
chars[""] = "$AF"
chars[""] = "$B0"
chars[""] = "$B1"
chars[""] = "$B2"
chars[""] = "$B3"
chars[""] = "$B4"
chars[""] = "$B5"
chars[""] = "$B6"
chars[""] = "$B7"
chars[""] = "$B8"
chars[""] = "$B9"
chars[""] = "$BA"
chars[""] = "$BB"
chars[""] = "$BC"
chars[""] = "$BD"
chars[""] = "$BE"
chars[""] = "$BF"
chars[""] = "$C0"
chars[""] = "$C1"
chars[""] = "$C2"
chars[""] = "$C3"
chars[""] = "$C4"
chars[""] = "$C5"
chars[""] = "$C6"
chars[""] = "$C7"
chars[""] = "$C8"
chars[""] = "$C9"
chars[""] = "$CA"
chars[""] = "$CB"
chars[""] = "$CC"
chars[""] = "$CD"
chars[""] = "$CE"
chars[""] = "$CF"
chars[""] = "$D0"
chars[""] = "$D1"
chars[""] = "$D2"
chars[""] = "$D3"
chars[""] = "$D4"
chars[""] = "$D5"
chars[""] = "$D6"
chars[""] = "$D7"
chars[""] = "$D8"
chars[""] = "$D9"
chars[""] = "$DA"
chars[""] = "$DB"
chars[""] = "$DC"
chars[""] = "$DD"
chars[""] = "$DE"
chars[""] = "$DF"
chars[""] = "$E0"
chars[""] = "$E1"
chars[""] = "$E2"
chars[""] = "$E3"
chars = {
"": 0x05,
"": 0x06,
"": 0x07,
"": 0x08,
"": 0x09,
"": 0x0A,
"": 0x0B,
"": 0x0C,
"": 0x0D,
"": 0x0E,
"": 0x0F,
"": 0x10,
"": 0x11,
"": 0x12,
"": 0x13,
"": 0x19,
"": 0x1A,
"": 0x1B,
"": 0x1C,
"": 0x26,
"": 0x27,
"": 0x28,
"": 0x29,
"": 0x2A,
"": 0x2B,
"": 0x2C,
"": 0x2D,
"": 0x2E,
"": 0x2F,
"": 0x30,
"": 0x31,
"": 0x32,
"": 0x33,
"": 0x34,
"": 0x3A,
"": 0x3B,
"": 0x3C,
"": 0x3D,
"": 0x3E,
"": 0x40,
"": 0x41,
"": 0x42,
"": 0x43,
"": 0x44,
"": 0x45,
"": 0x46,
"": 0x47,
"": 0x48,
"": 0x80,
"": 0x81,
"": 0x82,
"": 0x83,
"": 0x84,
"": 0x85,
"": 0x86,
"": 0x87,
"": 0x88,
"": 0x89,
"": 0x8A,
"": 0x8B,
"": 0x8C,
"": 0x8D,
"": 0x8E,
"": 0x8F,
"": 0x90,
"": 0x91,
"": 0x92,
"": 0x93,
"": 0x94,
"": 0x95,
"": 0x96,
"": 0x97,
"": 0x98,
"": 0x99,
"": 0x9A,
"": 0x9B,
"": 0x9C,
"": 0x9D,
"": 0x9E,
"": 0x9F,
"": 0xA0,
"": 0xA1,
"": 0xA2,
"": 0xA3,
"": 0xA4,
"": 0xA5,
"": 0xA6,
"": 0xA7,
"": 0xA8,
"": 0xA9,
"": 0xAA,
"": 0xAB,
"": 0xAC,
"": 0xAD,
"": 0xAE,
"": 0xAF,
"": 0xB0,
"": 0xB1,
"": 0xB2,
"": 0xB3,
"": 0xB4,
"": 0xB5,
"": 0xB6,
"": 0xB7,
"": 0xB8,
"": 0xB9,
"": 0xBA,
"": 0xBB,
"": 0xBC,
"": 0xBD,
"": 0xBE,
"": 0xBF,
"": 0xC0,
"": 0xC1,
"": 0xC2,
"": 0xC3,
"": 0xC4,
"": 0xC5,
"": 0xC6,
"": 0xC7,
"": 0xC8,
"": 0xC9,
"": 0xCA,
"": 0xCB,
"": 0xCC,
"": 0xCD,
"": 0xCE,
"": 0xCF,
"": 0xD0,
"": 0xD1,
"": 0xD2,
"": 0xD3,
"": 0xD4,
"": 0xD5,
"": 0xD6,
"": 0xD7,
"": 0xD8,
"": 0xD9,
"": 0xDA,
"": 0xDB,
"": 0xDC,
"": 0xDD,
"": 0xDE,
"": 0xDF,
"": 0xE0,
"": 0xE1,
"": 0xE2,
"": 0xE3,
chars["@"] = "$50"
chars["#"] = "$54"
chars[""] = "$75"
"@": 0x50,
"#": 0x54,
"": 0x75,
# textbox borders
chars[""] = "$79"
chars[""] = "$7A"
chars[""] = "$7B"
chars[""] = "$7C"
chars[""] = "$7D"
chars[""] = "$7E"
"": 0x79,
"": 0x7A,
"": 0x7B,
"": 0x7C,
"": 0x7D,
"": 0x7E,
chars[""] = "$74"
"": 0x74,
chars[" "] = "$7F"
chars["A"] = "$80"
chars["B"] = "$81"
chars["C"] = "$82"
chars["D"] = "$83"
chars["E"] = "$84"
chars["F"] = "$85"
chars["G"] = "$86"
chars["H"] = "$87"
chars["I"] = "$88"
chars["J"] = "$89"
chars["K"] = "$8A"
chars["L"] = "$8B"
chars["M"] = "$8C"
chars["N"] = "$8D"
chars["O"] = "$8E"
chars["P"] = "$8F"
chars["Q"] = "$90"
chars["R"] = "$91"
chars["S"] = "$92"
chars["T"] = "$93"
chars["U"] = "$94"
chars["V"] = "$95"
chars["W"] = "$96"
chars["X"] = "$97"
chars["Y"] = "$98"
chars["Z"] = "$99"
chars["("] = "$9A"
chars[")"] = "$9B"
chars[":"] = "$9C"
chars[";"] = "$9D"
chars["["] = "$9E"
chars["]"] = "$9F"
chars["a"] = "$A0"
chars["b"] = "$A1"
chars["c"] = "$A2"
chars["d"] = "$A3"
chars["e"] = "$A4"
chars["f"] = "$A5"
chars["g"] = "$A6"
chars["h"] = "$A7"
chars["i"] = "$A8"
chars["j"] = "$A9"
chars["k"] = "$AA"
chars["l"] = "$AB"
chars["m"] = "$AC"
chars["n"] = "$AD"
chars["o"] = "$AE"
chars["p"] = "$AF"
chars["q"] = "$B0"
chars["r"] = "$B1"
chars["s"] = "$B2"
chars["t"] = "$B3"
chars["u"] = "$B4"
chars["v"] = "$B5"
chars["w"] = "$B6"
chars["x"] = "$B7"
chars["y"] = "$B8"
chars["z"] = "$B9"
chars["Ä"] = "$C0"
chars["Ö"] = "$C1"
chars["Ü"] = "$C2"
chars["ä"] = "$C3"
chars["ö"] = "$C4"
chars["ü"] = "$C5"
chars["'d"] = "$D0"
chars["'l"] = "$D1"
chars["'m"] = "$D2"
chars["'r"] = "$D3"
chars["'s"] = "$D4"
chars["'t"] = "$D5"
chars["'v"] = "$D6"
chars["'"] = "$E0"
chars["-"] = "$E3"
chars["?"] = "$E6"
chars["!"] = "$E7"
chars["."] = "$E8"
chars["&"] = "$E9"
chars["é"] = "$EA"
chars[""] = "$EB"
chars[""] = "$EF"
chars["¥"] = "$F0"
chars["×"] = "$F1"
chars["/"] = "$F3"
chars[","] = "$F4"
chars[""] = "$F5"
chars["0"] = "$F6"
chars["1"] = "$F7"
chars["2"] = "$F8"
chars["3"] = "$F9"
chars["4"] = "$FA"
chars["5"] = "$FB"
chars["6"] = "$FC"
chars["7"] = "$FD"
chars["8"] = "$FE"
chars["9"] = "$FF"
" ": 0x7F,
"A": 0x80,
"B": 0x81,
"C": 0x82,
"D": 0x83,
"E": 0x84,
"F": 0x85,
"G": 0x86,
"H": 0x87,
"I": 0x88,
"J": 0x89,
"K": 0x8A,
"L": 0x8B,
"M": 0x8C,
"N": 0x8D,
"O": 0x8E,
"P": 0x8F,
"Q": 0x90,
"R": 0x91,
"S": 0x92,
"T": 0x93,
"U": 0x94,
"V": 0x95,
"W": 0x96,
"X": 0x97,
"Y": 0x98,
"Z": 0x99,
"(": 0x9A,
")": 0x9B,
":": 0x9C,
";": 0x9D,
"[": 0x9E,
"]": 0x9F,
"a": 0xA0,
"b": 0xA1,
"c": 0xA2,
"d": 0xA3,
"e": 0xA4,
"f": 0xA5,
"g": 0xA6,
"h": 0xA7,
"i": 0xA8,
"j": 0xA9,
"k": 0xAA,
"l": 0xAB,
"m": 0xAC,
"n": 0xAD,
"o": 0xAE,
"p": 0xAF,
"q": 0xB0,
"r": 0xB1,
"s": 0xB2,
"t": 0xB3,
"u": 0xB4,
"v": 0xB5,
"w": 0xB6,
"x": 0xB7,
"y": 0xB8,
"z": 0xB9,
"Ä": 0xC0,
"Ö": 0xC1,
"Ü": 0xC2,
"ä": 0xC3,
"ö": 0xC4,
"ü": 0xC5,
"'d": 0xD0,
"'l": 0xD1,
"'m": 0xD2,
"'r": 0xD3,
"'s": 0xD4,
"'t": 0xD5,
"'v": 0xD6,
"'": 0xE0,
"-": 0xE3,
"?": 0xE6,
"!": 0xE7,
".": 0xE8,
"&": 0xE9,
"é": 0xEA,
"": 0xEB,
"": 0xEF,
"¥": 0xF0,
"×": 0xF1,
"/": 0xF3,
",": 0xF4,
"": 0xF5,
"0": 0xF6,
"1": 0xF7,
"2": 0xF8,
"3": 0xF9,
"4": 0xFA,
"5": 0xFB,
"6": 0xFC,
"7": 0xFD,
"8": 0xFE,
"9": 0xFF
}
for l in sys.stdin:
@ -331,7 +331,7 @@ for l in sys.stdin:
char = char + token[0]
token = token[1:]
sys.stdout.write(chars[char])
sys.stdout.write("${0:02X}".format(chars[char]))
if len(token):
sys.stdout.write(", ")