Re: How can I let pango/gtk support a new encoding like GBK/GB18030 and BIG5-HKSCS?



James Su <suzhe gnuchina org> writes:
> 
> Is there any documentation of how to support a new encoding in
> pango/gtk? I really want to use GBK/GB18030 and BIG5-HKSCS within pango/gtk.
> 
> Does anybody can give me some suggestion?
> 
> btw, GB18030 is a variable length encoding, which can be 1, 2 or 4 bytes
> for one code point.
> 

What do you mean by 'support'? 

All strings used in GTK 1.3.x must be converted to Unicode; there is
no way to use locale strings.

Support for converting to/from a particular encoding
(g_locale_to_utf8(), g_convert(), etc.) is provided by your iconv()
implementation in the standard C library.

For GTK 1.2.x, all strings must be in the locale's encoding, which
means you would add support for an encoding on the standard C library
and Xlib level.

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]