Linux console tools development discussion
 help / color / mirror / Atom feed
* [kbd] man page keymaps(5)
@ 2014-12-09 23:42 Álvar Ibeas
  2015-01-25 11:48 ` Alexey Gladkov
  0 siblings, 1 reply; 2+ messages in thread
From: Álvar Ibeas @ 2014-12-09 23:42 UTC (permalink / raw)
  To: kbd

[-- 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-25 11:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-09 23:42 [kbd] man page keymaps(5) Álvar Ibeas
2015-01-25 11:48 ` Alexey Gladkov

Linux console tools development discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/kbd/0 kbd/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kbd kbd/ http://lore.altlinux.org/kbd \
		kbd@lists.altlinux.org kbd@lists.altlinux.ru kbd@lists.altlinux.com
	public-inbox-index kbd

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.kbd


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git