Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 83052 invoked from network); 2 Jan 2008 06:25:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jan 2008 06:25:56 -0000 Received: (qmail 67095 invoked by uid 500); 2 Jan 2008 06:25:45 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 67076 invoked by uid 500); 2 Jan 2008 06:25:45 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 67067 invoked by uid 99); 2 Jan 2008 06:25:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jan 2008 22:25:45 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jan 2008 06:25:29 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4101371425E for ; Tue, 1 Jan 2008 22:25:34 -0800 (PST) Message-ID: <17628678.1199255134262.JavaMail.jira@brutus> Date: Tue, 1 Jan 2008 22:25:34 -0800 (PST) From: "Chunrong Lai (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-5325) [classlib][im] Introduce XIM client into Harmony In-Reply-To: <10308079.1197995263020.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-5325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chunrong Lai updated HARMONY-5325: ---------------------------------- Attachment: H5325.updated.2.patch The updated patch implements a workable XIM client in my Linux machines. You can have a try. Half of the patch is a new file awt/src/main/native/x11wrapper/unix/myFilter.cpp which implement similar functions as XFilterEvent in X11 (the original XFilterEvent leads to hang). Maybe there are some better Harmony modifications to avoid the modified Xlib. > [classlib][im] Introduce XIM client into Harmony > ------------------------------------------------ > > Key: HARMONY-5325 > URL: https://issues.apache.org/jira/browse/HARMONY-5325 > Project: Harmony > Issue Type: New Feature > Components: Classlib > Environment: Linux32 > Reporter: Chunrong Lai > Attachments: H5325.updated.2.patch, i18n_input.c, linuxim.1217.diff.2, xim protocol.txt > > > Linux use XIM client/server protocol to input Chinese. > The attached XIM client inside Harmony, named linuxim.1217.diff.2, is not intended to be committed at this form, but just for discussion purpose (and the code is not quite clean). > The tested XIM server is Fcitx3.4.2 (Trigger Chinese input by CTRL+SPACE) from http://www.fcitx.org/main/?q=node/9. Although the simple standalone XIM client i18n_input.c works well with the XIM server, similar implementation in Harmony leads to hanging up. This probably because that I am not familiar with the eventqueue processing of AWT since I can observe different events are processed interleavedly. And the hang up will also disappear if I create InputMethod (call XOpenIM) with an independent display. > I also hope somebody can have a look or test the implementation. One will need to set locale to zh_CN.GB2312 in both terminals before start XIM server and XIM client. > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.