1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/enc/trans/cp852-tbl.rb
duerst a28fdecda7 * enc/trans/single_byte.trans, cp850-tbl.rb, cp852-tbl.rb,
cp855-tbl.rb, koi8-r-tbl.rb, koi8-u-tbl.rb, tis-620-tbl.rb:
  new single-byte transcodings (from Yoshihiro Kambayashi)

* test/ruby/test_transcode.rb: added tests for the above
  (from Yoshihiro Kambayashi), small cosmetic fixes


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-09 09:39:25 +00:00

130 lines
No EOL
2 KiB
Ruby

CP852_TO_UCS_TBL = [
["FF",0xA0],
["CF",0xA4],
["F5",0xA7],
["F9",0xA8],
["AE",0xAB],
["AA",0xAC],
["F0",0xAD],
["F8",0xB0],
["EF",0xB4],
["F7",0xB8],
["AF",0xBB],
["B5",0xC1],
["B6",0xC2],
["8E",0xC4],
["80",0xC7],
["90",0xC9],
["D3",0xCB],
["D6",0xCD],
["D7",0xCE],
["E0",0xD3],
["E2",0xD4],
["99",0xD6],
["9E",0xD7],
["E9",0xDA],
["9A",0xDC],
["ED",0xDD],
["E1",0xDF],
["A0",0xE1],
["83",0xE2],
["84",0xE4],
["87",0xE7],
["82",0xE9],
["89",0xEB],
["A1",0xED],
["8C",0xEE],
["A2",0xF3],
["93",0xF4],
["94",0xF6],
["F6",0xF7],
["A3",0xFA],
["81",0xFC],
["EC",0xFD],
["C6",0x102],
["C7",0x103],
["A4",0x104],
["A5",0x105],
["8F",0x106],
["86",0x107],
["AC",0x10C],
["9F",0x10D],
["D2",0x10E],
["D4",0x10F],
["D1",0x110],
["D0",0x111],
["A8",0x118],
["A9",0x119],
["B7",0x11A],
["D8",0x11B],
["91",0x139],
["92",0x13A],
["95",0x13D],
["96",0x13E],
["9D",0x141],
["88",0x142],
["E3",0x143],
["E4",0x144],
["D5",0x147],
["E5",0x148],
["8A",0x150],
["8B",0x151],
["E8",0x154],
["EA",0x155],
["FC",0x158],
["FD",0x159],
["97",0x15A],
["98",0x15B],
["B8",0x15E],
["AD",0x15F],
["E6",0x160],
["E7",0x161],
["DD",0x162],
["EE",0x163],
["9B",0x164],
["9C",0x165],
["DE",0x16E],
["85",0x16F],
["EB",0x170],
["FB",0x171],
["8D",0x179],
["AB",0x17A],
["BD",0x17B],
["BE",0x17C],
["A6",0x17D],
["A7",0x17E],
["F3",0x2C7],
["F4",0x2D8],
["FA",0x2D9],
["F2",0x2DB],
["F1",0x2DD],
["C4",0x2500],
["B3",0x2502],
["DA",0x250C],
["BF",0x2510],
["C0",0x2514],
["D9",0x2518],
["C3",0x251C],
["B4",0x2524],
["C2",0x252C],
["C1",0x2534],
["C5",0x253C],
["CD",0x2550],
["BA",0x2551],
["C9",0x2554],
["BB",0x2557],
["C8",0x255A],
["BC",0x255D],
["CC",0x2560],
["B9",0x2563],
["CB",0x2566],
["CA",0x2569],
["CE",0x256C],
["DF",0x2580],
["DC",0x2584],
["DB",0x2588],
["B0",0x2591],
["B1",0x2592],
["B2",0x2593],
["FE",0x25A0],
]