作者: Keiichi Takahashi
日時: 2002/4/05(20:16)
ビットウォークの高橋です。

CVSにあるTcl/Tk8.4について、Jeff氏がXIMおよびIMEの(いわば)漢字インライ
ン変換用のAPIを追加したそうです。これからCVSからソースを入手して、まず
Linux上でコンパイルしてテストしてみようと思います。使い心地などについて
また報告します。

参考までに、私に届いたメールを以下に添付しました。

-------- Original Message --------
Subject: XIM / IME "over-the-spot" support in 8.4 for testing
Date: Fri, 5 Apr 2002 00:58:54 -0800
From: "Jeff Hobbs" <JeffH@...>
To: <tcl-core@...>
CC: <mfabian@...>, <bitwalk@...>,   "'Moo Kim'"
<Moo.Kim@...>

I just commited a series of patches to the Tk 8.4 head to support XIM
and IME "over-the-spot" behavior.  This means CJK users can expect the
CJK input box to appear where the cursor is on the screen.

This behavior is used by default, but there is you build with
-DTK_XIM_SPOT=0 then this will be disabled.

This required adding a Tk_SetCaretPos function to allow widgets to
indicate to Tk where their cursor is.  I'll doc this all up once I'm
satisfied that it is all we need.  In addition to getting over-the-spot
XIM/IME, this also make Tk compliant with the Microsoft Accessibility
API by declaring where focus should go.  Thanks to Moo Kim for those
initial patches which led me on my voyage of discovery into how to
make that work for XIM/IME too.

At the moment, I've made the Text, Canvas, Spinbox, Entry and Windows
Button "caret-aware".  It may be necessary to make other core widgets
caret-aware, or perhaps just "reset" the caret position as a default
behavior when a widget receives focus (or when a caret-aware widget
loses focus?).

Anyway, I'd like those that actually use these features to give the
8.4 head a test and see if it all "feels" right.  I've tested with
Win2K IME and SuSE 7.3 Kinput2/Canna only.

  Jeff Hobbs                     The Tcl Guy
  Senior Developer               http://www.ActiveState.com/
      Tcl Support and Productivity Solutions
 Join us in Sept. for Tcl'2002: http://www.tcl.tk/community/tcl2002/



-- 
Keiichi Takahashi, bitWalk Co.,Ltd.
mailto:bitwalk@...
http://members10.tsukaeru.net/bitwalk/