diff options
author | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-24 10:26:18 +0000 |
---|---|---|
committer | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-24 10:26:18 +0000 |
commit | 28862075842f6e8e62d00954a291b01ba80e61a1 (patch) | |
tree | bf04e370edde10bbb3716dfc6a7e24c57c421183 /enc/trans/big5.trans | |
parent | 9914a16ca941f47b9fa32874933594a59cf65267 (diff) |
* enc/trans/big5.trans, big5-hkscs-tbl.rb:
new Chinese BIG5-HKSCS transcoding (with Tatsuya Mizuno)
* test/ruby/test_transcode.rb: added tests for the above
(with Tatsuya Mizuno)
* enc/big5.c: Added BIG5-HKSCS as a replicate encoding of BIG5
(short term solution, needs more work; with Tatsuya Mizuno)
* tool/transcode-tblgen.rb: made 'pat' directly accessible in
class StrSet
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/trans/big5.trans')
-rw-r--r-- | enc/trans/big5.trans | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/enc/trans/big5.trans b/enc/trans/big5.trans index ba7bae53f9..c91b821bba 100644 --- a/enc/trans/big5.trans +++ b/enc/trans/big5.trans @@ -2,9 +2,13 @@ <% require "big5-tbl" + require "big5-hkscs-tbl" transcode_tblgen "Big5", "UTF-8", [["{00-7f}", :nomap], *BIG5_TO_UCS_TBL] transcode_tblgen "UTF-8", "Big5", [["{00-7f}", :nomap], *BIG5_TO_UCS_TBL.map {|a,b| [b,a] }] + + transcode_tblgen "Big5-HKSCS", "UTF-8", [["{00-7f}", :nomap], *BIG5_HKSCS_TO_UCS_TBL] + transcode_tblgen "UTF-8", "Big5-HKSCS", [["{00-7f}", :nomap], *BIG5_HKSCS_TO_UCS_TBL.map {|a,b| [b,a] }] %> <%= transcode_generated_code %> |