My terminology:
* conversion server, conversion engine: Wnn6, ATOK, etc
* input server: kinput2, htt, etc
* input method: XIM, egg-its, etc
"Stephen J. Turnbull" <turnbull(a)sk.tsukuba.ac.jp> writes:
>>>>> "Kazz" == Kazuyuki IENAGA
<ienaga(a)jsys.co.jp> writes:
Kazz> "T. Kurosaka - Sun Professional Services"
Kazz> <kuro(a)Japan.Sun.COM> writes:
>> I'm using shelltool within the OpenWindows environment.
>> Because I can enter Japanese text using vi in shelltool, I
>> don't think this is a shelltool problem.
Kazz> It doesn't matter of terminal emulator but input method,
Kazz> doesn't it?
Well, no. There are several ways that this can be implemented.
What I intended to say is "input methods" not XIM. There will be a
difference on input methods between Kurosaka-san's and Steve's, XIM
and egg-its.
<description_of_solaris_xim>
Solaris operating system (Asian/Japanese) gives an way to select
several conversion engine to user; ATOK{7,8}, Wnn6 and etc.
By default the conversion server is Wnn6 for Solaris 2.6 or later.
Shelltool (or any i18n libxview'ed client) talk to an input server
named "htt" and the htt will talk to the conversion server.
The user can change the conversion server using htt_props.
Wnn6 <--socket--> htt <--Xlib, xview--> shelltool
Wnn6 <--socket--> kinput2 <--Xlib--> kterm
I've found libxview.a has a symbol XOpenIM.
</description_of_solaris_xim>
(1) shelltool is XIM-enabled, filters everything, and sees only the
events XIM chooses to give it. It passes Japanese to the app.
Diagnosis: input method problem.
(2) shelltool looks at the events and decides what to pass to XIM. It
passes Japanese to the app. Diagnosis: shelltool or input method.
(3) No XIM, but shelltool connects directly to an input server. It
passes Japanese to the app. Diagnosis: shelltool, input method,
or app may be confused.
(4) No XIM in shelltool, which thinks it's passing a TTY
representation of the keystrokes to the app, which actually
implements XIM which steals the keystrokes. (I don't think this
actually ever happens, as it would require a keyboard grab by the
input server. Abomination. But that's the way that FEPs are
implemented in DOS/Windose, at least up to 1994 or so.)
Diagnosis: App or input method problem.
(5) No XIM in shelltool, which passes a TTY representation of the
keystrokes to the app, which directly connects to a henkan server.
Diagnosis: App or input method problem.
I think (1).
But if you mentioned "input method" as shelltool's input method, I
think it's not input method problem, but XEmacs's input stream on tty,
unfortunately.
And of course all of these can be implemented as alternatives, as in
XEmacs.
I have no idea what the problem is, since I know nothing about the
various tools (except XEmacs). If XIM weren't so buggy, consistently
using it would make debugging a lot easier ;-)
The XIM feature of XEmacs isn't so buggy except the time when XIM has
died ;-}
I have no idea with why the "-nw" of XEmacs can't accept multi-byte
input from terminal right now...
I've tested it on Solaris7, kterm and kinput, and got the following
result when I put "あああ" in buffer.
033 , A $ " $ " $ " 033 ( B
But got no result on FreeBSD/Linux + kterm + kinput2.
###
BTW, does anyone tried VMware (see
http://www.vmware.com/)?
I'm now evaluating it and it's working very well.
It's cool that I don't need to have two machines for Unix and Windows
(don't ask me why ;-)!
--
kazz