Commit graph

10 commits

Author SHA1 Message Date
Alan Coopersmith
0bddfd82d0 Compose.man: \\ should be \e in troff markup
Fixes warnings from `mandoc -T lint`:
mandoc: Compose.5:121:27: WARNING: undefined escape, printing literally: \\
mandoc: Compose.5:122:10: WARNING: undefined escape, printing literally: \\
mandoc: Compose.5:129:29: WARNING: undefined escape, printing literally: \\

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/lib/libx11/-/merge_requests/286>
2025-07-13 10:09:14 -07:00
Alan Coopersmith
a04b84f0f7 Copyright & license cleanup 2022-11-03 20:31:31 +00:00
Thomas E. Dickey
6f2cbcea5d
trim trailing whitespace from manpages
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2019-07-30 04:52:25 -04:00
Ran Benita
33b9148a83 Compose.man: fix escaped hexadecimal char description
The man page says:
    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".

But the grammar in the parser and the implementation say:
    ESCAPED_CHAR  ::= ('\\' | '\"' | OCTAL | HEX )
    HEX           ::= '\' (x|X) HEX_CHAR [HEX_CHAR]]
    HEX_CHAR      ::= (0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F|a|b|c|d|e|f)

So "\0x123a" -> "\x3a".

Signed-off-by: Ran Benita <ran234@gmail.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-06-09 10:42:07 -07:00
Ran Benita
ddf3b09bb2 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>
2015-02-05 17:36:01 -05:00
Alan Coopersmith
b15b8a558e Sun's copyrights are now owned by Oracle
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-09-03 23:11:53 -07:00
Julien Cristau
8e60341358 Compose.man: default user compose file is .XCompose, not .Xcompose
The path was correct in the DESCRIPTION section, but not in FILES.

Signed-off-by: Julien Cristau <jcristau@debian.org>
2010-07-24 22:13:57 +02:00
Alan Coopersmith
c1db9ddcfa Update Sun license notices to current X.Org standard form
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2010-01-14 15:39:14 -08:00
Alan Coopersmith
1aaa7c0358 Add %S substitutions to Compose man page
Commit 9df349a789 added support for %S
in Compose file include statements - this documents it in the Compose
file man page.

Also changes the existing substitution documentation to list format
instead of a paragraph format to allow easier adding of %S.

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2010-01-14 08:28:22 -08:00
Alan Coopersmith
0e104ebd86 Add man page for Compose file format
Based on grammar description in modules/im/ximcp/imLcPrs.c and
note on XFree86 changes formerly found in xorg-docs RELNOTES.sgml

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-10-22 23:12:30 -07:00