Chinese input in English environment
Hi folks,
Slackware-11.0 KDE 3.5 Please advise; 1) How to read Traditional/Simplified Chinese in English environment 2) How to add Traditional Chinese input in English environment I have been googling around. What I can find was to change it to Chinese environment with menu in Chinese. TIA B.R. satimis |
See here: Multilingual Text Support on Linux.
Short form: Make sure you're running a UTF-8 language environment, then install scim and a supported Chinese IME program. |
Quote:
http://www.linuxquestions.org/questi...d.php?t=520151 Quote:
|
Hi David the H.
Tks for your advice and link. The above refers to Debian. The files mentioned there can't be found on slamd64-11.0. I made full installation of slamd64-11.0 ls /usr/X11/lib/X11/locale/ Code:
C iso8859-1 iso8859-6 ko_KR.UTF-8 microsoft-cp1256 zh_CN Code:
# ls /usr/X11/lib/X11/locale/zh_CN Quote:
Code:
No package contains the selected pattern. Where can I get scim. TIA B.R. satimis |
Hi diskoe,
Quote:
Where can I downloamd zh-arphicttf-2.11.tar.gz? The sites "ftp://freebsd.sinica.edu.tw/pub/keith/" seems not working. Tks. B.R. satimis |
Google is your friend. There are many FreeBSD mirrors.
ftp://ftp.freebsd.org/pub/FreeBSD/po...tf-2.11.tar.gz |
|
Hi diskoe,
# which mkfontscale Code:
which: no mkfontscale in (/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin) Code:
which: no mkfontdir in (/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin) I suppose mkfontscale, mkfontdir, etc. coming from xorg-x11-font-utils # slackpkg search xorg-x11-font-utils Code:
Where can I find the package xorg-x11-font-utils for slamd64. Googling did not find it. Tks. B.R. satimis |
You find those applications in /usr/X11R6/bin -- in stock Slackware and in Slamd64.
|
Suppose you need an English environment with Chinese support.
For chinese display 1. install kdei (in slackware-11.0-CD3) Code:
kde-i18n_kde-i18n-zh_CN-3.5.4-noarch-1.tgz <--- for Simplified Chinese suuport. (a) Copy TTF fonts from Windows to Slackware (sim*.ttf) (b) Download TTF fonts from http://www.ctan.org/tex-archive/fonts/arphic/ Code:
gbsn00lp-20050720.tar.gz <--- simplified Chinese fonts http://wqy.sourceforge.net/cgi-bin/enindex.cgi Install Chinese fonts as TTF fonts as other post discussed. Then you can read Chinese without problems. For Chinese input 3. Install SCIM, Code:
wget http://downloads.sourceforge.net/scim/scim-1.4.5.tar.gz Code:
wget http://downloads.sourceforge.net/scim/scim-pinyin-0.5.91.tar.gz 5. setup locale Code:
export LANG=en_US.UTF-8 Code:
#File /etc/profile.d/lang.sh Code:
export XMODIFIERS="@im=SCIM" Code:
scim -d I cannot active "Pinyin Input" in vim or emacs. If you have a solution for vim and emacs editor, please post here. I have created scim.Slackbuild, scim-pinyin.SlackBuild, scim-fcitx.SlackBuild, and *-.tgz for my own use. I don't know how to upload. |
Hi,
I followed your instructions, and everything seems okay, just that when I press Ctl-Space nothing happens. (I have tried to do Chinese input in the past, and always get stuck on this point.) Can you help me? Is there any other way to invoke the input method other than Ctl-Space? Thanks, Brian |
Hi lchxr,
Tks for your advice. Following diskoe's advisce above Traditional Chinese can be displayed without problem. Now I'm prepared to install Traditional Chinese input Quote:
Quote:
Quote:
Do I need to install; scim-gtk2-immodules scim-modules-socket scim-tables-zh If YES where can I download them. TIA B.R. satimis |
Quote:
Code:
$ locale Quote:
|
Quote:
I am not sure if scim-gtk2-immodules and scim-modules-socket are necessary. I have installed Dropline Gnome. In my Slackware 11.0 I have Code:
$ ls /etc/gtk-2.0 |
Hi lchxr,
Tks for your advice and URL. Performed following steps; # ls /etc/gtk-2.0 Code:
gdk-pixbuf.loaders gtk.immodules scim-1.4.5.tar.gz scim-tables-0.5.7.tar.gz Ran # tar zxf scim-1.4.5.tar.gz # tar zxf scim-tables-0.5.7.tar.gz # cd /path/to/scim-1.4.5 # ./configure --prefer=/usr # cd /path/to/scim-tables-0.5.7 # ./configure --prefer=/usr Both went through without complaint. # export LANG=en_US.UTF-8 # export XMODIFIERS="@im=SCIM" # export GTK_IM_MODULE=xim # export QT_IM_MODULE=xim # scim -d Code:
scim: error while loading shared libraries: libscim-1.0.so.8: cannot open shared object file: No printout Which package provides "libscim-1.0.so.8"? Where can I download it? Tks. What is the difference between - running "export LANG=en_US.UTF-8" and - adding it on /etc/profile.d/lang.sh Tks B.R. satimis |
Quote:
|
Hi lchxr,
slamd64-11.0 Quote:
bash-3.1# cd scim-1.4.5 bash-3.1# ./configure --prefix=/usr bash-3.1# make && make install bash-3.1# cd .. bash-3.1# cd scim-tables-0.5.7 bash-3.1# ./configure --prefix=/usr bash-3.1# make && make install Both went through without complaint. bash-3.1# export LANG=en_US.UTF-8 bash-3.1# export XMODIFIERS="@im=SCIM" bash-3.1# export GTK_IM_MODULE=xim bash-3.1# export QT_IM_MODULE=xim All went through without complaint bash-3.1# scim -d Code:
Smart Common Input Method 1.4.5 [Ctrl]+[space] no effect. Chinese editing did not start. started kwrite. Result was the same. B.R. satimis |
no idea at the moment. I will post here if I get the result.
|
Hi, satimis,
Quote:
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 Code:
# File: .bashrc Code:
# .bash_profile Code:
#!/bin/sh Code:
chomd +x ~/Desktop/Autostart/startscim 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 |
Hi lchxr,
Quote:
1) On xterm/Terminal 2) On Xfce4 desktop Performed following steps as root (Still fail unable to start Chinese enditing. [Ctrl]+[Space] without effect.) # nano /etc/profile.d/lang.sh copied "LANG=en_US.UTF-8" on it Remark: this is not an empty file already having following line on it; export LC_COLLATE=C # nano ~/.bashrc copied following lines on it Code:
export XMODIFIERS="@im=SCIM" # nano ~/.bash_profile copied following lines on it Code:
# .bash_profile # nano $HOME/Desktop/startscim copied following lines on it Code:
#!/bin/sh # chmod +x ~/Desktop/startscim Restarted X 1) Started Terminal and then kedit Pressed [Ctrl]+[Space] without effect 2) Started kedit on Xfce4 desktop Pressed [Ctrl]+[Space] also without effect Quote:
I did it before "adding Chinese editing" on Xfce4 running Ubuntu as OS. It needed; scim-gtk2-immodules scim-modules-socket scim-tables-zh To edit Chinese, started Terminal --> Right click --> select "Chinese Input" --> on Terminal evoke kedit/OOOfice/etc. B.R. satimis |
All times are GMT -5. The time now is 12:36 PM. |