LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-24-2004, 06:13 AM   #1
damienduff
Member
 
Registered: Feb 2004
Distribution: Etch
Posts: 117

Rep: Reputation: 15
normal user, SU CHINESE, xcin, but cant work.


i followed what JDW said in http://www.linuxquestions.org/questi...5&pagenumber=1

i created a profile just for chinese. when i am in my normal user, i open a terminal and type

normal_user@linux:~> xhost +local:chinese@

normal_user@linux:~> su chinese

chinese@linux:~> xcin

the xcin box came out but i cant CONTROL+SPACE to switch to Hanyu Pinyin input.
it just wont react no matter how many times i hit CONTROL+SPACE.

there is nothing wrong wif my xcin, bcuz when i log-in to Chinese user using X, i can use xcin wif no problem.

any idea what i can do now?

thanx
 
Old 04-24-2004, 06:17 AM   #2
damienduff
Member
 
Registered: Feb 2004
Distribution: Etch
Posts: 117

Original Poster
Rep: Reputation: 15
i suspect its the xhost thing.
but if i dun xhost +local:chinese@, i will get;

xcin: locale "zh_CN" encoding "gb2312"
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

by the way, i am using suse9.0.
 
Old 04-24-2004, 05:17 PM   #3
JDW
Member
 
Registered: Feb 2003
Location: Melbourne, Australia
Distribution: Ubuntu 6.10, Slackware 11.0
Posts: 192

Rep: Reputation: 30
normal user, SU CHINESE, xcin, but can't work.

Hi,

Just a thought, give it a try again but you fire up xcin, do it with an app where you can input text, e.g. oowriter, kword or something like that.

chinese@linux:~> xcin & oowriter

then if all goes well you should be able to CTRL+SPACE to get the input window working.

btw, do you wish to input Simplified or Traditional Chinese?

if you are using trad, then I think xcin is the best input server.

if you are generally doing Simplified Chinese, then you can't go past scim or fcitx, both very easy for pinyin input and pleasing to the eye at the same time...

hope this helps!

jdw
 
Old 04-25-2004, 02:14 AM   #4
damienduff
Member
 
Registered: Feb 2004
Distribution: Etch
Posts: 117

Original Poster
Rep: Reputation: 15
hi JDW,

this is very interesting, i cant fire up kword. i can open kword when i am log-in to chinese user in X.
so i guess its not a xcin problem but rather a X server problem. anyone has any solutions?

actually i need both traditional n simplified chinese, bcuz i use both the china n taiwan search engines.

i did tried fcitx, but it doesnt seems to work, but i must say i only tried once, i will do it again once i solve this problem. Then i will haf a simplified chinese profile wif fcitx and a traditional profile wif xcin.


normal_user@linux:> su chinese

chinese@linux:> xcin & kword
[1] 3125
bash: kword: command not found
XCIN (Chinese XIM server) version 2.5.3-pre2.
(module ver: 20010918, syscin ver: 20000210).
(use "-h" option for help)

xcin: locale "zh_CN" encoding "gb2312"
xcin: XIM server "xcin-zh_CN" transport "X/"
xcin: inp_styles: Root OverTheSpot

Last edited by damienduff; 04-25-2004 at 02:18 AM.
 
Old 04-25-2004, 05:03 PM   #5
JDW
Member
 
Registered: Feb 2003
Location: Melbourne, Australia
Distribution: Ubuntu 6.10, Slackware 11.0
Posts: 192

Rep: Reputation: 30
normal user, SU CHINESE, xcin, but can't work

Hi There,

Quote:
chinese@linux:> xcin & kword
[1] 3125
bash: kword: command not found
looks like kword is not installed, try oowriter (which probably is installed in Suse by default).

you can give SCIM a go, it can do both Traditional and Simplified using Unicode coding, which is the way of the future, but in all honesty I've never had much luck setting up a traditional Chinese profile that works well; when I am in a Trad environment, the oowriter menus come out in Portuguese, not very useful to me at all, and I am no expert in Cangjie or Taiwanese Pinyin input methods - I should put a little more time into learning about these.

keep trying with fcitx, remember to download the proper version (not the beta release), as this has full Smart Pinyin functionality...

cheers,

jdw
 
Old 04-26-2004, 06:10 PM   #6
codec
Member
 
Registered: Sep 2003
Location: mad.es.eu
Distribution: ubuntu 5.04 knoppix Slack91/10 freebsd51 vector4 redhat9
Posts: 304

