ISO: Help regarding Tcl/Tk 8.4 Japanese Input Methods 
Author Message
 ISO: Help regarding Tcl/Tk 8.4 Japanese Input Methods

The following question comes from one of my developers - please help us!

   I am trying to use the kinput2 XIM from a Tk program.  It works with an old version of Tk (Tcl7.6/Tk4.2), but not with my current version (Tcl/Tk8.4).

   The Tk program (jpinput.tcl) is:

        #! /usr/tcl76/sun4/bin/wish4.2jp -f

        tk useinputmethods 1
        entry .nihon
        pack .nihon

It works when I swap the first two lines and comment out the new "tk useinputmethods" command.  Is there a "jp" version of the current wish or are patches needed for Japanese input?

   The program is invoked from the shell script

        export LANG
        #export LC_CTYPE=ja

        export LC_ALL XMODIFIERS

        XUSERFILESEARCHPATH="/.../app-defaults/%N"; export XUSERFILESEARCHPATH

        /.../kinput2 -canna &

The commented environment variables are experiments.  Uncommenting the LC_CTYPE or the LC_ALL statement causes the Tk 8.4 program to hang.

   The Tk 8.4 program produces the warnings:

        Warning: XimpProtocol: SelectionClear event received
        Warning: KinputProtocol: SelectionClear event received

   I am using SunOS/Solaris (I'm told things work under Linux):

        $  uname -a
        SunOS srv06 5.8 Generic_108528-22 sun4u sparc SUNW,Sun-Fire-880

which has the following locales:

        $ ls -ld /*/locale/ja* | more
        drwxr-xr-x   4 bin      bin          512 Apr 17  2002 /lib/locale/ja/
        drwxr-xr-x   4 bin      bin          512 Apr 17  2002 /lib/locale/ja_JP.PCK/
        drwxr-xr-x   5 bin      bin          512 Aug 21 11:50 /lib/locale/ja_JP.UTF-8/
        lrwxrwxrwx   1 root     other          4 Aug 21 11:48 /lib/locale/ja_JP.eucJP -> ./ja/

   Also, the wish4.2jp version uses a non-standard invocation sequence (Cntl-\).  Neither this nor Shift-space works for wish8.4.  I haven't yet found where the sequences are defined (the Kinput app-defaults file still specifies Shift-space).

   Any help would be appreciated.

<URL: http://www.*-*-*.com/ ; In God we trust.
Even if explicitly stated to the contrary, nothing in this posting
should be construed as representing my employer's opinions.

Tue, 11 Jul 2006 22:07:34 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Japanese, etc. input method

2. OpenGL Bindings for Tcl/Tk 8.4

3. ::tk::dialog::file:: throws Error in Tcl 8.4!

4. tkBuilder Fix (temporary) for Tcl/Tk 8.4

5. TCL_LIBRARY environment variables settings in Tcl/Tk 8.4 Win2k3

6. Tix and Tcl/Tk 8.4

7. tkogl - tcl/tk 8.4 precompiled binary DLLs

8. Announce: TkInfo 2.6, works with Tcl/Tk 8.4

9. ANNOUNCE: TkMan 2.2 final for Tcl/Tk 8.4

10. Tcl/Tk 8.4.* Windows helpfile

11. ANNOUCE: TkMan 2.2b1 for Tcl/Tk 8.4

12. Tcl/Tk 8.4 listing on


Powered by phpBB® Forum Software