mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
add vietnamese support. Thanks Van Le <levan@hotmail.com> from the net
This commit is contained in:
parent
5ad59de344
commit
9bfc2186aa
@ -95,8 +95,8 @@ MODULE_PRIVATE csname2id_t csname2id_tbl[] = {
|
||||
{"x-cns11643-14", "", CS_CNS11643_14},
|
||||
{"x-cns11643-15", "", CS_CNS11643_15},
|
||||
{"x-cns11643-16", "", CS_CNS11643_16},
|
||||
{"VISCII", "", CS_VISCII},
|
||||
{"VIQR", "", CS_VIQR},
|
||||
{"VISCII", "", CS_VIET_VISCII},
|
||||
{"VIQR", "", CS_VIET_VIQR},
|
||||
{"koi8-u", "", CS_KOI8_U},
|
||||
{"iso-ir-111", "", CS_ISO_IR_111},
|
||||
{"iso_8859-6-e", "", CS_8859_6_E},
|
||||
@ -105,6 +105,9 @@ MODULE_PRIVATE csname2id_t csname2id_tbl[] = {
|
||||
{"iso_8859-8-i", "", CS_8859_8_I},
|
||||
{"x-johab", "", CS_JOHAB}, /* CP 1361 */
|
||||
{"x-johabfont", "", CS_JOHABFONT}, /* hangterm johab font */
|
||||
{"x-viet-vps", "", CS_VIET_VPS},
|
||||
{"x-viet-tcvn", "", CS_VIET_TCVN},
|
||||
{"x-viet-vni", "", CS_VIET_VIQR},
|
||||
|
||||
/* Additional OS/2 codepages. These are IANA primary names */
|
||||
{"ibm850", "Cp850", CS_CP_850}, /* PC Latin 1 */
|
||||
@ -277,10 +280,10 @@ MODULE_PRIVATE csname2id_t csname2id_tbl[] = {
|
||||
{"RESERVED", "", CS_DEFAULT}, /* or unknown charset */
|
||||
|
||||
/* aliases for VISCII: */
|
||||
{"csVISCII", "", CS_VISCII},
|
||||
{"csVISCII", "", CS_VIET_VISCII},
|
||||
|
||||
/* aliases for VIQR: */
|
||||
{"csVIQR", "", CS_VIQR},
|
||||
{"csVIQR", "", CS_VIET_VIQR},
|
||||
|
||||
/* aliases for ISO-8859-4: */
|
||||
{"ISO_8859-4:1988", "", CS_8859_4},
|
||||
|
@ -619,6 +619,35 @@ PRIVATE unsigned char lower_armscii8[128] = {
|
||||
0xe0, 0xe1, 0xe3, 0xe3, 0xe5, 0xe5, 0xe7, 0xe7, 0xe9, 0xe9, 0xeb, 0xeb, 0xed, 0xed, 0xef, 0xef,
|
||||
0xf0, 0xf1, 0xf3, 0xf3, 0xf5, 0xf5, 0xf7, 0xf7, 0xf9, 0xf9, 0xfb, 0xfb, 0xfd, 0xfd, 0xff, 0x7f };
|
||||
|
||||
PRIVATE unsigned char lower_viet_viscii[128] = {
|
||||
0xd5, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf,
|
||||
0xb0, 0xb1, 0xb2, 0xb5, 0xfe, 0xbe, 0xb6, 0xb7, 0xb8, 0xf6, 0xf7, 0xef, 0xfc, 0xfb, 0xf8, 0xcf,
|
||||
0xf5, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf,
|
||||
0xb0, 0xb1, 0xb2, 0xde, 0xbd, 0xb5, 0xb6, 0xb7, 0xb8, 0xf1, 0xd1, 0xd7, 0xd8, 0xbd, 0xbe, 0xdf,
|
||||
0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xc6, 0xc7, 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xcf,
|
||||
0xf0, 0xd1, 0xf2, 0xf3, 0xf4, 0xd5, 0xd6, 0xd7, 0xd8, 0xf9, 0xfa, 0xdb, 0xdc, 0xfd, 0xde, 0xdf,
|
||||
0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
|
||||
0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0x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 0xde, 0xdf, 0xe1, 0xe2, 0xe3, 0xe4, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 0xf1, 0xf2,
|
||||
0xa0, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xbb,
|
||||
0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, 0xb8, 0xb9, 0xbc, 0xbb, 0xbc, 0xbd, 0xbe, 0xbd,
|
||||
0xbe, 0xc7, 0xc8, 0xc9, 0xca, 0xd2, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xd3, 0xce, 0xcf,
|
||||
0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0xd4, 0xd5, 0xe5, 0xdc, 0xdd, 0xde, 0xdf,
|
||||
0xe6, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
|
||||
0xe7, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xe8 };
|
||||
|
||||
MODULE_PRIVATE unsigned char *INTL_GetSingleByteToLowerMap(int16 csid)
|
||||
{
|
||||
@ -696,6 +725,13 @@ MODULE_PRIVATE unsigned char *INTL_GetSingleByteToLowerMap(int16 csid)
|
||||
case CS_ARMSCII8:
|
||||
return lower_armscii8;
|
||||
|
||||
case CS_VIET_VISCII:
|
||||
return lower_viet_viscii;
|
||||
case CS_VIET_VPS:
|
||||
return lower_viet_vps;
|
||||
case CS_VIET_TCVN:
|
||||
return lower_viet_tcvn;
|
||||
|
||||
/* currently, return the ascii table. We should supply table for this csid later */
|
||||
|
||||
case CS_8859_3:
|
||||
|
@ -149,9 +149,9 @@ CS_CNS11643_13,
|
||||
CS_CNS11643_14,
|
||||
CS_CNS11643_15,
|
||||
CS_CNS11643_16,
|
||||
CS_VISCII, /* Should change to CS_VIET_VISCII */
|
||||
CS_VIET_VISCII,
|
||||
|
||||
CS_VIQR, /* Should change to CS_VIET_VIQR */
|
||||
CS_VIET_VIQR,
|
||||
CS_KOI8_U,
|
||||
CS_ISO_IR_111,
|
||||
CS_8859_6_I,
|
||||
@ -162,9 +162,9 @@ CS_8859_8_E,
|
||||
CS_JOHAB,
|
||||
|
||||
CS_JOHABFONT,
|
||||
CS_UNKNOWN, /* should change to CS_VIET_VPS */
|
||||
CS_UNKNOWN, /* should change to CS_VIET_TCVN */
|
||||
CS_UNKNOWN, /* should change to CS_VIET_VNI */
|
||||
CS_VIET_VPS,
|
||||
CS_VIET_TCVN,
|
||||
CS_VIET_VNI,
|
||||
|
||||
/* 0x60 - 0x6F*/
|
||||
CS_UNKNOWN,
|
||||
|
Loading…
Reference in New Issue
Block a user