LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How to input chinese words in xface environment? (https://www.linuxquestions.org/questions/slackware-14/how-to-input-chinese-words-in-xface-environment-803200/)

kcynice 04-21-2010 12:15 AM

How to input chinese words in xface environment?
 
This is my first time to try xface in my slackware(I updated my slackware from 12.0 to 13.0 a few days before). But, i don't know how to configure the xface windows environment like KDE(i used this before, but found it's very slow in my my new slack). I browsed all the information on the slackbook but found nothing. Googled, failed too. So, I hope someone would like to tell me how to resolve it. Thnaks.

btw, i use scim.

BILLYKANE 04-21-2010 03:23 AM

first:
Code:

export LC_CTYPE=zh_CN.UTF-8
second:
Code:

hudi@Slackware_HuDi:~$ cat /WinE/slackware/linux/slackware/scim.sh
#! /bin/sh
export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE=SCIM
export QT_IM_MODULE=SCIM
export XIM=SCIM
export XIM_PROGRAM=SCIM
export LC_CTYPE="zh_CN.UTF-8"
scim -d &
hudi@Slackware_HuDi:~$

scim.sh is a script that I run it with xfce start.

kcynice 04-24-2010 08:06 PM

Thanks for your reply. In fact, i didn't understand what you said exactly. It seems that, i have to install wine package?( There isn't any directory named WinE.

BILLYKANE 04-25-2010 05:40 AM

scim.sh is a script that I write to start scim running with xfce start.
/WinE/slackware/linux/slackware/ is a directory where scim.sh stored.

Below is scim.sh contents:

Code:

#! /bin/sh
export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE=SCIM
export QT_IM_MODULE=SCIM
export XIM=SCIM
export XIM_PROGRAM=SCIM
export LC_CTYPE="zh_CN.UTF-8"
scim -d &


gapan 04-25-2010 12:47 PM

If I remember correctly there is an /etc/profile.d/scim.sh (and .csh) files. Makes those executable with:
Code:

chmod +x /etc/profile.d/scim.sh
The next time you restart your system, scim should be started with xfce. If it isn't, start it from the menu. You should get a scim tray icon then. By right clicking on it, you should be able to select the input mode (anthy?). You should also be able to toggle the scim bar by pressing ctrl-space. This is all from memory, so I could be missing something.


All times are GMT -5. The time now is 02:50 PM.