24.05.2014 Views

AIX Version 4.3 Differences Guide

AIX Version 4.3 Differences Guide

AIX Version 4.3 Differences Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

For example, in a German UTF-8 locale environment, you would get the following<br />

response by the lskbd command:<br />

# lskbd<br />

The current software keyboard map = /usr/lib/nls/loc/DE_DE.lftkeyboard<br />

But a closer examination of the relevant keyboard map files reveals that they are<br />

symbolic links to the regular C locale LFT keyboard map:<br />

/usr/lib/nls/loc/C.lftkeymap.<br />

For a full graphical Euro symbol enablement, you have to be in an X environment.<br />

The associated X server has an attached keyboard, and the server uses mapping<br />

tables to manage the mapping of keyboard events. The mapping of an X server<br />

keyboard can be changed by using the xmodmap command. This command<br />

converts the keyboard so that it returns the key symbol supported by the system.<br />

At startup of the X server, a query to the ODM returns the locale that determined<br />

the keyboard map for the LFT pseudo device driver; that is, the swkb_path attribute<br />

of lft0 is examined for the currently used locale for the keyboard map. In the next<br />

step, the xmodmap command defines the proper keyboard mapping to the server<br />

according to the found locale.<br />

When characters are typed in on the keyboard reach the server, the characters<br />

are in the form of key codes. These key codes are converted into keysyms (key<br />

symbols), or if applicable, into a pair of keysym/modifier as defined by the table<br />

provided in the client.(A modifier indicates the state of the keyboard as<br />

determined by the modifier keys: Shift, Lock, Ctrl, Alt and Alt Graphic. The<br />

keyboard table was defined to the sever by the xmodmap command and contains<br />

mappings for each of the keycodes into a predefined set of codes called keysyms<br />

or keysym/modifier.<br />

The file containing the xmodmap command expressions to be run by the xmodmap<br />

command is in the directory /usr/lpp/X11/defaults/xmodmap/XX_XX, where XX_XX<br />

represents the language/territory designation for the UTF-8 locale. The following<br />

example shows the Euro specific entry for the German UTF-8 locale in<br />

/usr/lpp/X11/defaults/xmodmap/DE_DE/keyboard:<br />

...<br />

! Row 2 Base Shift Alt-Gr (Mod2)<br />

! ----- ---- ----- -------------<br />

!<br />

!keycode 24 = Tab NoSymbol NoSymbol<br />

keycode 25 = q Q at<br />

keycode 26 = w W NoSymbol<br />

keycode 27 = e E EuroSign<br />

keycode 28 = r R NoSymbol<br />

...<br />

If you press the AltGr+e key combination on a German keyboard, the first step of<br />

the input processing is completed when the keycode to keysym/modifier<br />

conversion is done. In this specific case, the modifier is masked. For example,<br />

the AltGr modifier and the character "e" are combined to map to the EuroSign key<br />

symbol. But the keysym still has to be mapped to the related character string in<br />

the code set specified by your locale before an application can process the input.<br />

This conversion is governed by the input method.<br />

National Language Support 261

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!