Rep: Reputation: 30
Change locale on individual program. This is my method to solve i18n problems. It is good for people who doesn't use chinese everyday.

1. install bitmap font (kcfonts/taipei) and xcin. (arphic fonts are recommended as well)
2. write a short script like that:

#!/bin/sh
export LANG=zh_TW.big5
export LC_ALL=zh_TW.big5
export XMODIFIERS="@im=xcin"
xcin & epiphany

run that script and epiphany would be in chinese with input method enable. (Most of the time just set LC_CTPYE and xmodifiers are enough).

With similar method I get some language need as well. For example, I cannot type some spanish char with acens unless I set LC_MESSAGES to es_ES (but not LC_CTYPE). I still need to know how to enable simplify chinese/japanese/hkscs input. Sometimes I use wenzu and im-ja in gtk+ applications.

Last edited by codec; 04-28-2004 at 01:32 PM.
 
Old 04-27-2004, 02:37 AM   #7
damienduff
Member
 
Registered: Feb 2004
Distribution: Etch
Posts: 117

Original Poster
Rep: Reputation: 15
Xcin still cant work. i guess i just haf to log-in X as chinese user to type chinese.

using a script is also a gd suggestion, thanx.

by the way, openoffice wouldnt show the chinese fonts, only square boxes. how do i enable openoffice to show chinese fonts?

by copying fonts into /home/normal_user/OpenOffice.org1.1.1/share/fonts/truetype ?
 
Old 04-27-2004, 04:00 AM   #8
damienduff
Member
 
Registered: Feb 2004
Distribution: Etch
Posts: 117

Original Poster
Rep: Reputation: 15
well, i dunno wat i did, but suddenly openoffice has these fonts and no more square boxes.
AR PL KaitiM Big5
AR PL KaitiM GB
AR PL Mingti2L Big5
AR PL SungtiL GB

i guess maybe its bcuz i configure the country in openoffice as China, or maybe its bcuz i did not log-out n log-in after installing fonts in YAST, not sure though, watever...

thanx for all the help, appreciate it very much.
 
Old 04-28-2004, 01:41 PM   #9
codec
Member
 
Registered: Sep 2003
Location: mad.es.eu
Distribution: ubuntu 5.04 knoppix Slack91/10 freebsd51 vector4 redhat9
Posts: 304

Rep: Reputation: 30
If fontconfig/fontpath are already configurated. The method to install fonts is copy the fonts to the path and run mkfontscale, mkfontdir and fc-cache. Restart X and the fonts are installed.

It doesn't mean that open office has the fonts, run spadmin from open office and make a softlink and the fonts would become available in open office. Make sure that the font files do not have spaces or else we may see problems.

I disabled fc-cache and ldconfig so slackware would start up faster

Last edited by codec; 04-28-2004 at 01:46 PM.
 
Old 05-20-2004, 03:53 AM   #10
Jiawen
Member
 
Registered: Aug 2003
Location: Twin Cities, MN, US
Distribution: Mandriva -> Ubuntu
Posts: 106

Rep: Reputation: 15
Thank you, JDW!

If you're reading this, JDW, I just wanted to say -- thank you! You have been one of the most tireless, friendly and helpful people on this board for all sorts of Chinese problems. You've been a huge help to all sorts of folks. Good on ya! Thanks again.
 
Old 05-20-2004, 05:12 PM   #11
JDW
Member
 
Registered: Feb 2003
Location: Melbourne, Australia
Distribution: Ubuntu 6.10, Slackware 11.0
Posts: 192

Rep: Reputation: 30
normal user, SU CHINESE, xcin, but can't work

Hi Jiawen,

Very kind words indeed, thank you! Actually, I haven't really seen many responders in the LQ site who aren't kinda helpful, it's one of the things that is so cool about the Linux community...

Have a good weekend and keep hacking away at the Linux learning curve!

Cheers,

jdw
 
  


Reply



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
How do I get Flashgot to work as a normal user? ShaneK Linux - Software 2 04-21-2005 10:18 PM
Firefox Won't Work as a Normal User Baryonic Being Linux - Software 3 09-09-2004 02:14 PM
k3b does not work when I am a normal user svebe Mandriva 3 03-28-2004 11:36 PM
RedHat 9.0 and Xcin Chinese input problem kooyue Red Hat 3 02-13-2004 01:16 AM
Taiwanese Chinese (Hokkien) input method for xcin etc? uikiat Linux - Newbie 1 12-23-2003 11:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:36 AM.

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