summaryrefslogtreecommitdiff
path: root/enc/trans/big5.trans
diff options
context:
space:
mode:
Diffstat (limited to 'enc/trans/big5.trans')
-rw-r--r--enc/trans/big5.trans16
1 files changed, 16 insertions, 0 deletions
diff --git a/enc/trans/big5.trans b/enc/trans/big5.trans
new file mode 100644
index 0000000000..ba7bae53f9
--- /dev/null
+++ b/enc/trans/big5.trans
@@ -0,0 +1,16 @@
+#include "transcode_data.h"
+
+<%
+ require "big5-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_generated_code %>
+
+void
+Init_big5(void)
+{
+<%= transcode_register_code %>
+} \ No newline at end of file