From: ibeas@gmx.com (Álvar Ibeas)
To: kbd@lists.altlinux.org
Subject: [kbd] man page keymaps(5)
Date: Wed, 10 Dec 2014 00:42:44 +0100 [thread overview]
Message-ID: <87388ojsp7.fsf@gmx.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 384 bytes --]
Hello,
In the man page keymaps(5), there is a table with numbers in the second
column with an appearance somehow odd. It is due to the macro '.TP'
(which I think is commonly used to create indented paragraphs) and the
presence of trailing spaces in the first rows (but not in the last two),
needed to get the column aligned.
The attached patch renders the table with tabs instead.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch --]
[-- Type: text/x-diff, Size: 1017 bytes --]
diff --git a/docs/man/man5/keymaps.5 b/docs/man/man5/keymaps.5
index 1b28a29..02cf89d 100644
--- a/docs/man/man5/keymaps.5
+++ b/docs/man/man5/keymaps.5
@@ -104,42 +104,34 @@ The keyboard driver supports 9 modifiers. These modifiers are labeled
CtrlL, CtrlR and CapsShift.
Each of these modifiers has an associated weight of power of two
according to the following table:
+.ev table
.LP
.RS
-.TP 24
+.TP 20
.I modifier
.I weight
-.TP 24
-Shift
- 1
-.PD 0
-.TP 24
-AltGr
- 2
-.TP 24
-Control
- 4
-.TP 24
-Alt
- 8
-.TP 24
-ShiftL
- 16
-.TP 24
-ShiftR
- 32
-.TP 24
-CtrlL
- 64
-.TP 24
-CtrlR
-128
-.TP 24
-CapsShift
-256
-.PD
+.P
+.ta T 24R
+Shift 1
+.br
+AltGr 2
+.br
+Control 4
+.br
+Alt 8
+.br
+ShiftL 16
+.br
+ShiftR 32
+.br
+CtrlL 64
+.br
+CtrlR 128
+.br
+CapsShift 256
.RE
.LP
+.ev
The effective action of a key is found out by adding up the weights of
all the modifiers in effect. By default, no modifiers are in effect, so
action number zero, i.e. the one in the first column in a key definition
[-- Attachment #3: Type: text/plain, Size: 22 bytes --]
--
Álvar Ibeas
next reply other threads:[~2014-12-09 23:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-09 23:42 Álvar Ibeas [this message]
2015-01-25 11:48 ` [kbd] man page keymaps(5) Alexey Gladkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87388ojsp7.fsf@gmx.com \
--to=ibeas@gmx.com \
--cc=kbd@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox