You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Chunrong Lai (JIRA)" <ji...@apache.org> on 2007/12/18 17:27:43 UTC

[jira] Created: (HARMONY-5325) [classlib][im] Introduce XIM client into Harmony

[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



  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.


[jira] Updated: (HARMONY-5325) [classlib][im] Introduce XIM client into Harmony

Posted by "Chunrong Lai (JIRA)" <ji...@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.


[jira] Updated: (HARMONY-5325) [classlib][im] Introduce XIM client into Harmony

Posted by "Chunrong Lai (JIRA)" <ji...@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:     (was: H5325.updated.2.patch)

> [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: 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.


[jira] Updated: (HARMONY-5325) [classlib][im] Introduce XIM client into Harmony

Posted by "Chunrong Lai (JIRA)" <ji...@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: xim protocol.txt


 I searched from Web and see below bug report is similar as what I have seen. 
  
  https://bugs.freedesktop.org/show_bug.cgi?id=1182
  http://www.mail-archive.com/debian-x@lists.debian.org/msg54158.html

 This probably means that we need a better thread control in the embedded XIM client.

 

> [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: 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.


[jira] Updated: (HARMONY-5325) [classlib][im] Introduce XIM client into Harmony

Posted by "Chunrong Lai (JIRA)" <ji...@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: linuxim.1217.diff.2
                i18n_input.c


 Here is the standalone XIM client and similar implementation in Harmony.

> [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: i18n_input.c, linuxim.1217.diff.2
>
>
>   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.