Tgif Home
----
About Tgif
Current Release & Download
FAQ
Copyright Info
A Screendump of Tgif
Release History
Tools That Tgif Uses
Tools That Work with Tgif
Author of Tgif
Miscellaneous Info
----
 
Return to Tgif's Home Page
William Chia-Wei Cheng
(bill.cheng@acm.org)

Tgif FAQ - Input Chinese Characters

I've just compiled xcin but don't know how to invoke it within tgif-4.x. The man page is not very clear on how to input Chinese characters. Can you give me some pointers?
I'm not too familiar with xcin. This is what I can do to get some characters into it:

  1. Make sure you have something like the following in your X defaults file:

    Tgif.DoubleByteInputMethod: xcin
    Tgif.SquareDoubleByteFonts: \n\
        -hku-fixed-medium-r-normal--%d-*-*-*-*-*-big5.hku-0,*,HKU \n\
        -hku-fixed-medium-r-normal--%d-*-*-*-*-*-big5.hku-0,*,HKU \n\
        -hku-fixed-medium-r-normal--%d-*-*-*-*-*-big5.hku-0,*,HKU \n\
        -hku-fixed-medium-r-normal--%d-*-*-*-*-*-big5.hku-0,*,HKU
    

    I'm using hku-ch16 and I'm using the HKU PostScript font (which doesn't really exist -- I'm just using it as an example).

  2. Start xcin. Start tgif and select the HKU font.

  3. Type <Cntrl><Space>. This should activate xcin. Part of the xcin window becomes red and the title bar changes to "Phonetic".

  4. Type "hak1" and I get a chinese two!

  5. Type <Cntrl><Space> again and xcin is deactivated. Please note that tgif only talks to the active DoubleByteInputMethod when the active font is a double-byte font. The active font is displayed in the window of icons. You can see it changes as you move the text cursor through single and double-byte fonts.
Umm... Where can I get xcin?
You can get it from xcin's home page. Version 2.5 supposed to use XIM protocol (so you may need to change Tgif.DoubleByteInputMethod to xim) but I haven't (and couldn't) tried it out. If you've tried it, please let me know if tgif works with it.