diff options
author | Oliver Bolte <obo@openoffice.org> | 2005-07-08 08:49:47 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2005-07-08 08:49:47 +0000 |
commit | 44a2ccc186efcab3657811527325cc6ed5695387 (patch) | |
tree | 7151362b35d48dc74d0389a54d743a1d753b27c3 /sal/textenc/tencinfo.c | |
parent | 5f909b51711d2e3e3c58fd63d1a040231ed5670e (diff) |
INTEGRATION: CWS sb32 (1.25.66); FILE MERGED
2005/04/29 08:10:32 sb 1.25.66.1: #i43666# Added support for Thai TIS620 to rtl_getTextEncodingFromUnixCharset (patch supplied by samphan@openoffice.org).
Diffstat (limited to 'sal/textenc/tencinfo.c')
-rw-r--r-- | sal/textenc/tencinfo.c | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/sal/textenc/tencinfo.c b/sal/textenc/tencinfo.c index c2f74d065bcd..e821a70134eb 100644 --- a/sal/textenc/tencinfo.c +++ b/sal/textenc/tencinfo.c @@ -2,9 +2,9 @@ * * $RCSfile: tencinfo.c,v $ * - * $Revision: 1.25 $ + * $Revision: 1.26 $ * - * last change: $Author: pjunck $ $Date: 2004-10-22 14:14:00 $ + * last change: $Author: obo $ $Date: 2005-07-08 09:49:47 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -427,6 +427,7 @@ rtl_TextEncoding SAL_CALL rtl_getTextEncodingFromUnixCharset( const sal_Char* pU { "15", RTL_TEXTENCODING_ISO_8859_15 }, { "14", RTL_TEXTENCODING_ISO_8859_14 }, { "13", RTL_TEXTENCODING_ISO_8859_13 }, + { "11", RTL_TEXTENCODING_TIS_620 }, { "10", RTL_TEXTENCODING_ISO_8859_10 }, { "1", RTL_TEXTENCODING_ISO_8859_1 }, { "2", RTL_TEXTENCODING_ISO_8859_2 }, @@ -566,6 +567,25 @@ rtl_TextEncoding SAL_CALL rtl_getTextEncodingFromUnixCharset( const sal_Char* pU { NULL, RTL_TEXTENCODING_SYMBOL } }; + /* See <http://cvs.freedesktop.org/xorg/xc/fonts/encodings/iso8859-11.enc? + rev=1.1.1.1>: */ + static ImplStrCharsetDef const aUnixCharsetTIS620Tab[] = + { + { "0", RTL_TEXTENCODING_TIS_620 }, + { NULL, RTL_TEXTENCODING_DONTKNOW } + }; + static ImplStrCharsetDef const aUnixCharsetTIS6202529Tab[] = + { + { "1", RTL_TEXTENCODING_TIS_620 }, + { NULL, RTL_TEXTENCODING_DONTKNOW } + }; + static ImplStrCharsetDef const aUnixCharsetTIS6202533Tab[] = + { + { "0", RTL_TEXTENCODING_TIS_620 }, + { "1", RTL_TEXTENCODING_TIS_620 }, + { NULL, RTL_TEXTENCODING_DONTKNOW } + }; + static ImplStrFirstPartCharsetDef const aUnixCharsetFirstPartTab[] = { { "iso8859", aUnixCharsetISOTab }, @@ -590,7 +610,9 @@ rtl_TextEncoding SAL_CALL rtl_getTextEncodingFromUnixCharset( const sal_Char* pU { "iso10646", aUnixCharsetUNICODETab }, { "ksc5601.1987", aUnixCharsetKSC56011987Tab }, { "ksc5601.1992", aUnixCharsetKSC56011992Tab }, -/* { "tis620.2553", }, */ + { "tis620.2529", aUnixCharsetTIS6202529Tab }, + { "tis620.2533", aUnixCharsetTIS6202533Tab }, + { "tis620", aUnixCharsetTIS620Tab }, /* { "sunudcja.1997", }, */ /* { "sunudcko.1997", }, */ /* { "sunudczh.1997", }, */ |