← Back to team overview

ubuntu-x-swat team mailing list archive

[Bug 475280] Re: Variant keyboard layouts are numbered with a subscript instead of something more descriptive

 

Simos: As Bruno points out you don't need to show the complete
thing. In fact just showing the first character would work in most
cases. In the xkeyboard-config/symbols directory:

    $ for i in ??; do ack '^xkb_symbols\s+"(.)(.*?)"' --output="$i:\$1" $i; done |sort|uniq -c|sort -n|grep -c '1 '
    239

    $ for i in ??; do ack '^xkb_symbols\s+"(.)(.*?)"' --output="$i:\$1" $i; done |sort|uniq -c|sort -n|grep -vc '1 '
    81

Most of those 81 things are layouts with variant subscripts, like am's
'eastern' and 'eastern-alt'. But for the rest (the 239) the first
letter is unambiguous:

    $ for i in ??; do ack '^xkb_symbols\s+"(.)(.*?)"' --output="$i:\$1/\$2" $i; done | grep ^is
    is:b/asic
    is:S/undeadkeys
    is:n/odeadkeys
    is:m/ac
    is:d/vorak

It'd be a large UI improvement I think to look at the xkb_symbols for
each language, if the first letter is unique use that, otherwise fall
back on the old numeric subscripts behavior.

As for how I got a gnome-panel keyboard widget with no numeric
subscripts. I simply upgraded to 10.04. Before the upgrade I had the
subscripts, but not after.

Here's my gconftool output:

    layouts = [is  dvorak,is]
    options = [lv3 lv3:ralt_switch,grp     grp:alts_toggle,ctrl    ctrl:swapcaps]
    model = pc105

-- 
Variant keyboard layouts are numbered with a subscript instead of something more descriptive
https://bugs.launchpad.net/bugs/475280
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xkeyboard-config in ubuntu.