Kaixo!

On Fri, Jan 21, 2000 at 09:57:14PM +0100, Stefan van der Eijk wrote:

> I need some help getting Chinese display / input going under Mandrake
> 7.0.
> My girlfriend is from Hong Kong (living with me in the Netherlands for 
> almost a year now). We decided to ditch the windows on her system, but 
> we're having some trouble setting up the Chinese support in Mandrake.

> xcin & gives:
> 
> XCIN (Chinese XIM server) version xcin 2.5.1-3.
> (module ver: 19990710, syscin ver: 19990521).
> (use "-h" option for help)
>  
> xcin: error: rcfile: DEFAULT_IM: value not specified.

xcin reads the locale value to decide wheter to use Big5 or BG2312 encoding.
So you must set properly those ariables.

from http://www.linux-mandrake.com/en/l10n.php3 :

     * Chinese input support: the Linux-Mandrake will include in standard
       the XIM compatible input server for the Chinese language xcin; it
       can input in Big5 as well as in Guobiao 2312.
       To have the chinese input support you need to install the rpm
       packages of locales-zh (if you haven't already), libtabe, and xcin
       (you can also install xa+cv which allows use of the xcin input
       server with programs not compatible with the XIM input protocol).
       Then you need to add in /etc/sysconfig/i18n the following lines;
       if you want Big5 support:
       LC_ALL=zh_TW.Big5
       ENC=big5
       XIM=xcin
       XMODIFIERS="@im=xcin"

If you don't want to use chinese as default for all users; put those lines
into $HOME/.i18n of a user created to use chinese; or simply define
them on the command line before switching to chinese.

Once the variables are set, you can launch xcin; then all programs 
recognizing XIM servers will be able to use it (it is called with shift-space
I think. However, I really don't know how the Big5 input is done. GB2312
uses pinyin with numbers for tones; but the Big5 one I didn't understand
how it works; maybe it is explained (in chinese) in one of the files
on /usr/doc/xcin-*
You can read them with the rxvt in rxvt-CLE; as long as the environment
variables are properly set; you can also use chinese with Gnome/Gtk programs.
KDE won't work; you need a special patched version of QT, and that isn't
included yet on our version (when I discovered that there was not enough
time to patch it and do the tests; and the tests with the patched version
failed miserabily anyway.))
You need the fonts also, of course. Linux-Mandrake has True Type fonts
in the package 'fonts-ttf-big5'. Those are very high quality fonts donated
by the 'Arphic' company.

You can maybe ask on [EMAIL PROTECTED] mailing list; there
are some poeple from Taiwan that could explain you how to input in Big5
with xcin.


Also, to tell rpm to install the chinese catalogs (the translations of the
program interfaces) you should put in /etc/sysconfig/i18n the following lines:

# the currently used variable; but it is bad as it brokes compilations :-\
LINGUAS=nl:zh
# the variable that will be used on future versions of rpm program
RPM_INSTALL_LANG=nl:zh

You may want to reinstall (with rpm -Uv --force ...rpm) the gnome-libs and
gnome-core packages; after setting those variables; so the chinese interface
and menus are installed too.

> Stefan van der Eijk
> [EMAIL PROTECTED]

-- 
Ki �a vos v�ye b�n,
Pablo Saratxaga

http://www.ping.be/~pin19314/           PGP Key available, key ID: 0x8F0E4975

Reply via email to