diff options
author | Jari Vetoniemi <jari.vetoniemi@indooratlas.com> | 2020-03-16 18:49:26 +0900 |
---|---|---|
committer | Jari Vetoniemi <jari.vetoniemi@indooratlas.com> | 2020-03-30 00:39:06 +0900 |
commit | fcbf63e62c627deae76c1b8cb8c0876c536ed811 (patch) | |
tree | 64cb17de3f41a2b6fef2368028fbd00349946994 /jni/ruby/enc/trans/big5.trans |
Fresh start
Diffstat (limited to 'jni/ruby/enc/trans/big5.trans')
-rw-r--r-- | jni/ruby/enc/trans/big5.trans | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/jni/ruby/enc/trans/big5.trans b/jni/ruby/enc/trans/big5.trans new file mode 100644 index 0000000..c85ada3 --- /dev/null +++ b/jni/ruby/enc/trans/big5.trans @@ -0,0 +1,32 @@ +#include "transcode_data.h" + +<% + require "big5-hkscs-tbl" + require "big5-uao-tbl" + + tbls = import_ucm("glibc-BIG5-2.3.3.ucm") + transcode_tblgen "Big5", "UTF-8", [["{00-7f}", :nomap]] + tbls[0] + transcode_tblgen "UTF-8", "Big5", [["{00-7f}", :nomap]] + tbls[1] + + tbls = import_ucm("windows-950-2000.ucm") + transcode_tblgen "CP950", "UTF-8", [["{00-7f}", :nomap]] + tbls[0], ValidEncoding('Big5') + transcode_tblgen "UTF-8", "CP950", [["{00-7f}", :nomap]] + tbls[1] + + transcode_tblgen "Big5-HKSCS", "UTF-8", [["{00-7f}", :nomap], *BIG5_HKSCS_TO_UCS_TBL], ValidEncoding('Big5') + transcode_tblgen "UTF-8", "Big5-HKSCS", [["{00-7f}", :nomap], *UCS_TO_BIG5_HKSCS_TBL] + + tbls = import_ucm("windows-950_hkscs-2001.ucm") + transcode_tblgen "CP951", "UTF-8", [["{00-7f}", :nomap]] + tbls[0], ValidEncoding('Big5') + transcode_tblgen "UTF-8", "CP951", [["{00-7f}", :nomap]] + tbls[1] + + transcode_tblgen "Big5-UAO", "UTF-8", [["{00-7f}", :nomap], *BIG5_UAO_TO_UCS_TBL], ValidEncoding('Big5') + transcode_tblgen "UTF-8", "Big5-UAO", [["{00-7f}", :nomap], *BIG5_UAO_TO_UCS_TBL.map {|a,b| [b,a] }] + +%> + +<%= transcode_generated_code %> + +TRANS_INIT(big5) +{ +<%= transcode_register_code %> +} |