[fxruby-users] FXText widget and localization

angico angico at angico.org
Fri Jul 4 20:29:37 EDT 2008


Hi, guys.

Just wandering about the issue, I run xev and I got this sequence of
events used to generate an "e acute":


KeyPress event, serial 30, synthetic NO, window 0x5c00001,
    root 0x64, subw 0x0, time 31559119, (725,599), root:(730,648),
    state 0x0, keycode 34 (keysym 0xfe51, dead_acute), same_screen YES,
    XLookupString gives 1 bytes: (b4) "�"
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: True

KeyRelease event, serial 30, synthetic NO, window 0x5c00001,
    root 0x64, subw 0x0, time 31559224, (725,599), root:(730,648),
    state 0x0, keycode 34 (keysym 0xfe51, dead_acute), same_screen YES,
    XLookupString gives 1 bytes: (b4) "�"
    XFilterEvent returns: False

KeyPress event, serial 30, synthetic NO, window 0x5c00001,
    root 0x64, subw 0x0, time 31567005, (725,599), root:(730,648),
    state 0x0, keycode 26 (keysym 0x65, e), same_screen YES,
    XLookupString gives 1 bytes: (65) "e"
    XmbLookupString gives 1 bytes: (65) "e"
    XFilterEvent returns: True

KeyPress event, serial 30, synthetic NO, window 0x5c00001,
    root 0x64, subw 0x0, time 31567005, (725,599), root:(730,648),
    state 0x0, keycode 0 (keysym 0xe9, eacute), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 1 bytes: (e9) "
    XFilterEvent returns: False

KeyRelease event, serial 30, synthetic NO, window 0x5c00001,
    root 0x64, subw 0x0, time 31567069, (725,599), root:(730,648),
    state 0x0, keycode 26 (keysym 0x65, e), same_screen YES,
    XLookupString gives 1 bytes: (65) "e"
    XFilterEvent returns: False


Handling the SEL_KEYPRESS message from FXText I can see both the *keysym
0xfe51* and then the *keysym 0x65*, but while other programs combine
these keysyms to display a correct e acute, my FXRuby program does not.

I guess it should be a ruby issue, but I'm not sure, cause I'm really
new to this wonderful world of Ruby and FXRuby (actually I've just
finished translating Lyle's "FXRuby - create lean and mean guis with
Ruby" to the brazilian edition of the book, and that's how I got into
it).

Well, if you could send me any hints on the subject, I'd really
appreciate.

Many thanks,

-- 
angico
------
home page: www.angico.org
Gnu/Linux, FLOSS, Espiritismo, e eu por mim mesmo 8^I
------
contatos:
email: angico at angico.org
skype: angico00
------



More information about the fxruby-users mailing list