akimbo337@gmx.de さんは書きました:
I'm currently using SuSE 9.0 pro for both german and japanese input. This works fine so far, by setting the variables LC_CTYPE to ja_JP.UTF-8 and LANG to de_DE.UTF-8, but nevertheless I experienced a problem:
With the LC_CTYPE set to japanese and an input method running (currently kinput2), I cannot type european language compose characters any more - at least the ones I used to produce with two sequent keystrokes ( ´ and e for é for example).
[...]
This problem seems also to be existent for other language settings that use an input method, I tried it out with a friend who uses chinese input (also on SuSE 9.0 pro).
The Compose mechanism is also sort of an input method, like XIM. Unfortunately, one can only use one such input method at a time, i.e. LC_CTYPE=ja_JP.UTF-8 XMODIFIERS=@im=kinput2 program uses kinput2 whereas LC_CTYPE=ja_JP.UTF-8 XMODIFIERS=@im=none program uses Compose (you can also write XMODIFIERS=@im=local, that is the same). Have a look at the strace to see which Compose table is used, for example: mfabian@magellan:~$ LC_CTYPE=ja_JP.UTF-8 XMODIFIERS=@im=none strace -f -eopen xterm 2
&1 | grep Compose open("/home/mfabian/.XCompose", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/X11R6/lib/X11/locale/en_US.UTF-8/Compose", O_RDONLY) = 5 mfabian@magellan:~$
As you can see in the strace, you can create a personal compose table in ~/.Xcompose, which is then preferred.
We (my friend and I) are currently writing an article about asian language input with StarOffice/OOo, so we would really appreciate any help or hint concerning this problem.
Very few applications can switch between XIM like input methods on the
fly. Actually the only one I know is mlterm. With mlterm you can do
the switch between @im=kinput2 and @im=local without restarting
mlterm.
In OpenOffice you cannot do this.
There are XIM servers which can switch between several input methods,
for example on SuSE Linux there are SCIM and uim which can switch on
the fly between different input methods.
It looks rather easy to add a input method similar to Compose to SCIM
and/or uim. I'll try to do that if I have a bit of free time.
That would solve your problem.
Another solution is to use IIIMF instead of XIM. IIIMF is the
designated successor of XIM and allows to switch input methods on the
fly. This is one of the design features of IIIMF. Because of lack of
time I have not yet created IIIMF packages for SuSE Linux though. But
I plan to do that soon.
--
Mike FABIAN