Marc Waeckerlin <Marc.Waeckerlin@siemens.com> さんは書きました:
I don't know whether this is a know issue or not, but Google didn'd find a matching thread:
xim: CVS version 1.5
[...] zh_CN*) # Simplified Chinese [...] case $tmplang in zh_CN.UTF-8|zh_CN.utf-8) chinput -gb & ;; *) chinput & ;; esac [...]
I have the followig system settings (to combine german and chinese):
RC_LANG="de_CH.UTF-8" RC_LC_CTYPE="zh_CN.UTF-8"
Problem with chinput:
- There is no need for an '&', it automatically goes to background
- Option '-gb' results in: "Basic: Cannot open font "\ "-misc-zysong18030-medium-r-normal-16-000c0iso10646-1"
- Startup *must* be: LANG=zh_CN LC_ALL=zh_CN chinput Otherwise it does not work!
- without "LANG=..." -> Segmentation fault
- With "LANG=zh_CN.UTF-8 ..." -> "Can't Open Input Method Service"
I remember adding the above lines because somebody told me chinput should be started like that. I have never used chinput and there isn't a SuSE package for chinput. I don't plan to create a package either as the intelligent pinyin module of SCIM has become GPL and will be included in SuSE Linux 9.2. So there is really no need for a chinput package anymore. SCIM has become very powerful and can be used to input many languages now. SCIM even has built in support for compose and dead keys, with most other XIM servers you cannot use neither compose nor dead keys. Therefore SCIM will be the default for Japanese, Korean, and Chinese in SuSE Linux 9.2.
Any idea? Other experiances? Could you correct it?
I have changed the part for zh_CN according to your suggestion as follows for SuSE Linux 9.2: zh_CN*) # Simplified Chinese if type -p scim > /dev/null 2>&1 ; then export XMODIFIERS=@im=SCIM export GTK_IM_MODULE=scim export QT_IM_MODULE=scim scim -d elif type -p chinput > /dev/null 2>&1 ; then export XMODIFIERS="@im=Chinput" LANG=zh_CN LC_ALL=zh_CN chinput elif type -p xcin > /dev/null 2>&1 ; then export XMODIFIERS="@im=xcin-zh_CN" LANG=zh_CN LC_ALL=zh_CN xcin & fi ;;
BTW: Mike Fabian: Do you allow me to publish your xim file on my homepage (will be marc.waeckerlin.org/linux/i18n.php when it's finished)?
Yes.
I see no "License is GPL" comment.
I've just added that. You can get the latest version from http://www.suse.de/~mfabian/misc/xim -- Mike FABIAN <mfabian@suse.de> http://www.suse.de/~mfabian 睡眠不足はいい仕事の敵だ。