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
dmenu-im.patch
Description: dmenu-im.patch
