[dev] 答复: [dev] 转发: [dmenu] support for input methods

From: 张 睿 <zrui16_AT_hotmail.com>
Date: Mon, 9 May 2016 14:17:31 +0000

What version of dmenu are you using? I looked into dmenu-4.6's source code and it seems it correctly handles UTF-8 encoding.

The patch worked for me when I set the locale to be en_US.UTF-8. BTW I'm using fcitx, too.


发件人: 谭俊浩 <pickfire_AT_riseup.net>
发送时间: 2016年5月9日 7:03
收件人: dev_AT_suckless.org
主题: Re: [dev] 转发: [dmenu] support for input methods

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

>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:17:31 CEST

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