aboutsummaryrefslogtreecommitdiffstats
path: root/enc/big5.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-22 09:35:08 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-22 09:35:08 +0000
commit60dfa6b655239a176c4fef4067c409c8b3f86e5d (patch)
treedcda60fd5d87756e42c6b454d71824b9c4b3699c /enc/big5.c
parent6ade3a42918e94be1c6d4b1bd9273ec1e3265525 (diff)
downloadruby-60dfa6b655239a176c4fef4067c409c8b3f86e5d.tar.gz
* enc/big5.c: split CP950 from Big5.
* enc/big5.c: split CP951 from Big5-HKSCS. * enc/trans/big5.trans: import conversion table of Big5, Big5-HKSCS, CP950, and CP951 from ICU. they need fallback conversions. ref [ruby-core:33256] http://source.icu-project.org/repos/icu/data/trunk/charset/data/ucm/ * tool/transcode-tblgen.rb (import_ucm): add to import ucm files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/big5.c')
-rw-r--r--enc/big5.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/enc/big5.c b/enc/big5.c
index c4a088d531..cf96bd2ce5 100644
--- a/enc/big5.c
+++ b/enc/big5.c
@@ -301,7 +301,12 @@ OnigEncodingDefine(big5, BIG5) = {
big5_left_adjust_char_head,
big5_is_allowed_reverse_match
};
-ENC_ALIAS("CP950", "Big5")
+
+/*
+ * Name: CP950
+ * Source: http://msdn.microsoft.com/en-us/goglobal/cc305155.aspx
+ */
+ENC_REPLICATE("CP950", "Big5")
/*
* Name: Big5-HKSCS
@@ -327,7 +332,14 @@ OnigEncodingDefine(big5_hkscs, BIG5_HKSCS) = {
big5_left_adjust_char_head,
big5_is_allowed_reverse_match
};
-ENC_ALIAS("CP951", "Big5-HKSCS")
+
+/*
+ * Name: CP951
+ * Source: http://www.microsoft.com/hk/hkscs/default.aspx
+ * Source: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=0e6f5ac8-7baa-4571-b8e8-78b3b776afd7&DisplayLang=en
+ * Source: http://blogs.msdn.com/b/shawnste/archive/2007/03/12/cp-951-hkscs.aspx
+ */
+ENC_REPLICATE("CP951", "Big5-HKSCS")
/*
* Name: Big5-UAO [NOT registered by IANA!]