Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] [sm-discuss] accented chars not working on X terminals, but working on console?

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Sukneet Basuta <sukneet AT gmail.com>
  • To: Javier Vasquez <j.e.vasquez.v AT gmail.com>
  • Cc: "sm, discuss" <sm-discuss AT lists.ibiblio.org>
  • Subject: Re: [SM-Discuss] [sm-discuss] accented chars not working on X terminals, but working on console?
  • Date: Tue, 15 Jan 2013 19:58:14 -0500

On Tue, Jan 15, 2013 at 11:07 AM, Javier Vasquez
<j.e.vasquez.v AT gmail.com> wrote:
> On Mon, Jan 14, 2013 at 9:47 PM, Sukneet Basuta <sukneet AT gmail.com> wrote:
>> Perhaps check the output of "setxkbmap -print" to make sure the level
>> 3 key is being set correctly in terminals. Doing something like
>> http://shtrom.ssji.net/skb/xorg-ligatures.html works for me.
>
>
> I forgot to provide setxkbmap output:
>
> % setxkbmap -print
> xkb_keymap {
> xkb_keycodes { include "evdev+aliases(qwerty)" };
> xkb_types { include "complete" };
> xkb_compat { include "complete" };
> xkb_symbols { include
> "pc+latam+us:2+inet(evdev)+group(alt_shift_toggle)+level3(ralt_switch)"
> };
> xkb_geometry { include "pc(pc104)" };
> };
>
> It looks as I wanted it. BTW, I changed to pc105, and that made no
> change at all. I also tried the intl variant, which didn't work, and
> used ralt_switch_multikey instead of ralt_switch. Nothing seems to
> change the current behavior.
>
> To me alt-gr keys are working OK... The tip to use xev reveals for
> typing í (´ followed by i):
>
> KeyRelease event, serial 27, synthetic NO, window 0x2000001,
> root 0x137, subw 0x2000002, time 2062916, (40,45), root:(1765,375),
> state 0x0, keycode 34 (keysym 0xfe51, dead_acute), same_screen YES,
> XLookupString gives 2 bytes: (c2 b4) "´"
> XFilterEvent returns: False
>
> KeyPress event, serial 27, synthetic NO, window 0x2000001,
> root 0x137, subw 0x2000002, time 2068556, (40,45), root:(1765,375),
> state 0x0, keycode 31 (keysym 0x69, i), same_screen YES,
> XLookupString gives 1 bytes: (69) "i"
> XFilterEvent returns: False
>
> When I copied/pasted the output, where it said "´" it pasted instead
> "?", however urxvt showed correctly "´". Something weird as well is
> that I can copy accented chard from gtk+ applications to urxvt/xterm.
>
> However I'm not sure if the right behavior with xev should have been
> to show a combined "í" instead of 2 chars... That's what I expected
> to be shown by urxvt/xterm, but the events would reflect the accent
> key and then the i key, which happen in that order, so it might be xev
> is showing the events OK...
>
> Any other thoughts/hints/suggestions?
>
>

For comparison's sake, here's what I get from xev (directly copy and
pasted, nothing changed):

KeyPress event, serial 27, synthetic NO, window 0x2000001,
root 0x28e, subw 0x0, time 2783464, (319,-414), root:(323,153),
state 0x0, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyPress event, serial 27, synthetic NO, window 0x2000001,
root 0x28e, subw 0x0, time 2783472, (319,-414), root:(323,153),
state 0x1, keycode 108 (keysym 0xff20, Multi_key), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: True

KeyRelease event, serial 27, synthetic NO, window 0x2000001,
root 0x28e, subw 0x0, time 2783632, (319,-414), root:(323,153),
state 0x1, keycode 108 (keysym 0xff20, Multi_key), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

KeyRelease event, serial 27, synthetic NO, window 0x2000001,
root 0x28e, subw 0x0, time 2783664, (319,-414), root:(323,153),
state 0x1, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

KeyPress event, serial 27, synthetic NO, window 0x2000001,
root 0x28e, subw 0x0, time 2783672, (319,-414), root:(323,153),
state 0x0, keycode 48 (keysym 0x27, apostrophe), same_screen YES,
XLookupString gives 1 bytes: (27) "'"
XmbLookupString gives 1 bytes: (27) "'"
XFilterEvent returns: True

KeyPress event, serial 27, synthetic NO, window 0x2000001,
root 0x28e, subw 0x0, time 2783752, (319,-414), root:(323,153),
state 0x0, keycode 31 (keysym 0x69, i), same_screen YES,
XLookupString gives 1 bytes: (69) "i"
XmbLookupString gives 1 bytes: (69) "i"
XFilterEvent returns: True

KeyPress event, serial 27, synthetic NO, window 0x2000001,
root 0x28e, subw 0x0, time 2783752, (319,-414), root:(323,153),
state 0x0, keycode 0 (keysym 0xed, iacute), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 2 bytes: (c3 ad) "í"
XFilterEvent returns: False

KeyRelease event, serial 27, synthetic NO, window 0x2000001,
root 0x28e, subw 0x0, time 2783792, (319,-414), root:(323,153),
state 0x0, keycode 48 (keysym 0x27, apostrophe), same_screen YES,
XLookupString gives 1 bytes: (27) "'"
XFilterEvent returns: False

KeyRelease event, serial 27, synthetic NO, window 0x2000001,
root 0x28e, subw 0x0, time 2783848, (319,-414), root:(323,153),
state 0x0, keycode 31 (keysym 0x69, i), same_screen YES,
XLookupString gives 1 bytes: (69) "i"
XFilterEvent returns: False


What charmap are you using? I'm using UTF-8




Archive powered by MHonArc 2.6.24.

Top of Page