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
1 changed files with 257 additions and 257 deletions

View File

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