[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: URL for an English site describing how to enable Chinese



Dear Bengt:

To enable Chinese input method with X11/gnome, one of
the good approaches what I am using is make the system
and X11 aware of the following environment variables. 

1)  export LC_CTYPE="zh_CN.UTF8"
2)  export XMODIFIERS=@im=fcitx  

where fcitx is a popluar Chinese input method, I found
it is quite stable and simple comparing to SCIM,
especially adapting to a multi-monitor environment.

As an example, I would like to give my solution at
here as your references:

1)Run "apt-get install fcitx" to obtain the fcitx
program.  

2)Here I would suppose you are using gdm as your login
shell.  Then on my box I just modify /etc/gdm/Xsession
to insert a few lines after localisation:

....
  else
    unset LINGUAS
  fi
fi

# PLEASE ADD THE FOLLOWING TEXT
# Include the script inside the user own directory
if [ -f ~/.gdm_profile ]; then
    . ~/.gdm_profile
fi

# The default Debian session runs xsession first, so
we just do that for
# "custom"
...

and 3) then you can edit ~/.gdm_profile like this :

  export LC_CTYPE="zh_CN.UTF8"
  export XMODIFIERS=@im=fcitx  

Note: surely you can modify ~/.xsession file to
achieve the same goal.  But personally I dont like
this change to bother other shells :-)  Furthermore I
suppose that the others such as KDE, xfce etc. can
apply a similar approach.  Additionally, if your X11
is launched by a login console with startx etc., you
might want to perform the change to .bashrc. 

4) add fcitx daemon to gnome->Desktop
Preferences->Advanced->Sessions as a auto-load program
when gnome is loading. 

5) restart gnome and try to open a gnome application
like gedit and hit C-SPC see what happened.

There are several advantages to configure like above. 
The most important one is that every user can
customise their own language options in their own
directory and this would not effect other shells.  If
another particular shell like KDE/kdm requires the
same thing, guide the first kdm session to that
configurtion file.  

If you have any other problem and good suggestion,
please let me know.  I would be very gald to discuss
with you. 

Enjoy Chinese, 

Frank 
>From Manchester, UK


--- Bengt Thuree <bengt@thuree.com> wrote:

> Hej Frank
> 
> Thanks for your reply and suggestions.
> Really appreciate it.
> 
> 
> >
> > Congratulation you have a chinese wife :P
> Xie Xie ni :)
> 
> > I am not very sure your situtation.  To enable
> chinese
> > in Debian Linux, you could 1) select a Chinese
> > environment under Gnome/KDE appending to your
> wife's
> > account.  By this approach your wife will obtain a
> > full-chinese (not completed) operating environment
> > when she logins to Gnome/KDE (such as menus,
> Dialog
> > boxes) and you still can keep your language with
> your
> > account.
> Yes, this is one option, which could be usefull. On
> the other hand, my
> wife is to used to all the various computer
> terminologies in English to
> feel very comfortable in a pure Chinese environment.
> 
> > 2) attach a Chinese input method to any language
> with
> > UTF-8 encoding (e.g. en_GB.UTF-8). By this
> approach
> > system can input/recognise Chinese but the
> menu/others
> > will be as yours preferred lanuage.
> So, I should only have a UTF-8 environment?
> I usually set up ISO-8859 for en_US and sv_SE, as
> well as GB2312 for zh_CN
> and BIG5 for zh_TW in addition to UTF-8 on all the
> languages as well.
> But yes, since I would have to support her in
> various tasks, and my
> reading skills in chinese is practically 0, the best
> alternativ is to be
> able to switch input language but keep the system on
> English.
> 
> >> Our goal it to enable chinese for file names,
> open
> >> office, gaim, web and
> >> email. NMF/Samba mounting files from a file
> server as well, which has
> to cope with Chinese file names. Samba3 seems to
> handle it though.
> 
> >
> > Could you tell us which desktop environment you
> are
> > using?  Gnome, KDE or both?
> I am mainly using Gnome, but have been playing
> around with KDE as well.
> Will try to stay with Gnome though.
> 
> 
> >
> > My English is quite bad.  So please be patient.
> Your english is very good. I am currently in Japan
> and the english level
> here is much less than in China.
> 
> /Bengt
> 
> -- 
> Bengt Thuree (www.thuree.com)
> 
> 



		
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 



Reply to: