XCompose(5)


HOME

Compose

NAME
DESCRIPTION
FILE FORMAT
ENVIRONMENT
FILES
SEE ALSO

NAME

Compose − X client mappings for multi-key input sequences

DESCRIPTION

The X library, libX11, provides a simple input method for characters beyond those represented on typical keyboards using sequences of key strokes that are combined to enter a single character.

The compose file is searched for in the following order:

-

If the environment variable $XCOMPOSEFILE is set, its value is used as the name of the Compose file.

-

If the user’s home directory has a file named .XCompose, it is used as the Compose file.

-

The system provided compose file is used by mapping the locale to a compose file from the list in /usr/share/X11/locale/compose.dir.

Compose files can use an "include" instruction. This allows local modifications to be made to existing compose files without including all of the content directly. For example, the system’s iso8859-1 compose file can be included with a line like this:

include "%S/iso8859-1/Compose"

There are several substitutions that can be made in the file name of the include instruction:

%H

expands to the user’s home directory (the $HOME environment variable)

%L

expands to the name of the locale specific Compose file (i.e., "/usr/share/X11/locale/<localename>/Compose")

%S

expands to the name of the system directory for Compose files (i.e., "/usr/share/X11/locale")

For example, you can include in your compose file the default Compose file by using:

include "%L"

and then rewrite only the few rules that you need to change. New compose rules can be added, and previous ones replaced.

FILE FORMAT

Compose files are plain text files, with a separate line for each compose sequence. Comments begin with # characters. Each compose sequence specifies one or more events and a resulting input sequence, with an optional comment at the end of the line:

EVENT [EVENT...] : RESULT [# COMMENT]

Each event consists of a specified input keysym, and optional modifier states:

[MODIFIER_LIST] <keysym>

Each modifier consists of a specified modifier and a state:

(! MODIFIER ) | None

Modifiers may be preceded by a "~" character to indicate that the modifier must not be present.

The result specifies a string, keysym, or both, that the X client receives as input when the sequence of events is input:

"STRING" | keysym | "STRING" keysym

Keysyms are specified without the XK_ prefix.

Strings may be direct text encoded in the locale for which the compose file is to be used, or an escaped octal or hexadecimal character code. Octal codes are specified as "\123" and hexadecimal codes as "\0x123a". It is not necessary to specify in the right part of a rule a locale encoded string in addition to the keysym name. If the string is omitted, Xlib figures it out from the keysym according to the current locale. I.e., if a rule looks like:

<dead_grave> <A> : "\300" Agrave

the result of the composition is always the letter with the "\300" code. But if the rule is:

<dead_grave> <A> : Agrave

the result depends on how Agrave is mapped in the current locale.

ENVIRONMENT

XCOMPOSEFILE

File to use for compose sequences.

XCOMPOSECACHE

Directory to use for caching compiled compose files.

FILES

$HOME/.XCompose

User default compose file if XCOMPOSEFILE is not set.

/usr/share/X11/locale/compose.dir

File listing the compose file path to use for each locale.

/usr/share/X11/locale/<localemapping>/Compose

System default compose file for the locale, mapped via compose.dir.

/var/cache/libx11/compose/

System-wide cache directory for compiled compose files.

$HOME/.compose-cache/

Per-user cache directory for compiled compose files.

SEE ALSO

XLookupString(3), XmbLookupString(3), XwcLookupString(3), Xutf8LookupString(3), mkcomposecache(1), locale(7).
Xlib − C Language X Interface



More Linux Commands

manpages/__fpurge.3.html
__fpurge(3) - purge a stream (Library - Linux man page).....
The function fpurge() clears the buffers of the given stream. For output streams this discards any unwritten output. For input streams this discards any input r

manpages/environ.7.html
environ(7) - user environment (Misc - Linux man page).......
environ.7 - The variable environ points to an array of pointers to strings called the environment. The last pointer in this array has the value NULL. (This vari

manpages/DMXChangeScreensAttributes.3.html
DMXChangeScreensAttributes(3) - change back-end screen attri
DMXChangeScreensAttributes() changes the geometries and positions of the DMX screen and DMX root windows on the back-end X servers. screen_count specifies the n

manpages/perl588delta.1.html
perl588delta(1) - what is new for perl v5.8.8 (Man Page)....
This document describes differences between the 5.8.7 release and the 5.8.8 release. Incompatible Changes There are no changes intentionally incompatible with 5

manpages/pipe.2.html
pipe(2) - create pipe (System calls - Linux man page).......
pipe() creates a pipe, a unidirectional data channel that can be used for interprocess communication. The array pipefd is used to return two file descriptors re

manpages/strcodes.3ncurses.html
strcodes(3ncurses) - curses terminfo global variables.......
This page summarizes variables provided by the curses librarys low-level terminfo interface. A more complete description is given in the curs_terminfo(3X) manua

manpages/Tcl_OutputBuffered.3.html
Tcl_OutputBuffered(3) - buffered I/O facilities using channe
The Tcl channel mechanism provides a device-independent and platform-independent mechanism for performing buffered input and output operations on a variety of f

manpages/XF86VidModeSetViewPort.3.html
XF86VidModeSetViewPort(3) - Extension library for the XFree8
These functions provide an interface to the server extension XFree86-VidModeExtension which allows the video modes to be queried and adjusted dynamically and mo

manpages/shrinkfile.1.html
shrinkfile(1) - shrink a file on a line boundary (Man Page)
The shrinkfile program shrinks files to a given size if the size is larger than maxsize, preserving the data at the end of the file. Truncation is performed on

manpages/audit.rules.7.html
audit.rules(7) a set of rules loaded in the kernel audit sys
audit.rules is a file containing audit rules that will be loaded by the audit daemons init script whenever the daemon is started. The auditctl program is used b

manpages/lcong48.3.html
lcong48(3) - generate uniformly distributed pseudo-random nu
These functions generate pseudo-random numbers using the linear congruential algorithm and 48-bit integer arithmetic. The drand48() and erand48() functions retu

manpages/expiry.1.html
expiry(1) - check password expiration and enforce password c
The expiry command checks (-c) the current password expiration and forces (-f) changes when required. It is callable as a normal user command. OPTIONS The optio





We can't live, work or learn in freedom unless the software we use is free.