1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* enc/trans/big5-hkscs-tbl.rb: Update table as HKSCS-2008.

patched by oCameLo oTnTh [ruby-core:33256]

* enc/big5.c: add alias Big5-HKSCS:2008 to Big5-HKSCS.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2010-11-24 16:40:38 +00:00
parent 99606f89c0
commit b98ea1505c
4 changed files with 37315 additions and 4 deletions

View file

@ -1,3 +1,10 @@
Thu Nov 25 01:38:25 2010 NARUSE, Yui <naruse@ruby-lang.org>
* enc/trans/big5-hkscs-tbl.rb: Update table as HKSCS-2008.
patched by oCameLo oTnTh [ruby-core:33256]
* enc/big5.c: add alias Big5-HKSCS:2008 to Big5-HKSCS.
Wed Nov 24 15:18:07 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* vsnprintf (BSD_vfprintf): use QUADINT macro only when _HAVE_SANE_QUAD_

View file

@ -311,7 +311,8 @@ ENC_REPLICATE("CP950", "Big5")
/*
* Name: Big5-HKSCS
* MIBenum: 2101
* Source: See (http://www.iana.org/assignments/charset-reg/Big5-HKSCS)
* Source: http://www.iana.org/assignments/charset-reg/Big5-HKSCS
* Source: http://www.ogcio.gov.hk/ccli/eng/hkscs/mapping_table_2008.html
* Alias: None
*/
OnigEncodingDefine(big5_hkscs, BIG5_HKSCS) = {
@ -332,6 +333,7 @@ OnigEncodingDefine(big5_hkscs, BIG5_HKSCS) = {
big5_left_adjust_char_head,
big5_is_allowed_reverse_match
};
ENC_ALIAS("Big5-HKSCS:2008", "Big5-HKSCS")
/*
* Name: CP951

37302
enc/trans/big5-hkscs-tbl.rb Normal file

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,7 @@
#include "transcode_data.h"
<%
require "big5-hkscs-tbl"
require "big5-uao-tbl"
tbls = import_ucm("glibc-BIG5-2.3.3.ucm")
@ -11,9 +12,8 @@
transcode_tblgen "CP950", "UTF-8", [["{00-7f}", :nomap]] + tbls[0], ValidEncoding('Big5')
transcode_tblgen "UTF-8", "CP950", [["{00-7f}", :nomap]] + tbls[1]
tbls = import_ucm("glibc-BIG5HKSCS-2.3.3.ucm")
transcode_tblgen "Big5-HKSCS", "UTF-8", [["{00-7f}", :nomap]] + tbls[0], ValidEncoding('Big5')
transcode_tblgen "UTF-8", "Big5-HKSCS", [["{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')