[XCIN] Re: Chinese input (using xcin) and OpenOffice on FreeBSD

Robert Klein RoKlein at roklein.de
Sat Apr 3 07:24:53 PST 2004


Hi, Stephen,

> # pkg_info | grep zh-xcin
> zh-xcin-2.5.3.p2_3  Chinese input method server under X
> # pkg_info | grep zh-libtabe
> zh-libtabe-0.2.5_1  Unified library for Chinese text
> processing # pkg_info | grep zh-kcfonts
> zh-kcfonts-1.05     Kuo Chauo Chinese Fonts collection

>
> Already added it to /etc/X11/XF86Config
>
> cat /etc/X11/XF86Config
> .....
> Section "Files"
>         RgbPath      "/usr/X11R6/lib/X11/rgb"
>         ModulePath   "/usr/X11R6/lib/modules"
>         FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
>         FontPath     "/usr/X11R6/lib/X11/fonts/Speedo/"
>         FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
>         FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
>         FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
>         FontPath     "/usr/local/share/fonts/TrueType/"

Please add the lines

	FontPath     "/usr/X11R6/lib/X11/fonts/local/:unscaled"
	FontPath     "/usr/X11R6/lib/X11/fonts/local/"

here, too.  This helps X to find the fonts in the zh-kcfonts 
package.  So you won't get this (see below) error anymore.  (And 
restart X, thereafter.)

> $ XMODIFIERS=@im=xcin
> $ LC_CTYPE=zh_TW.Big5
> $ export XMODIFIERS
> $ export LC_CTYPE
> $ /usr/X11R6/bin/xcin2.5 &
> $ XCIN (Chinese XIM server) version 2.5.3-pre2.
> (module ver: 20010918, syscin ver: 20000210).
> (use "-h" option for help)
>
> xcin: locale "zh_TW.Big5" encoding "big5"
> xcin: warning: invalid font BIG5-0.
> xcin: error: fontset setting error.


> Furthermore can I add
> * * * * *
> XMODIFIERS=@im=xcin
> LC_CTYPE=zh_TW.Big5
> export XMODIFIERS
> export LC_CTYPE
> /usr/X11R6/bin/xcin2.5 &
> * * * * *
>
> to
> /etc/rc.conf
> to start xcin automatically at boot

No.  Xcin needs a running X!  It opens a control window and needs 
X for this.

> On kedit window <Ctrl + Shift> did not start Chinese input

Well, without xcin running...

> > PS: forget about the "fonts" package installed by xcin.  I
> > think it is solely used by xcin to display the xcin
> > window...
>
> I could not find them after installation completed and have no
> idea where they have been installed.

I think I'm a bit confused, here.  Xcin doesn't install a fonts 
package axcept the zh-kcfonts as a dependency.

Anyway, I think xcin will start after you change the XF86Config 
file as mentioned above.

Best regards,
Robert


More information about the freebsd-openoffice mailing list