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/ibm866-tbl.rb
duerst 831e804388 * enc/trans/single_byte.trans, macgreek-tbl.rb, macroman-tbl.rb,
macromania-tbl.rb, macturkish-tbl.rb, macukraine-tbl.rb,
  ibm437-tbl.rb, ibm852-tbl.rb, ibm855-tbl.rb, ibm857-tbl.rb,
  ibm860-tbl.rb, ibm861-tbl.rb, ibm862-tbl.rb, ibm863-tbl.rb,
  ibm865-tbl.rb, ibm866-tbl.rb, ibm869-tbl.rb, ibm775-tbl.rb:
  new single-byte transcodings (from Yoshihiro Kambayashi)

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


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-11 05:26:20 +00:00

130 lines
No EOL
2.1 KiB
Ruby

IBM866_TO_UCS_TBL = [
["FF",0xA0],
["FD",0xA4],
["F8",0xB0],
["FA",0xB7],
["F0",0x401],
["F2",0x404],
["F4",0x407],
["F6",0x40E],
["80",0x410],
["81",0x411],
["82",0x412],
["83",0x413],
["84",0x414],
["85",0x415],
["86",0x416],
["87",0x417],
["88",0x418],
["89",0x419],
["8A",0x41A],
["8B",0x41B],
["8C",0x41C],
["8D",0x41D],
["8E",0x41E],
["8F",0x41F],
["90",0x420],
["91",0x421],
["92",0x422],
["93",0x423],
["94",0x424],
["95",0x425],
["96",0x426],
["97",0x427],
["98",0x428],
["99",0x429],
["9A",0x42A],
["9B",0x42B],
["9C",0x42C],
["9D",0x42D],
["9E",0x42E],
["9F",0x42F],
["A0",0x430],
["A1",0x431],
["A2",0x432],
["A3",0x433],
["A4",0x434],
["A5",0x435],
["A6",0x436],
["A7",0x437],
["A8",0x438],
["A9",0x439],
["AA",0x43A],
["AB",0x43B],
["AC",0x43C],
["AD",0x43D],
["AE",0x43E],
["AF",0x43F],
["E0",0x440],
["E1",0x441],
["E2",0x442],
["E3",0x443],
["E4",0x444],
["E5",0x445],
["E6",0x446],
["E7",0x447],
["E8",0x448],
["E9",0x449],
["EA",0x44A],
["EB",0x44B],
["EC",0x44C],
["ED",0x44D],
["EE",0x44E],
["EF",0x44F],
["F1",0x451],
["F3",0x454],
["F5",0x457],
["F7",0x45E],
["FC",0x2116],
["F9",0x2219],
["FB",0x221A],
["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],
["D5",0x2552],
["D6",0x2553],
["C9",0x2554],
["B8",0x2555],
["B7",0x2556],
["BB",0x2557],
["D4",0x2558],
["D3",0x2559],
["C8",0x255A],
["BE",0x255B],
["BD",0x255C],
["BC",0x255D],
["C6",0x255E],
["C7",0x255F],
["CC",0x2560],
["B5",0x2561],
["B6",0x2562],
["B9",0x2563],
["D1",0x2564],
["D2",0x2565],
["CB",0x2566],
["CF",0x2567],
["D0",0x2568],
["CA",0x2569],
["D8",0x256A],
["D7",0x256B],
["CE",0x256C],
["DF",0x2580],
["DC",0x2584],
["DB",0x2588],
["DD",0x258C],
["DE",0x2590],
["B0",0x2591],
["B1",0x2592],
["B2",0x2593],
["FE",0x25A0],
]