Dev:XIM Input

From AMSN
Jump to: navigation, search

I am glad to inform you of XIM (X Input Method) support in AMSN, which means we could finally type Traditional Chinese... AMSN via XIM server, such as XCIN. Here are my instructions:

1. get Tcl/Tk tarball with i18n patched

 wget http://jserv.sayya.org/tcl-i18n/tcl8.3_8.3.3-7.tar.gz
 wget http://jserv.sayya.org/tcl-i18n/tk8.3_8.3.3-8.tar.gz

2. apply zh_TW locale patch

 wget http://jserv.sayya.org/tcl-i18n/tcl8.3-fix-zh_TW.diff
 cd tcl8.3-8.3.3
 patch -p1 < ../tcl8.3-fix-zh_TW.diff

3. build Tcl with /opt prefix (It's my case only, and you can change it as you like)

 ./configure --prefix=/opt
 make ; make install

4. build Tk

 cd tk8.3-8.3.3
 ./configure --prefix=/opt
 make ; make install

5. patch AMSN to adapt our own Tcl/Tk runtime (/opt/bin/wish8.3)

 wget http://jserv.sayya.org/tcl-i18n/amsn-0.91-fix-path.diff
 cd amsn-0.91
 patch -p1 < ../amsn-0.91-fix-path.diff

6. launch AMSN

 ./amsn

That's all. Now, we could use XCIN as XIM in AMSN, and everything goes around.

Here is my screenshot of patched AMSN and Tcl/Tk:

screenshot

Notice the Chinese characters rendering well.

cheers, Jim Huang <jserv AT kaffe.org>

Personal tools