mirror of https://github.com/pret/pokecrystal.git
Reformat the character table, as suggested by Sanky.
This commit is contained in:
parent
d5fe70b03b
commit
89a76e887d
514
textpre.py
514
textpre.py
|
@ -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(", ")
|
||||||
|
|
Loading…
Reference in New Issue