[Fwd: How can I let pango/gtk support a new encoding like GBK/GB18030 and BIG5-HKSCS?]
- From: James Su <suzhe gnuchina org>
- To: gtk-i18n-list gnome org
- Subject: [Fwd: How can I let pango/gtk support a new encoding like GBK/GB18030 and BIG5-HKSCS?]
- Date: Sat, 06 Oct 2001 02:46:29 +0800
--- Begin Message ---
- From: James Su <suzhe gnuchina org>
- To: Havoc Pennington <hp redhat com>
- Subject: Re: How can I let pango/gtk support a new encoding like GBK/GB18030 and BIG5-HKSCS?
- Date: Sat, 06 Oct 2001 02:43:29 +0800
Sorry,
My meaning is can I use pango/gtk2 under GB18030 locale? and how can I
let a gtk2 program use my XIM server?
I had tried gtk-demo shipped with gtk+-1.3.9, but I cannot call out my
XIM input server. And I cannot copy/paste string from other program.
How can I test whether pango/gtk+ supports GB18030 locale?
Is there any demo program which will edit or show text file encoded in
GB18030?
Many thanks
James Su
Havoc Pennington wrote:
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
_______________________________________________
gtk-i18n-list mailing list
gtk-i18n-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-i18n-list
--- End Message ---
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]