Hi, satimis,
Quote:
On Xfce4 desktop started kedit
[Ctrl]+[space] no effect. Chinese editing did not start.
|
How do you start kedit, from command line in xterm or from xfce desktop menu?
Because you export environment variables manually from the console, only applications from the same shell can see these variables, so you need to start kedit/kate/kwrite from command line in the same console. If you start editors from the desktop menu, the editors will not see these variables.
To overcome this, I set the LANG variable globally in
/etc/profile.d/lang.sh (or /etc/profile.d/lang.csh if you are using csh)
Code:
# File: /etc/profile.d/lang.sh
LANG=en_US.UTF-8
Also I put these lines in my
~/.bashrc
Code:
# File: .bashrc
export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE=xim
export QT_IM_MODULE=xim
Lastly, I create
~/.bash_profile, and put these lines.
Code:
# .bash_profile
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
For autostart scim in xfce, I create an autostart file called
startscim and put it into
$HOME/Desktop/Autostart.
Code:
#!/bin/sh
# File: ~/Desktop/Autostart/startscim
# Auto start scim from XFCE
scim -d
Make it executable
Code:
chomd +x ~/Desktop/Autostart/startscim
Then restart X, you will be able to trigger Chinese input with Ctrl+space in the following applications.
1. In Firefox when the cursor is in the address bar.
2. In Google when the cursor is in the search box.
3. when the cursor is in the any other input box.
4. In editors such as gedit, kate, kedit.
However, in many KDE applications, some of the Chinese characteres are not viewed correctly, they are displayed as 'dot' or 'box'. My experience is change the font from KDE control center to 'sans serif'.
IMO, Gnome has better Chinese support than KDE.
Hope this helps.
lchxr