The Single-Byte Input Method (SIM) is the standard that supports most of the locales. It is a mapping function that supports simple composing defined on workstation keyboards associated with single-byte locales.
SIM supports any keyboard, code set, and language that the keycomp command can describe. You can customize SIM using imkeymaps. The coded strings returned by the input method depend on the imkeymap.
Most single-byte locales share one SIM. The SIM features are:
When you press the Alt key, the input method composes a character by using the next three numeric keys pressed. The three numeric keys represent the decimal encoding of the character. For example, entering the sequence XK_0, XK_9, XK_7 maps to the character a (097).
The e-umlaut key is an example of diacritical composing. To compose e-umlaut, the user presses the appropriate diacritical key (umlaut) followed by an alphabetic key (e). The specific set of diacritical keys in use depend on the locale and keyboard definition. When a space follows a diacritical key, the diacritical character represented by the key is returned if it is in the locale's code set.
tr_TR.ISO8859-1.imkeymap |
ShiftMask | 0x01 |
LockMask | 0x02 |
ControlMask | 0x04 |
Mod1Mask (Left-Alt) | 0x08 |
Mod2Mask (Right-Alt) | 0x10 |
Mod5Mask (Num Lock) | 0x80 |