LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-20-2007, 08:40 AM   #16
lchxr
Member
 
Registered: Mar 2006
Posts: 42

Rep: Reputation: 15

Quote:
Originally Posted by satimis
# 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.
Have you done make && make install?
 
Old 02-20-2007, 09:12 AM   #17
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi lchxr,

slamd64-11.0

Quote:
Have you done make && make install?
Sorry I could not trace the record. Therefore I did them again.

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

Launching a SCIM daemon with Socket FrontEnd...
Loading simple Config module ...
Creating backend ...
Loading socket FrontEnd module ...
Starting SCIM as daemon ...
Launching a SCIM process with x11...
Loading socket Config module ...
Creating backend ...
Loading x11 FrontEnd module ...
GTK Panel of SCIM 1.4.5

Starting SCIM as daemon ...
SCIM has been successfully launched.
On Xfce4 desktop started kedit

[Ctrl]+[space] no effect. Chinese editing did not start.

started kwrite. Result was the same.

B.R.
satimis
 
Old 02-20-2007, 06:45 PM   #18
lchxr
Member
 
Registered: Mar 2006
Posts: 42

Rep: Reputation: 15
no idea at the moment. I will post here if I get the result.

Last edited by lchxr; 02-20-2007 at 06:51 PM.
 
Old 02-20-2007, 08:02 PM   #19
lchxr
Member
 
Registered: Mar 2006
Posts: 42

Rep: Reputation: 15
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

Last edited by lchxr; 02-20-2007 at 08:35 PM.
 
Old 02-21-2007, 02:50 AM   #20
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi lchxr,

Quote:
How do you start kedit, from command line in xterm or from xfce desktop menu?
Tried both
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"
export GTK_IM_MODULE=xim
export QT_IM_MODULE=xim

# nano ~/.bash_profile
copied following lines on it
Code:
# .bash_profile
if [ -f ~/.bashrc ]; then
   . ~/.bashrc
fi

# nano $HOME/Desktop/startscim
copied following lines on it
Code:
#!/bin/sh
# File: ~/Desktop/startscim
# Auto start scim from XFCE

scim -d

# 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:
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.
Noted with tks. I'm running Xfce4 desktop


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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
english kde environment with Chinese character view demmylls Linux - General 1 09-05-2006 04:28 PM
Is it possible to display Chinese characters in Fedora English environment? yilang Fedora 10 05-10-2006 11:02 AM
How to check English spell within a Chinese environment wuqso Linux - Software 0 01-06-2005 03:07 AM
Input Chinese in English environment qyzlp Linux - General 1 01-04-2005 09:00 PM
Can I have english menu with chinese/english/spanish input? codec Linux - General 9 10-04-2003 08:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration