Write cannot handle Composed dead characters

Sayamindu Dasgupta sayamindu at gmail.com
Sun Aug 24 04:58:47 EDT 2008


On Sun, Aug 24, 2008 at 4:48 AM, Marco Pesenti Gritti
<mpgritti at gmail.com> wrote:
> Sayamindu Dasgupta wrote:
>>
>> On Sat, Aug 23, 2008 at 10:49 PM, Khaled Hosny <khaledhosny at eglug.org>
>> wrote:
>>
>>>
>>> On Sat, Aug 23, 2008 at 10:45:11PM +0530, Sayamindu Dasgupta wrote:
>>>
>>>>
>>>> Hello,
>>>> It looks like Write is unable to handle Composed dead characters, at
>>>> least for the Amharic keyboard.
>>>>
>>>> http://dev.laptop.org/ticket/8127
>>>>
>>>> Things are more complicated by the fact that the right click menu in
>>>> Write has been disabled, so I have no way of knowing which GTK input
>>>> module is active with Write.
>>>> Any ideas - is this a known problem with Write ?
>>>>
>>>
>>> May be you need to set GTK_IM_MODULE environment variable?
>>>
>>
>>
>> We are already setting this in olpc-session.
>>
>
> Not sure if it actually matters here but...
>
> gtk is preloaded by rainbow, which is run as a system daemon and hence
> doesn't get the same environment of olpc-dm runned processes. If gtk does
> something with GTK_IM_MODULE in gtk_init(), we are probably in troubles.
> Easy way to verify is to disable rainbow by removing /etc/security.
>


Yes indeed - in that case, it does work (I removed
/etc/olpc-security). I also noticed that before I removed
olpc-security, I had to set the font manually, now I don't need to do
this. (Some interaction problems between fontconfig and rainbow ??)

The relevant piece of code is in
http://dev.laptop.org/git?p=projects/olpc-utils;a=blob;f=usr/bin/olpc-session;h=473d75dcb214955468ddb74cb2bd76138a02d353;hb=HEAD#l29

Any idea on how we can set the variable so that the activities can use
this properly ? Interestingly though, activities like Browse seems to
handle the composed characters just fine even if security is enabled.


Thanks,
Sayamindu




-- 
Sayamindu Dasgupta
[http://sayamindu.randomink.org/ramblings]



More information about the Devel mailing list