[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: International Characters from a US Keyboard?



Hi David,

I had a similar problem when I was switching to gnome 2.6. Before I had set up the keyboard to produce German Umlauts via xmodmap, but for some reason my /etc/X11/xmodmap has not been read any longer.

So I adapted the xkb configuration do do the stuff:

In /etc/X11/xkb/symbols/pc I created a file called custom_us with the following contents:

partial default alphanumeric_keys
xkb_symbols "basic" {

    // basierend auf US Keyboard mit 104 Tasten (Euro-Layout)
    include "us(pc104euro)"
    name[Group1]= "US/ASCII";
    name[Group2]= "International customized";

    // Umlaute
    override key <AD07> { [ u, U  ], [ udiaeresis, Udiaeresis ] };
    override key <AD09> { [ o, O  ], [ odiaeresis, Odiaeresis ] };
    override key <AC01> { [ a, A  ], [ adiaeresis, Adiaeresis ] };
    override key <AC02> { [ s, S  ], [ ssharp, section ] };

    // Waehrung
    override key <AE05> { [ 5, percent ], [ EuroSign, cent ] };
    override key <AD03> { [ e, E  ], [ EuroSign, cent] };

    // Sonderzeichen
    override key <AD04> { [ r, R ], [ registered ] };
    override key <AB03> { [ c, C ], [ copyright ] };
    override key <AD05> { [ t, T ], [ trademark ] };
    override key <AB07> { [ m, M ], [ mu ] };

    // Akzente
    override key <AE06> { [ 6, asciicircum ], [] };
    override key <AC11> { [ apostrophe, quotedbl ], [] };
    override key <TLDE> { [ grave, asciitilde ], [] };
    override key <AE10> { [ 0, parenright ], [ degree ] };
    override key <AB08> { [ comma, less ], [] };
    override key <AB09> { [ period, greater ], [] };
    override key <AB10> { [ slash, question ], [] };

};

and in XF86Config-4 i simply selected custum_us instead of us

Works great here.

Just in case xmodmap shows similar problems as on my machine.

HTH

Christian

--
To reply to this posting directly use the following address and
remove the 'NO-SPAM' part: Riedel.Christian.NO-SPAM@gmx.net



Reply to: