summaryrefslogtreecommitdiff
path: root/man/Compose.man
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2015-02-03 13:23:50 -0500
committerJames Cloos <cloos@jhcloos.com>2015-02-05 17:36:01 -0500
commitddf3b09bb262d01b56fbaade421ac85b0e60a69f (patch)
treebb78610a66bdccc376119c8bad13e804a71b3174 /man/Compose.man
parent129f13f385c50e3d8b53ea7441b17386b0f36aeb (diff)
compose: fix the description of modifiers in compose sequences
The Compose format has a feature which allows specifying certain modifiers must (or must not) be present with a given keysym in the sequence. The grammar in imLcPrs.c and the Compose man page both do not match what the code actually does (see the handling of the variables `modifier_mask` and `modifier` in parseline() in imLcPrs.c, which are eventually matched as `ev->state & modifier_mask == modifier`). Also explicitly list the accepted modifier names, since they are not standard (e.g. "Ctrl" instead of "Control"). Signed-off-by: Ran Benita <ran234@gmail.com> Signed-off-by: James Cloos <cloos@jhcloos.com>
Diffstat (limited to 'man/Compose.man')
-rw-r--r--man/Compose.man16
1 files changed, 9 insertions, 7 deletions
diff --git a/man/Compose.man b/man/Compose.man
index 13ba705f..6a8a9668 100644
--- a/man/Compose.man
+++ b/man/Compose.man
@@ -88,16 +88,18 @@ comment at the end of the line:
.PP
Each event consists of a specified input keysym, and optional modifier states:
.RS
-[\fIMODIFIER_LIST\fP] \fB<\fP\fIkeysym\fP\fB>\fP
+[([\fB!\fP] ([\fB~\fP] \fIMODIFIER\fP)...) | \fBNone\fP] \fB<\fP\fIkeysym\fP\fB>\fP
.RE
.PP
-Each modifier consists of a specified modifier and a state:
-.RS
-(\fB!\fP \fIMODIFIER\fP ) | \fBNone\fP
-.RE
-Modifiers may be preceded by a
+If the modifier list is preceded by
+.RB \*q "!" \*q
+it must match exactly.
+MODIFIER may be one of Ctrl, Lock, Caps, Shift, Alt or Meta.
+Each modifier may be preceded by a
.RB \*q "~" \*q
-character to indicate that the modifier must not be present.
+character to indicate that the modifier must not be present. If
+.RB \*q "None" \*q
+is specified, no modifier may be present.
.PP
The result specifies a string, keysym, or both, that the X client receives
as input when the sequence of events is input: