summaryrefslogtreecommitdiff
path: root/enc/trans/big5.trans
blob: c91b821bbaec44242e4221385dfb55f5d1b08254 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "transcode_data.h"

<%
  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 %>

void
Init_big5(void)
{
<%= transcode_register_code %>
}