[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-linux
Subject:    Re: [kde-linux] Keyboard layout set
From:       Ingo =?iso-8859-15?q?Kl=F6cker?= <kloecker () kde ! org>
Date:       2003-01-30 9:23:50
[Download RAW message or body]

Stelian Iancu wrote:
> I want to set the layout of the keyboard to Romanian. However, I don't
> like the default settings so I have built my own xmodmap file, but I
> don't know how to specify it. I would like that when I change the
> layout to Romanian, to load my xmodmap not the default. Is this
> possible?

I did the following in order to add some German umlauts to an us layout:

How to write your own keyboard layout (for XFree86 4.x):
1.) Go to <XRoot>/lib/X11/xkb/symbols/.
2.) Choose one of the symbol tables in this directory to derive your own 
table from, e.g. de.
3.) Make a copy of the chosen symbol table with a good <name>, e.g. 
"us_DE" for a US layout with german umlauts.
4.) Make the desired modifications in <name>.
5.) Add your new layout to the file 
<XRoot>/lib/X11/xkb/rules/xfree86.lst, e.g. add
'us_DE     U.S. English w/ german umlauts and euro'
below us_intl.
This is the description which will be shown in the keyboard layout 
configuration in KDE.
6.) Add your new layout to the file
<XRoot>/lib/X11/xkb/keymap/xfree86, e.g.
xkb_keymap "us_DE" {
    xkb_keycodes       { include "xfree86"             };
    xkb_types          { include "default"             };
    xkb_compatibility  { include "default"             };
    xkb_symbols                { include "us(pc105)+us_DE"     };
    xkb_geometry       { include "pc"                  };
};
This will tell X which symbol table should be used.
7.) Test the new layout.

Disclaimer: The above procedure worked for me. Your mileage may vary.

Regards,
Ingo


[Attachment #3 (application/pgp-signature)]
___________________________________________________
This message is from the kde-linux mailing list.
Account management:  http://mail.kde.org/mailman/listinfo/kde-linux.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic