Skip to content

Keyboard Event Translation Functions

To use the functions defined in this section, you should include the header file <X11/Xmu/Lookup.h> . and link against the libXmu library.

Warning

The functions in this section are deprecated because they don't work in most locales now supported by X11; the function XmbLookupString provides a better alternative.

int XmuLookupLatin1(XKeyEvent *event, unsigned char *buffer, int nbytes, KeySym *keysym, XComposeStatus *status);
int XmuLookupLatin1(XKeyEvent *event, unsigned char *buffer, int nbytes, KeySym *keysym, XComposeStatus *status);

event

specifies the key event

buffer

returns the translated characters

nbytes

specifies the length of the buffer

keysym

returns the computed KeySym, or None

status

specifies or returns the compose state

This function is identical to XLookupString, and exists only for naming symmetry with other functions.

int XmuLookupLatin2(XKeyEvent *event, unsigned char *buffer, int nbytes, KeySym *keysym, XComposeStatus *status);
int XmuLookupLatin2(XKeyEvent *event, unsigned char *buffer, int nbytes, KeySym *keysym, XComposeStatus *status);

event

specifies the key event

buffer

returns the translated characters

nbytes

specifies the length of the buffer

keysym

returns the computed KeySym, or None

status

specifies or returns the compose state

This function is similar to XLookupString, except that it maps a key event to an Latin-2 (ISO 8859-2) string, or to an ASCII control string.

int XmuLookupLatin3(XKeyEvent *event, unsigned char *buffer, int nbytes, KeySym *keysym, XComposeStatus *status);
int XmuLookupLatin3(XKeyEvent *event, unsigned char *buffer, int nbytes, KeySym *keysym, XComposeStatus *status);

event

specifies the key event

buffer

returns the translated characters

nbytes

specifies the length of the buffer

keysym

returns the computed KeySym, or None

status

specifies or returns the compose state

This function is similar to XLookupString, except that it maps a key event to an Latin-3 (ISO 8859-3) string, or to an ASCII control string.

int XmuLookupLatin4(XKeyEvent *event, unsigned char *buffer, int nbytes, KeySym *keysym, XComposeStatus *status);
int XmuLookupLatin4(XKeyEvent *event, unsigned char *buffer, int nbytes, KeySym *keysym, XComposeStatus *status);

event

specifies the key event

buffer

returns the translated characters

nbytes

specifies the length of the buffer

keysym

returns the computed KeySym, or None

status

specifies or returns the compose state

This function is similar to XLookupString, except that it maps a key event to an Latin-4 (ISO 8859-4) string, or to an ASCII control string.

int XmuLookupKana(XKeyEvent *event, unsigned char *buffer, int nbytes, KeySym *keysym, XComposeStatus *status);
int XmuLookupKana(XKeyEvent *event, unsigned char *buffer, int nbytes, KeySym *keysym, XComposeStatus *status);

event

specifies the key event

buffer

returns the translated characters

nbytes

specifies the length of the buffer

keysym

returns the computed KeySym, or None

status

specifies or returns the compose state

This function is similar to XLookupString, except that it maps a key event to a string in an encoding consisting of Latin-1 (ISO 8859-1) and ASCII control in the Graphics Left half (values 0 to 127), and Katakana in the Graphics Right half (values 128 to 255), using the values from JIS X201-1976.

int XmuLookupJISX0201(XKeyEvent *event, unsigned char *buffer, int nbytes, KeySym *keysym, XComposeStatus *status);
int XmuLookupJISX0201(XKeyEvent *event, unsigned char *buffer, int nbytes, KeySym *keysym, XComposeStatus *status);

event

specifies the key event

buffer

returns the translated characters

nbytes

specifies the length of the buffer

keysym

returns the computed KeySym, or None

status

specifies or returns the compose state

This function is similar to XLookupString, except that it maps a key event to a string in the JIS X0201-1976 encoding, including ASCII control.

int XmuLookupArabic(XKeyEvent *event, unsigned char *buffer, int nbytes, KeySym *keysym, XComposeStatus *status);
int XmuLookupArabic(XKeyEvent *event, unsigned char *buffer, int nbytes, KeySym *keysym, XComposeStatus *status);

event

specifies the key event

buffer

returns the translated characters

nbytes

specifies the length of the buffer

keysym

returns the computed KeySym, or None

status

specifies or returns the compose state

This function is similar to XLookupString, except that it maps a key event to a Latin/Arabic (ISO 8859-6) string, or to an ASCII control string.

int XmuLookupCyrillic(XKeyEvent *event, unsigned char *buffer, int nbytes, KeySym *keysym, XComposeStatus *status);
int XmuLookupCyrillic(XKeyEvent *event, unsigned char *buffer, int nbytes, KeySym *keysym, XComposeStatus *status);

event

specifies the key event

buffer

returns the translated characters

nbytes

specifies the length of the buffer

keysym

returns the computed KeySym, or None

status

specifies or returns the compose state

This function is similar to XLookupString, except that it maps a key event to a Latin/Cyrillic (ISO 8859-5) string, or to an ASCII control string.

int XmuLookupGreek(XKeyEvent *event, unsigned char *buffer, int nbytes, KeySym *keysym, XComposeStatus *status);
int XmuLookupGreek(XKeyEvent *event, unsigned char *buffer, int nbytes, KeySym *keysym, XComposeStatus *status);

event

specifies the key event

buffer

returns the translated characters

nbytes

specifies the length of the buffer

keysym

returns the computed KeySym, or None

status

specifies or returns the compose state

This function is similar to XLookupString, except that it maps a key event to a Latin/Greek (ISO 8859-7) string, or to an ASCII control string.

int XmuLookupHebrew(XKeyEvent *event, unsigned char *buffer, int nbytes, KeySym *keysym, XComposeStatus *status);
int XmuLookupHebrew(XKeyEvent *event, unsigned char *buffer, int nbytes, KeySym *keysym, XComposeStatus *status);

event

specifies the key event

buffer

returns the translated characters

nbytes

specifies the length of the buffer

keysym

returns the computed KeySym, or None

status

specifies or returns the compose state

This function is similar to XLookupString, except that it maps a key event to a Latin/Hebrew (ISO 8859-8) string, or to an ASCII control string.

int XmuLookupAPL(XKeyEvent *event, unsigned char *buffer, int nbytes, KeySym *keysym, XComposeStatus *status);
int XmuLookupAPL(XKeyEvent *event, unsigned char *buffer, int nbytes, KeySym *keysym, XComposeStatus *status);

event

specifies the key event

buffer

returns the translated characters

nbytes

specifies the length of the buffer

keysym

returns the computed KeySym, or None

status

specifies or returns the compose state

This function is similar to XLookupString, except that it maps a key event to an APL string.