[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Multibytes character support
From: |
Yen-Ju Chen |
Subject: |
RE: Multibytes character support |
Date: |
Sun, 24 Feb 2002 13:33:10 -0500 |
Hi,
I solve the problem of XIM.
If using Xutf8LookupString/XmbLookupString/XwcLookupString,
it will return the encoding+string, not only string.
Since I use XFree86 4.1.0,
it always use Xutf8LookupString to get the encoding+string,
and the encoding and the string is seperate by "\002".
I attach the whoe XIMInputServer.m file,
but actually the modification is only in
- (NSString *) lookupStringForEvent: (XKeyEvent *)event
window: (gswindow_device_t *)windev
keysym: (KeySym *)keysymptr
Hope it won't affect the original function.
Combined with XmbFontInfo which I send previously,
GNUstep can input and display traditional Chinese now.
Yen-Ju
> -----Original Message-----
> From: Christian Gillot [mailto:cgillot@neo-rousseaux.org]
> Sent: Sunday, February 24, 2002 10:53 AM
> To: Yen-Ju Chen; discuss-gnustep@gnu.org
> Subject: Re: Multibytes character support
>
>
> Hi,
>
> i18n is a big issue with X framework. Right now, you've got to manage
> tree types of I/O iso-latin ones (standard ones), multibyte (what you're
> looking for) and unicode (that'll hopefully resolve the problem when
> it'll be used thoroughly).
> So if you make any adaptation you got to keep in mind to find
> a way that let use anyone of this three types of I/O.
>
> Yen-Ju Chen wrote:
>
> >> I have two questions when I test this class.
> >> When I use zh_TW.Big5 supported XIM server to input Chinese into
> >>NSTextField,
> >> it always adds "big5-0" in front of my input automatically.
> >> For example, when I input a Chinese character "Apple",
> >> it will show "big5-0 Apple".
> >> I have no idea whether the problem is on GNUstep XIM client or the XIM
> >>Server I used.
> >> This XIM server can work on any other system like gnome/gtk, kde/qt.
> >> Therefore I think maybe the problem is on GNUstep XIM client.
>
> You're right. I coded a first draft of XIM client, adapted by Adam
> Fedor as you can see in xgps/Source/SharedX/XIMInputServer.m.
> But as a european user I can't test asian input which is a lot
> more complex than european (accents/compose) input. So it'd
> be great if you could patch this for asian input. Or if you can't
> do it find a good asian programmer. If you've got problems
> or don't understand something on the XIM documentation I can
> help you. But be warned, it's a lot of work. (In fact no so
> much but you'd have to patch not only this file but also
> all the classes that manage fonts).
>
>
> >> Since programmers can't assign the font to NSMenu, which
> always use the
> >>default font,
> >> is there any standard way that users can assign the default font by
> >>themselves ?
> >> As far as I know, there is no standard font people will use in Chinese
> >>xwindow,
> >> therefore it will be difficult to assign the default Chinese fonts by
> >>programmer
> >> because they don't knwo what fonts the user have.
> >> If user can set the default Chinese fonts by themselves,
> >> it will be much easy to change the font of NSMenu to a suitable one.
>
> Check this out but I think you can change fonts by NSUserDefaults
> and cie.
>
> Best regards,
>
> --
> Christian Gillot <cgillot@neo-rousseaux.org>
> GNU/Linux developer
>
XIMInputServer.m
Description: Binary data
- Re: 2-bytes character display ready ?, (continued)
- Re: 2-bytes character display ready ?, BALATON Zoltan, 2002/02/25
- Re: 2-bytes character display ready ?, Nicola Pero, 2002/02/27
- Re: 2-bytes character display ready ?, Fred Kiefer, 2002/02/19
- RE: 2-bytes character display ready ?, Yen-Ju Chen, 2002/02/19
- Re: 2-bytes character display ready ?, Fred Kiefer, 2002/02/20
- Multibytes character support, Yen-Ju Chen, 2002/02/24
- RE: Multibytes character support, Yen-Ju Chen, 2002/02/24
- Re: Multibytes character support, Christian Gillot, 2002/02/24
- RE: Multibytes character support,
Yen-Ju Chen <=
- Archive NSDecimalNumber, Yen-Ju Chen, 2002/02/24
- Re: 2-bytes character display ready ?, Richard Frith-Macdonald, 2002/02/19
- Re: 2-bytes character display ready ?, Richard Frith-Macdonald, 2002/02/19
- Re: 2-bytes character display ready ?, Pete French, 2002/02/19
- Re: 2-bytes character display ready ?, Richard Frith-Macdonald, 2002/02/19
Re: ANN: EasyDiff v0.1, Philippe C.D. Robert, 2002/02/16