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

From: 张 睿 <zrui16_AT_hotmail.com>
Date: Mon, 9 May 2016 13:48:01 +0000

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.
 
Hope it helps,
Rui
     
Received on Mon May 09 2016 - 15:48:01 CEST

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