diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-12-09 10:27:37 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-12-09 10:27:37 +0000 |
commit | c1d369b0abd42dc93a767570ca0b0f44b016e6ac (patch) | |
tree | 8090e74245c89dd3984eebd82cfc5cb84c8e88b7 /enc | |
parent | 33e7c896ca6fd4321bc843cd81bd096bb8e3f5d8 (diff) | |
download | ruby-c1d369b0abd42dc93a767570ca0b0f44b016e6ac.tar.gz |
* enc/trans/iso-8859-16-tbl.rb: add ISO-8859-16 converter.
* enc/trans/single_byte.trans: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc')
-rw-r--r-- | enc/trans/iso-8859-16-tbl.rb | 98 | ||||
-rw-r--r-- | enc/trans/single_byte.trans | 1 |
2 files changed, 99 insertions, 0 deletions
diff --git a/enc/trans/iso-8859-16-tbl.rb b/enc/trans/iso-8859-16-tbl.rb new file mode 100644 index 0000000000..27f1e49935 --- /dev/null +++ b/enc/trans/iso-8859-16-tbl.rb @@ -0,0 +1,98 @@ +ISO_8859_16_TO_UCS_TBL = [ + ["A0", 0x00A0], + ["A1", 0x0104], + ["A2", 0x0105], + ["A3", 0x0141], + ["A4", 0x20AC], + ["A5", 0x201E], + ["A6", 0x0160], + ["A7", 0x00A7], + ["A8", 0x0161], + ["A9", 0x00A9], + ["AA", 0x0218], + ["AB", 0x00AB], + ["AC", 0x0179], + ["AD", 0x00AD], + ["AE", 0x017A], + ["AF", 0x017B], + ["B0", 0x00B0], + ["B1", 0x00B1], + ["B2", 0x010C], + ["B3", 0x0142], + ["B4", 0x017D], + ["B5", 0x201D], + ["B6", 0x00B6], + ["B7", 0x00B7], + ["B8", 0x017E], + ["B9", 0x010D], + ["BA", 0x0219], + ["BB", 0x00BB], + ["BC", 0x0152], + ["BD", 0x0153], + ["BE", 0x0178], + ["BF", 0x017C], + ["C0", 0x00C0], + ["C1", 0x00C1], + ["C2", 0x00C2], + ["C3", 0x0102], + ["C4", 0x00C4], + ["C5", 0x0106], + ["C6", 0x00C6], + ["C7", 0x00C7], + ["C8", 0x00C8], + ["C9", 0x00C9], + ["CA", 0x00CA], + ["CB", 0x00CB], + ["CC", 0x00CC], + ["CD", 0x00CD], + ["CE", 0x00CE], + ["CF", 0x00CF], + ["D0", 0x0110], + ["D1", 0x0143], + ["D2", 0x00D2], + ["D3", 0x00D3], + ["D4", 0x00D4], + ["D5", 0x0150], + ["D6", 0x00D6], + ["D7", 0x015A], + ["D8", 0x0170], + ["D9", 0x00D9], + ["DA", 0x00DA], + ["DB", 0x00DB], + ["DC", 0x00DC], + ["DD", 0x0118], + ["DE", 0x021A], + ["DF", 0x00DF], + ["E0", 0x00E0], + ["E1", 0x00E1], + ["E2", 0x00E2], + ["E3", 0x0103], + ["E4", 0x00E4], + ["E5", 0x0107], + ["E6", 0x00E6], + ["E7", 0x00E7], + ["E8", 0x00E8], + ["E9", 0x00E9], + ["EA", 0x00EA], + ["EB", 0x00EB], + ["EC", 0x00EC], + ["ED", 0x00ED], + ["EE", 0x00EE], + ["EF", 0x00EF], + ["F0", 0x0111], + ["F1", 0x0144], + ["F2", 0x00F2], + ["F3", 0x00F3], + ["F4", 0x00F4], + ["F5", 0x0151], + ["F6", 0x00F6], + ["F7", 0x015B], + ["F8", 0x0171], + ["F9", 0x00F9], + ["FA", 0x00FA], + ["FB", 0x00FB], + ["FC", 0x00FC], + ["FD", 0x0119], + ["FE", 0x021B], + ["FF", 0x00FF], +] diff --git a/enc/trans/single_byte.trans b/enc/trans/single_byte.trans index 1bf1001720..2293bf6faf 100644 --- a/enc/trans/single_byte.trans +++ b/enc/trans/single_byte.trans @@ -43,6 +43,7 @@ transcode_tblgen_singlebyte "ISO-8859-13" transcode_tblgen_singlebyte "ISO-8859-14" transcode_tblgen_singlebyte "ISO-8859-15" + transcode_tblgen_singlebyte "ISO-8859-16" transcode_tblgen_singlebyte "WINDOWS-874" transcode_tblgen_singlebyte "WINDOWS-1250" transcode_tblgen_singlebyte "WINDOWS-1251" |