Hi there everybody. Here is my problem, which may be a beginner's problem: I've installed xcin under Suse Pro 9.0. I believe I read all of the documentation and I think I installed all the required software packages. But when I start xcin and then, say, gvim to enter Simplified Chinese text, all I can enter are Latin characters. I see the xcin window. I also see the gvim window with Chinese menu and everything. But none of the key combinations defined in /etc/xcin/xcinrc, like ctrl-space, seem to have any effect. This is what xcin says on startup:
XCIN (Chinese XIM server) version 2.5.3-pre2. (module ver: 20010918, syscin ver: 20000210). (use "-h" option for help)
xcin: locale "zh_CN.GB2312" encoding "gb2312" xcin: XIM server "xcin-zh_CN.GB2312" transport "X/" xcin: inp_styles: Root OverTheSpot And this is what I do to start gvim:
export LANG=zh_CN.GB2312 xcin & export XMODIFIERS="@im=xcin-$LANG" gvim
Any ideas what to check next? Thanks for your help in advance :-) Regards, Rolf
Rolf Lochbühler <rolf.lochbuehler@web.de> さんは書きました:
Hi there everybody.
Here is my problem, which may be a beginner's problem:
I've installed xcin under Suse Pro 9.0. I believe I read all of the documentation and I think I installed all the required software packages.
But when I start xcin and then, say, gvim to enter Simplified Chinese text, all I can enter are Latin characters.
I see the xcin window. I also see the gvim window with Chinese menu and everything.
But none of the key combinations defined in /etc/xcin/xcinrc, like ctrl-space, seem to have any effect.
This is what xcin says on startup:
XCIN (Chinese XIM server) version 2.5.3-pre2. (module ver: 20010918, syscin ver: 20000210). (use "-h" option for help)
xcin: locale "zh_CN.GB2312" encoding "gb2312" xcin: XIM server "xcin-zh_CN.GB2312" transport "X/" xcin: inp_styles: Root OverTheSpot
And this is what I do to start gvim:
export LANG=zh_CN.GB2312 xcin & export XMODIFIERS="@im=xcin-$LANG" gvim
Looks like a bug in xcin. Workaround: Use the alias "zh_CN" instead of "zh_CN.GB2312" when starting xcin: LC_CTYPE=zh_CN xcin & export XMODIFIERS=@im=xcin-zh_CN LC_CTYPE=zh_CN.GB2312 gvim xcin is started like that in ~/.xim, that's why it works by default if the system language is set to Chinese. But actually zh_CN and zh_CN.GB2312 are the same, the latter is just an alias for the former. Therefore it should not matter which one you use. But for xcin it does matter. This must be a bug in xcin, I'll look into that. -- Mike FABIAN <mfabian@suse.de> http://www.suse.de/~mfabian 睡眠不足はいい仕事の敵だ。
Hello Rolf, I don't know how to answer your questions precisely but I have been using xcin + gvim in gb2312 (under suse8.1) for quite some time. Can't remember all the installation steps but here is how I start it : LC_CTYPE=zh_CN.gb2312; export LC_CTYPE xcin & XMODIFIERS="@im=xcin-zh_CN.gb2312"; export XMODIFIERS gvim --xim-preedit area --xim-status area & Watch out for the ampersand on the gvim line ! I use the root input style. Overthespot never worked well. Without the options gvim doesn't work (for me at least). I supposed you told xcin which font to use. I have in my file /etc/xcin/xcinrc the following lines ............... (define zh_CN.GB2312 ....... (FONTSET "-sony-*-24-*-iso8859-1,-*-medium-r-*-24-*-gb2312.1980-0") (OVERSPOT_FONTSET "-sony-*-16-*-iso8859-1,-*-medium-r-*-16-*-gb2312.1980-0"))) ................... You may also first install rxvt and try to input some chinese into it with xcin to check that your xcin is working correctly. then you can tune others xcin's clients like gvim, kmail, mozilla, etc. regards, Christine
All: Thanks for your help. Now I use the script LC_CTYPE=zh_CN xcin & export XMODIFIERS="@im=xcin-zh_CN" LC_CTYPE=zh_CN.GB2312 $1 & to start my editors. This works, for example, with gvim 6.2.89 OpenOffice 1.1.0 kedit 1.3 The xcin revision, by the wy, is 2.5.3-pre2. Christine: I don't need any further arguments for gvim. Actually this gvim revision doesn't even seem to like the command line options you mentioned in your reply. At least gvim didn't start whenever I tried them. Also, Suse Pro 9.0 by default has the following lines in /etc/xcin/xcinrc: (FONTSET "-sony-*-24-*-iso8859-1,-*-medium-r-*-22-*-gb2312.1980-0,-*-medium- r-*-24-*-gb2312.1980-0") (OVERSPOT_FONTSET "-sony-*-16-*-iso8859-1,-*-medium-r-*-16-*-gb2312.1980-0") Regards, Rolf
participants (3)
-
christine mousset
-
Mike FABIAN
-
Rolf Lochbühler