Re: [dev] 转发: [dmenu] support for input methods

From: 谭俊浩 <pickfire_AT_riseup.net>
Date: Mon, 9 May 2016 22:03:09 +0800

On Mon, May 09, 2016 at 01:48:01PM +0000, 张 睿 wrote:
>Hello,

>I noticed that dmenu is not compatible with some Asian language input methods. I have created a patch to fix this (see attachment).

>From Xlib Programming Manual:

>> As with internationalized text output, it is with the Asian ideographic languages that things become complicated. Japanese and Korean both have phonetic alphabets that are small enough to physically map onto a keyboard. It is sometimes adequate to leave text in this phonetic alphabet, but usually the user will want the final text to be in the full ideographic language. Input methods for these languages commonly have the user type the phonetic symbols for a particular word or words and signal somehow when this composition or pre-editing is finished. The input method then looks up that string of phonetic characters in a dictionary and converts it to the equivalent character or characters in the ideographic system. Sometimes there will be more than one character with a given phonetic representation, in which case the user will have to select between them.

>In addition to the fix, I would like the program to handle XBufferOverflow (or simply use a larger buffer), since the input method might generate many bytes in a time.

It doesn't help much for the current dmenu, I can't use the input
manager (fcitx) in dmenu. There is some bugs in moving across CJK
characters, for dmenu assumes that the character is only one byte
therefore it can't move through characters correctly even if I have
pasted those characters into dmenu.

What do you plan to do?


-- 
 _____________________________________
< Do what you like, like what you do. >
 -------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
Received on Mon May 09 2016 - 16:03:09 CEST

This archive was generated by hypermail 2.3.0 : Mon May 09 2016 - 16:12:11 CEST