Commit dc4268a7 authored by Kaleb Keithley Keithley's avatar Kaleb Keithley Keithley
Browse files

Initial revision

parent deae12c6
/* $TOG: $ */
/******************************************************************
Copyright 1993 by SunSoft, Inc.
Copyright 1999-2000 by Bruno Haible
Permission to use, copy, modify, distribute, and sell this software
and its documentation for any purpose is hereby granted without fee,
provided that the above copyright notice appear in all copies and
that both that copyright notice and this permission notice appear
in supporting documentation, and that the names of SunSoft, Inc. and
Bruno Haible not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior
permission. SunSoft, Inc. and Bruno Haible make no representations
about the suitability of this software for any purpose. It is
provided "as is" without express or implied warranty.
SunSoft Inc. AND Bruno Haible DISCLAIM ALL WARRANTIES WITH REGARD
TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS, IN NO EVENT SHALL SunSoft, Inc. OR Bruno Haible BE LIABLE
FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
******************************************************************/
/* $XFree86: xc/lib/X11/lcUTF8Load.c,v 1.1 2001/11/16 14:40:46 dawes Exp $ */
/*
* This file contains the UTF-8 locale loader.
* Supports: all locales with codeset UTF-8.
* Platforms: all systems.
*/
#include <stdio.h>
#include "Xlibint.h"
#include "XlcPubI.h"
#include "XlcGeneric.h"
XLCd
_XlcUtf8Loader(
const char *name)
{
XLCd lcd;
lcd = _XlcCreateLC(name, _XlcGenericMethods);
if (lcd == (XLCd) NULL)
return lcd;
/* The official IANA name for UTF-8 is "UTF-8" in upper case with a dash. */
if (!XLC_PUBLIC_PART(lcd)->codeset ||
(_XlcCompareISOLatin1(XLC_PUBLIC_PART(lcd)->codeset, "UTF-8"))) {
_XlcDestroyLC(lcd);
return (XLCd) NULL;
}
_XlcAddUtf8LocaleConverters(lcd);
_XlcAddUtf8Converters(lcd);
return lcd;
}
XCOMM
XCOMM ARMSCII-8 Compose Sequence
XCOMM
XCOMM Sequence Definition
XCOMM
XCOMM $XFree86: xc/nls/Compose/armscii-8,v 1.2 2001/04/26 21:09:40 dawes Exp $
XCOMM
XCOMM This file currently has no entries. It appears that a compose file (even
XCOMM just an empty one) is required for the appropriate keysyms to work for
XCOMM this encoding.
XCOMM
XCOMM <Multi_key> Means <Compose>
XCOMM Special Character
XCOMM End of Sequence Definition
# CATEGORY(XLC|XIM|OM) SHARED_LIBRARY_NAME FUNCTION_NAME
#
# XI18N objects table for armscii-8 locale
#
XLC common/xlcDef _XlcDefaultLoader # XLC_open
XIM common/ximcp _XimOpenIM _XimRegisterIMInstantiateCallback _XimUnRegisterIMInstantiateCallback # XIM_open XIM_register XIM_unregister
XOM common/xomGeneric _XomGenericOpenOM # XOM_open
XCOMM $XFree86: xc/nls/XLC_LOCALE/armscii-8,v 1.2 2000/12/01 17:43:02 dawes Exp $
XCOMM XLocale Database Sample for armscii-8.
XCOMM
XCOMM
XCOMM XLC_FONTSET category
XCOMM
XLC_FONTSET
XCOMM fs0 class (7 bit ASCII)
fs0 {
charset {
name ISO8859-1:GL
}
font {
primary ARMSCII-8:GL
substitute ISO8859-1:GL
}
}
XCOMM fs1 class
fs1 {
charset ARMSCII-8:GR
font ARMSCII-8:GR
}
END XLC_FONTSET
XCOMM
XCOMM XLC_CHARSET_DEFINE category
XCOMM
XLC_CHARSET_DEFINE
csd0 {
charset_name ARMSCII-8
side GR
length 1
string_encoding False
sequence \x1b%/1
}
END XLC_CHARSET_DEFINE
XCOMM
XCOMM XLC_XLOCALE category
XCOMM
XLC_XLOCALE
encoding_name ARMSCII-8
mb_cur_max 1
state_depend_encoding False
#if WCHAR32
wc_encoding_mask \x30000000
wc_shift_bits 7
#else
wc_encoding_mask \x00008080
wc_shift_bits 8
#endif
#ifndef X_LOCALE
use_stdc_env True
#endif
XCOMM cs0 class
cs0 {
side GL:Default
length 1
wc_encoding \x00000000
ct_encoding ARMSCII-8:GL; ISO8859-1:GL
}
XCOMM cs1 class
cs1 {
side GR:Default
length 1
#if WCHAR32
wc_encoding \x30000000
#else
wc_encoding \x00008080
#endif
ct_encoding ARMSCII-8:GR
}
END XLC_XLOCALE
This diff is collapsed.
XCOMM
XCOMM georgian-academy Compose Sequence
XCOMM
XCOMM Sequence Definition
XCOMM
XCOMM $XFree86: xc/nls/Compose/georgian-academy,v 1.2 2001/04/26 21:09:40 dawes Exp $
XCOMM
XCOMM This file currently has no entries. It appears that a compose file (even
XCOMM just an empty one) is required for the appropriate keysyms to work for
XCOMM this encoding.
XCOMM
XCOMM <Multi_key> Means <Compose>
XCOMM Special Character
XCOMM End of Sequence Definition
# CATEGORY(XLC|XIM|OM) SHARED_LIBRARY_NAME FUNCTION_NAME
#
# XI18N objects table for georgian-academy locale
#
XLC common/xlcDef _XlcDefaultLoader # XLC_open
XIM common/ximcp _XimOpenIM _XimRegisterIMInstantiateCallback _XimUnRegisterIMInstantiateCallback # XIM_open XIM_register XIM_unregister
XOM common/xomGeneric _XomGenericOpenOM # XOM_open
XCOMM $XFree86: xc/nls/XLC_LOCALE/georgian-academy,v 1.2 2000/12/01 17:43:02 dawes Exp $
XCOMM XLocale Database Sample for georgian-academy
XCOMM
XCOMM
XCOMM XLC_FONTSET category
XCOMM
XLC_FONTSET
XCOMM fs0 class (7 bit ASCII)
fs0 {
charset {
name ISO8859-1:GL
}
font {
primary GEORGIAN-ACADEMY:GL
substitute ISO8859-1:GL
}
}
XCOMM fs1 class
fs1 {
charset GEORGIAN-ACADEMY:GR
font GEORGIAN-ACADEMY:GR
}
END XLC_FONTSET
XCOMM
XCOMM XLC_CHARSET_DEFINE category
XCOMM
XLC_CHARSET_DEFINE
csd0 {
charset_name GEORGIAN-ACADEMY
side GR
length 1
string_encoding False
sequence \x1b%/1
}
END XLC_CHARSET_DEFINE
XCOMM
XCOMM XLC_XLOCALE category
XCOMM
XLC_XLOCALE
encoding_name GEORGIAN-ACADEMY
mb_cur_max 1
state_depend_encoding False
#if WCHAR32
wc_encoding_mask \x30000000
wc_shift_bits 7
#else
wc_encoding_mask \x00008080
wc_shift_bits 8
#endif
#ifndef X_LOCALE
use_stdc_env True
#endif
XCOMM cs0 class
cs0 {
side GL:Default
length 1
wc_encoding \x00000000
ct_encoding GEORGIAN-ACADEMY:GL; ISO8859-1:GL
}
XCOMM cs1 class
cs1 {
side GR:Default
length 1
#if WCHAR32
wc_encoding \x30000000
#else
wc_encoding \x00008080
#endif
ct_encoding GEORGIAN-ACADEMY:GR
}
END XLC_XLOCALE
XCOMM
XCOMM georgian-ps Compose Sequence
XCOMM
XCOMM Sequence Definition
XCOMM
XCOMM $XFree86: xc/nls/Compose/georgian-ps,v 1.2 2001/04/26 21:09:40 dawes Exp $
XCOMM
XCOMM This file currently has no entries. It appears that a compose file (even
XCOMM just an empty one) is required for the appropriate keysyms to work for
XCOMM this encoding.
XCOMM
XCOMM <Multi_key> Means <Compose>
XCOMM Special Character
XCOMM End of Sequence Definition
# CATEGORY(XLC|XIM|OM) SHARED_LIBRARY_NAME FUNCTION_NAME
#
# XI18N objects table for georgian-ps locale
#
XLC common/xlcDef _XlcDefaultLoader # XLC_open
XIM common/ximcp _XimOpenIM _XimRegisterIMInstantiateCallback _XimUnRegisterIMInstantiateCallback # XIM_open XIM_register XIM_unregister
XOM common/xomGeneric _XomGenericOpenOM # XOM_open
XCOMM $XFree86: xc/nls/XLC_LOCALE/georgian-ps,v 1.2 2000/12/01 17:43:02 dawes Exp $
XCOMM XLocale Database Sample for georgian-ps
XCOMM
XCOMM
XCOMM XLC_FONTSET category
XCOMM
XLC_FONTSET
XCOMM fs0 class (7 bit ASCII)
fs0 {
charset {
name ISO8859-1:GL
}
font {
primary GEORGIAN-PS:GL
substitute ISO8859-1:GL
}
}
XCOMM fs1 class
fs1 {
charset GEORGIAN-PS:GR
font GEORGIAN-PS:GR
}
END XLC_FONTSET
XCOMM
XCOMM XLC_CHARSET_DEFINE category
XCOMM
XLC_CHARSET_DEFINE
csd0 {
charset_name GEORGIAN-PS
side GR
length 1
string_encoding False
sequence \x1b%/1
}
END XLC_CHARSET_DEFINE
XCOMM
XCOMM XLC_XLOCALE category
XCOMM
XLC_XLOCALE
encoding_name GEORGIAN-PS
mb_cur_max 1
state_depend_encoding False
#if WCHAR32
wc_encoding_mask \x30000000
wc_shift_bits 7
#else
wc_encoding_mask \x00008080
wc_shift_bits 8
#endif
#ifndef X_LOCALE
use_stdc_env True
#endif
XCOMM cs0 class
cs0 {
side GL:Default
length 1
wc_encoding \x00000000
ct_encoding GEORGIAN-PS:GL; ISO8859-1:GL
}
XCOMM cs1 class
cs1 {
side GR:Default
length 1
#if WCHAR32
wc_encoding \x30000000
#else
wc_encoding \x00008080
#endif
ct_encoding GEORGIAN-PS:GR
}
END XLC_XLOCALE
XCOMM
XCOMM ibm-cp1133 Compose Sequence
XCOMM
XCOMM Sequence Definition
XCOMM
XCOMM $XFree86: xc/nls/Compose/ibm-cp1133,v 1.2 2001/04/26 21:09:40 dawes Exp $
XCOMM
XCOMM This file currently has no entries. It appears that a compose file (even
XCOMM just an empty one) is required for the appropriate keysyms to work for
XCOMM this encoding.
XCOMM
XCOMM <Multi_key> Means <Compose>
XCOMM Special Character
XCOMM End of Sequence Definition
# CATEGORY(XLC|XIM|OM) SHARED_LIBRARY_NAME FUNCTION_NAME
#
# XI18N objects table for ibm-cp1133 locale
#
XLC common/xlcDef _XlcDefaultLoader # XLC_open
XIM common/ximcp _XimOpenIM _XimRegisterIMInstantiateCallback _XimUnRegisterIMInstantiateCallback # XIM_open XIM_register XIM_unregister
XOM common/xomGeneric _XomGenericOpenOM # XOM_open
XCOMM $XFree86: xc/nls/XLC_LOCALE/ibm-cp1133,v 1.2 2000/12/01 17:43:03 dawes Exp $
XCOMM XLocale Database Sample for ibm-cp1133.
XCOMM
XCOMM
XCOMM XLC_FONTSET category
XCOMM
XLC_FONTSET
XCOMM fs0 class (7 bit ASCII)
fs0 {
charset {
name ISO8859-1:GL
}
font {
primary IBM-CP1133:GL
substitute ISO8859-1:GL
}
}
XCOMM fs1 class
fs1 {
charset IBM-CP1133:GR
font IBM-CP1133:GR
}
END XLC_FONTSET
XCOMM
XCOMM XLC_CHARSET_DEFINE category
XCOMM
XLC_CHARSET_DEFINE
csd0 {
charset_name IBM-CP1133
side GR
length 1
string_encoding False
sequence \x1b%/1
}
END XLC_CHARSET_DEFINE
XCOMM
XCOMM XLC_XLOCALE category
XCOMM
XLC_XLOCALE
encoding_name IBM-CP1133
mb_cur_max 1
state_depend_encoding False
#if WCHAR32
wc_encoding_mask \x30000000
wc_shift_bits 7
#else
wc_encoding_mask \x00008080
wc_shift_bits 8
#endif
#ifndef X_LOCALE
use_stdc_env True
#endif
XCOMM cs0 class
cs0 {
side GL:Default
length 1
wc_encoding \x00000000
ct_encoding IBM-CP1133:GL; ISO8859-1:GL
}
XCOMM cs1 class
cs1 {
side GR:Default
length 1
#if WCHAR32
wc_encoding \x30000000
#else
wc_encoding \x00008080
#endif
ct_encoding IBM-CP1133:GR
}
END XLC_XLOCALE
# CATEGORY(XLC|XIM|OM) SHARED_LIBRARY_NAME FUNCTION_NAME
#
# XI18N objects table for iscii-dev locale
#
XLC common/xlcDef _XlcDefaultLoader # XLC_open
XIM common/ximcp _XimOpenIM _XimRegisterIMInstantiateCallback _XimUnRegisterIMInstantiateCallback # XIM_open XIM_register XIM_unregister
XOM common/xomGeneric _XomGenericOpenOM # XOM_open
XCOMM $XFree86: xc/nls/XLC_LOCALE/iscii-dev,v 1.2 2000/12/01 17:43:03 dawes Exp $
XCOMM XLocale Database Sample for mulelao-1.
XCOMM
XCOMM
XCOMM XLC_FONTSET category
XCOMM
XLC_FONTSET
XCOMM fs0 class (7 bit ASCII)
fs0 {
charset {
name ISO8859-1:GL
}
font {
primary ISCII-DEV:GL
substitute ISO8859-1:GL
}
}
XCOMM fs1 class
fs1 {
charset ISCII-DEV:GR
font ISCII-DEV:GR
}
END XLC_FONTSET
XCOMM
XCOMM XLC_CHARSET_DEFINE category
XCOMM
XLC_CHARSET_DEFINE
csd0 {
charset_name ISCII-DEV
side GR
length 1
string_encoding False
sequence \x1b%/1
}
END XLC_CHARSET_DEFINE
XCOMM
XCOMM XLC_XLOCALE category
XCOMM
XLC_XLOCALE
encoding_name ISCII-DEV
mb_cur_max 1
state_depend_encoding False
#if WCHAR32
wc_encoding_mask \x30000000
wc_shift_bits 7
#else
wc_encoding_mask \x00008080
wc_shift_bits 8
#endif
#ifndef X_LOCALE
use_stdc_env True
#endif
XCOMM cs0 class
cs0 {
side GL:Default
length 1
wc_encoding \x00000000
ct_encoding ISCII-DEV:GL; ISO8859-1:GL
}
XCOMM cs1 class
cs1 {
side GR:Default
length 1
#if WCHAR32
wc_encoding \x30000000
#else
wc_encoding \x00008080
#endif
ct_encoding ISCII-DEV:GR
}
END XLC_XLOCALE
# CATEGORY(XLC|XIM|OM) SHARED_LIBRARY_NAME FUNCTION_NAME
#
# XI18N objects table for isiri-3342 locale
#
XLC common/xlcDef _XlcDefaultLoader # XLC_open
XIM common/ximcp _XimOpenIM _XimRegisterIMInstantiateCallback _XimUnRegisterIMInstantiateCallback # XIM_open XIM_register XIM_unregister
XOM common/xomGeneric _XomGenericOpenOM # XOM_open
XCOMM $XFree86: xc/nls/XLC_LOCALE/isiri-3342,v 1.2 2000/12/01 17:43:03 dawes Exp $
XCOMM XLocale Database Sample for mulelao-1.
XCOMM
XCOMM
XCOMM XLC_FONTSET category
XCOMM
XLC_FONTSET
XCOMM fs0 class (7 bit ASCII)
fs0 {
charset {
name ISO8859-1:GL
}
font {
primary ISIRI-3342:GL
substitute ISO8859-1:GL
}
}
XCOMM fs1 class
fs1 {
charset ISIRI-3342:GR
font ISIRI-3342:GR
}
END XLC_FONTSET
XCOMM
XCOMM XLC_CHARSET_DEFINE category
XCOMM
XLC_CHARSET_DEFINE
csd0 {
charset_name ISIRI-3342
side GR
length 1
string_encoding False
sequence \x1b%/1
}
END XLC_CHARSET_DEFINE
XCOMM
XCOMM XLC_XLOCALE category
XCOMM
XLC_XLOCALE
encoding_name ISIRI-3342
mb_cur_max 1
state_depend_encoding False
#if WCHAR32
wc_encoding_mask \x30000000
wc_shift_bits 7
#else
wc_encoding_mask \x00008080
wc_shift_bits 8
#endif
#ifndef X_LOCALE
use_stdc_env True
#endif