bug-gnustep
[Top][All Lists]
Advanced

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

Re: Extension to XIM support


From: Kazunobu Kuriyama
Subject: Re: Extension to XIM support
Date: Sat, 12 Jul 2003 10:30:30 +0900
User-agent: Mozilla/5.0 (X11; U; Linux i686; ja-JP; rv:1.0.0) Gecko/20020614

Alexander Malmberg wrote:

> [snip]
> The default is XIM-specific, and this should be reflected in its name
> (by including X or XIM or something). _-gui_ is not XIM- or X-specific,
> and this should be reflected in its implementation (by not including X-
> or XIM-specific code in it).

I understand. In particular your experiences are quite persuasive.
>
> [snip]
>
> Yes. The "proper" (in a *step sense) way of doing this would be to use
> NSInputManager, NSTextInput, et al. However, if it is impossible or
> prohibitively difficult to make XIM fit into this, a decent solution
> would be to add generic hooks to NSTextView. I could add two methods:
>
> -(void) _updateInputMethodWithInsertionPoint: (NSPoint)p;
> -(void) _updateInputMethodState;
>
> and call them where necessary. The implementations in the main
> NSTextView implementation would be empty, and you could provide the
> XIM-specific versions in a category somewhere in back/Source/x11/ (using
> internal backend methods on XGServer). Although this would be outside
> the normal text input architecture, it would keep the X-specific parts
> in the X backend, I don't see any technical reasons why it wouldn't
> work, and no other changes would be necessary in -gui so it wouldn't
> conflict with anything on other backends.
>
This makes things clearner.  I'll try to modify the code as soon as you
implement the methods mentioned above.

After the patches are officially adopted, I'll try to reimplement the XIM
support with the NSInput/NSTextInput paradigm.

After sending my previous email, I spent several hours to read Apple's
document that you told me in one of your previous email. Now I understand
the implication of your suggestion, which I found theoretically, logically
sound.  I feel, however, that I need to examine all the implementation
of the relevant classes to make sure if the XIM support can be built on
the basis of the classes.  Also, as you suggested, it may be necessary
for me to write some extra code beyond the XIM support.

I would be happy if you could also cooperate with me in the "proper"
implementaion in near future.

- KK










reply via email to

[Prev in Thread] Current Thread [Next in Thread]