2009-01-04 11:40:26 +03:00
|
|
|
#include "transcode_data.h"
|
|
|
|
|
|
|
|
<%
|
2010-11-24 19:40:38 +03:00
|
|
|
require "big5-hkscs-tbl"
|
2009-11-17 11:56:11 +03:00
|
|
|
require "big5-uao-tbl"
|
2009-01-04 11:40:26 +03:00
|
|
|
|
2010-11-22 12:35:08 +03:00
|
|
|
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]
|
2009-07-24 14:26:18 +04:00
|
|
|
|
2010-11-22 12:35:08 +03:00
|
|
|
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]
|
|
|
|
|
2010-11-24 19:40:38 +03:00
|
|
|
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]
|
2010-11-22 12:35:08 +03:00
|
|
|
|
|
|
|
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]
|
2009-11-17 11:56:11 +03:00
|
|
|
|
2010-03-21 06:38:58 +03:00
|
|
|
transcode_tblgen "Big5-UAO", "UTF-8", [["{00-7f}", :nomap], *BIG5_UAO_TO_UCS_TBL], ValidEncoding('Big5')
|
2009-11-17 11:56:11 +03:00
|
|
|
transcode_tblgen "UTF-8", "Big5-UAO", [["{00-7f}", :nomap], *BIG5_UAO_TO_UCS_TBL.map {|a,b| [b,a] }]
|
|
|
|
|
2009-01-04 11:40:26 +03:00
|
|
|
%>
|
|
|
|
|
|
|
|
<%= transcode_generated_code %>
|
|
|
|
|
2012-05-16 09:39:06 +04:00
|
|
|
TRANS_INIT(big5)
|
2009-01-04 11:40:26 +03:00
|
|
|
{
|
|
|
|
<%= transcode_register_code %>
|
2010-03-21 06:38:58 +03:00
|
|
|
}
|