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/windows-1257-tbl.rb
duerst b014f1bc02 * enc/trans/single_byte.trans: adding WINDOWS-wwww encodings
(wwww = 874/1250/1251/1253/1254/1255/1256/1257)
  (contributed by Yoshihiro Kambayashi)

* enc/trans/windows-wwww-tbl.rb: 8 new files
  (contributed by Yoshihiro Kambayashi)

* test/ruby/test_transcode.rb: added test_windows_wwww
  (contributed by Yoshihiro Kambayashi)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-19 09:15:37 +00:00

118 lines
No EOL
1.8 KiB
Ruby

WINDOWS_1257_TO_UCS_TBL = [
["A0",0xA0],
["A2",0xA2],
["A3",0xA3],
["A4",0xA4],
["A6",0xA6],
["A7",0xA7],
["8D",0xA8],
["A9",0xA9],
["AB",0xAB],
["AC",0xAC],
["AD",0xAD],
["AE",0xAE],
["9D",0xAF],
["B0",0xB0],
["B1",0xB1],
["B2",0xB2],
["B3",0xB3],
["B4",0xB4],
["B5",0xB5],
["B6",0xB6],
["B7",0xB7],
["8F",0xB8],
["B9",0xB9],
["BB",0xBB],
["BC",0xBC],
["BD",0xBD],
["BE",0xBE],
["C4",0xC4],
["C5",0xC5],
["AF",0xC6],
["C9",0xC9],
["D3",0xD3],
["D5",0xD5],
["D6",0xD6],
["D7",0xD7],
["A8",0xD8],
["DC",0xDC],
["DF",0xDF],
["E4",0xE4],
["E5",0xE5],
["BF",0xE6],
["E9",0xE9],
["F3",0xF3],
["F5",0xF5],
["F6",0xF6],
["F7",0xF7],
["B8",0xF8],
["FC",0xFC],
["C2",0x100],
["E2",0x101],
["C0",0x104],
["E0",0x105],
["C3",0x106],
["E3",0x107],
["C8",0x10C],
["E8",0x10D],
["C7",0x112],
["E7",0x113],
["CB",0x116],
["EB",0x117],
["C6",0x118],
["E6",0x119],
["CC",0x122],
["EC",0x123],
["CE",0x12A],
["EE",0x12B],
["C1",0x12E],
["E1",0x12F],
["CD",0x136],
["ED",0x137],
["CF",0x13B],
["EF",0x13C],
["D9",0x141],
["F9",0x142],
["D1",0x143],
["F1",0x144],
["D2",0x145],
["F2",0x146],
["D4",0x14C],
["F4",0x14D],
["AA",0x156],
["BA",0x157],
["DA",0x15A],
["FA",0x15B],
["D0",0x160],
["F0",0x161],
["DB",0x16A],
["FB",0x16B],
["D8",0x172],
["F8",0x173],
["CA",0x179],
["EA",0x17A],
["DD",0x17B],
["FD",0x17C],
["DE",0x17D],
["FE",0x17E],
["8E",0x2C7],
["FF",0x2D9],
["9E",0x2DB],
["96",0x2013],
["97",0x2014],
["91",0x2018],
["92",0x2019],
["82",0x201A],
["93",0x201C],
["94",0x201D],
["84",0x201E],
["86",0x2020],
["87",0x2021],
["95",0x2022],
["85",0x2026],
["89",0x2030],
["8B",0x2039],
["9B",0x203A],
["80",0x20AC],
["99",0x2122],
]