March 14, 2005

MicroWindows 輸入法程式範例

Nano-X Window System (Microwindows) 的 ftp 有個年代久遠的中文輸入法範例,而今年二月份 mailing-list 上 Zhang Hongbiao 發表了一篇 [ A IME demo program] 的 post,裡頭有個簡短清楚的輸入法實做範例。

引述 Zhang 的介紹:


    Subject: A IME demo program
    From: Zhang Hongbiao
    Date: Wed, 16 Feb 2005 11:34:29 +0800

    I'd like to present a IME demo program, maybe you can call it in this way. It's quite a simple application.'cause I wrote a request before to seek some information of input method in Microwindows.
    I found less information finally. So I wrote a demo program to demonstrate the feasibilities of introducing a input method to Microwindows. I think it may do help to some guys who are working on that direction.

    It employes a event-block-and-process-and-redispatch mechanism.
    Whenever you press a digit button, it blocks the event and translate to a '9' button event and redispathc it. Maybe you can revise it to make it work better.

Zhang 的實做挺有趣的,只要簡單的 event dispatcher 就可以將 IM logic 接起來了。

由 jserv 發表於 March 14, 2005 01:52 PM
迴響