Click to See Complete Forum and Search --> : keyboard layout


polle
10-21-2005, 10:01 AM
I'm using a belgian keyboard layout, as I'm regular need to type something in spanish also I tried to modify my keyboard with xmodmap, no succes, but I found another way by making a custom keybaord map for xkb.But it only works half.
this is what I did:
copied the map "be" from /usr/lib/X11/xkb/symbols/pc and renamed it to "be_spa"
Then I made this changes:
á
// based on a keyboard map from an 'xkb/symbols/be' file
//
// $XFree86: xc/programs/xkbcomp/symbols/pc/be,v 1.3 2003/04/12 10:53:48 pascal Exp $

partial default alphanumeric_keys
xkb_symbols "basic" {

include "pc/latin"

name[Group1]="Belgian";

key <AE01> { [ ampersand, 1, bar, exclamdown ] };
key <AE02> { [ eacute, 2, at, oneeighth ] };
key <AE03> { [ quotedbl, 3, numbersign, sterling ] };
key <AE04> { [apostrophe, 4, onequarter, dollar ] };
key <AE05> { [ parenleft, 5, onehalf, threeeighths ] };
key <AE06> { [ section, 6, asciicircum, fiveeighths ] };
key <AE07> { [ egrave, 7, braceleft, seveneighths ] };
key <AE08> { [ exclam, 8, exclamdown, trademark ] };
key <AE09> { [ ccedilla, 9, braceleft, plusminus ] };
key <AE10> { [ agrave, 0, braceright, degree ] };
key <AE11> { [parenright, degree, backslash, questiondown ] };
key <AE12> { [ minus, underscore, dead_cedilla, dead_ogonek ] };

key <AD01> { [ a, A, aacute, Aacute ] };
key <AD02> { [ z, Z, lstroke, Lstroke ] };
key <AD08> { [ i, I, iacute, Iacute ] };
key <AD03> { [ e, E, EuroSign, cent ] };
key <AD07> { [ u, U, uacute, udiaerresis ] };
key <AD09> { [ o, O, oacute, Oacute ] };
key <AD11> { [dead_circumflex, dead_diaeresis, bracketleft, dead_abovering ] };
key <AD12> { [ dollar, asterisk, bracketright, dead_macron ] };

key <AC01> { [ q, Q, ae, AE ] };
key <AC10> { [ m, M, dead_acute, dead_doubleacute ] };
key <AC11> { [ ugrave, percent, dead_acute, dead_caron ] };
key <TLDE> { [twosuperior, threesuperior, notsign, notsign ] };

key <BKSL> { [ mu, sterling, dead_grave, dead_breve ] };
key <LSGT> { [ less, greater, backslash, brokenbar ] };
key <AB01> { [ w, W, guillemotleft, less ] };
key <AB06> { [ n, N, ntilde, Ntilde ] };
key <AB07> { [ comma, question, questiondown, masculine ] };
key <AB08> { [ semicolon, period, horizconnector, multiply ] };
key <AB09> { [ colon, slash, periodcentered, division ] };
key <AB10> { [ equal, plus, dead_tilde, dead_abovedot] };
key <LSGT> { [ less, greater, backslash, backslash ] };

include "level3(ralt_switch_multikey)"

Then I added "be_spa" to /usr/lib/X11/xkb/rules/xorg.lst

as I work with kde (under gentoo) I'm able to switch in kde to the keyboardlayout "be_spa"
With teh modifications I made a want to use the AltGr key for my spanish caracters,
this works:
AltGr+ N gives ñ
AltGr +Shift+ N gives Ñ
AltGr + a gives á
AltGr + Shift+ a gives Á
AltGr + ! gives ¡

However:
AltGr + i
AltGr + u
AltGr + o
AltGr + ?
doesn't work

Anyone an idea how I can get these combinations also to work?

polle
10-28-2005, 02:01 PM
I don't know why, but after I did the same as I described above again, everything is working.
So now I'm able to type without any problem my spanish texts using my belgian keyboard layout