Download Print this page

Extra Keys Using Alt+Gr; Old And New Code - HP T5135 - Compaq Thin Client Introduction Manual

Creating and compiling custom keymaps for linux
Hide thumbs Also See for T5135 - Compaq Thin Client:

Advertisement

xkb_keymap "fr" {
xkb_keycodes
xkb_types
xkb_compatibility
xkb_symbols
xkb_geometry
};
This keymap is almost identical to the standard us keymap, except that on the xkb_symbols line it
has the symbol declaration en_US(pc105)+fr. This states that it should take the standard pc105
symbol declaration from the en_US file and add the default fr symbol declaration to it. In the
<base>/symbols/fr file, we can see under the default symbol declaration basic that only the
keys that have been modified from the en_US(pc105) symbol definition are declared.
This is very similar to the includes "<symbol_def>" line that we used in the original samples.

Extra keys using Alt+Gr

In many of the keymaps you will see symbol declarations that declare four symbols per key instead of
two. In most cases the extra symbols are accessed via the Alt+Gr key, which is treated as an extra
mode key like the shift key. For example, the polish keyboard layout, <base>/symbols/pl has
extra symbols declared:
xkb_symbols "basic" {
...
key <AC01> {
...
};
This symbol declaration states that when the key <AC01> (the a key) is pressed alone or with the shift
key it should behave normally. This is done by leaving the first set of brackets empty. The second set
of brackets states that when the alternate mode key (Alt+Gr) is pressed along with the <AC01> key,
the symbol ơ should be generated, and when Alt+Gr, shift and a are all depressed at the same time,
the Ơ symbol should be generated.

Old and new code

Many older tutorials for creating and compiling keymaps are written for Xfree86. The main difference
between those tutorials and this tutorial will be the location of the xkb base directory. Historically
this was in /usr/X11R6/X11/xkb. In this tutorial, you retrieved the xkb sources directly, so replace
any references to xkb files in other tutorials with the <base> directory declared here.
Many newer tutorials will make references to the rules directory. This is a new interface to the
keymaps that lays out the keymaps in a more logical format. Any references to the rules files will
not work for compiling keymaps using xkbcomp, and any tutorial using the newer rules interface
should not be used to create or compile keymaps for the thin client.
Debian etch by default does not compile its keymaps and uses the newer rules interface. Keymaps for
Debian etch are stored at /usr/share/X11/xkb. Trying to compile keymaps with xkbcomp using
the keymaps in this directory will fail. This is why it is important to download the source to the xkb-
base-legacy package at the start of the tutorial, rather than installing the xkb-data-legacy
package directly or using the xkb-data in /usr/share/X11/xkb.
{ include "xfree86"
{ include "default"
{ include "default"
{ include "en_US(pc105)+fr"
{ include "pc(pc102)"
[
[
agonek,
};
};
};
],
Aogonek
]
};
};
};
6

Advertisement

loading

This manual is also suitable for:

T5145 - thin client - towerCreating and compiling custom keymaps for linux