bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 06/40] man/infocmp.1m: Fix too-wide table.


From: G. Branden Robinson
Subject: [PATCH 06/40] man/infocmp.1m: Fix too-wide table.
Date: Fri, 12 Jan 2024 13:27:32 -0600

* Define ' string in page preamble to obtain a neutral single quote
  glyph, because we will need it.
* Revise "Representative Terminals" to fit in 65n; rename column to
  "Terminal Types".
* Set "terminfo" and "termcap" in bold italics in column headings, and
  use tbl(1) column modifiers to achieve this instead of *roff escape
  sequences in table data.  Do similarly for boldfacing columns.
* Set both the terminfo and parameter language termcap column data in
  bold.
* Migrate from slashes to real tab characters for tabulation.
* Left align all cells (centering the termcap parametric expressions
  wasn't buying much, in my opinion).
* Use single instead of double rule below column heading, in keeping
  with recent table reforms. (GNU tbl(1) has always rendered double
  horizontal rules the same as single ones on terminal devices anyway.)
* Use the new ' string for literal apostrophes (U+0027).
* Re-express the wordy table cell "is printed before" by resequencing it
  and using an ellipsis.
* Use actual terminfo terminal type names in the database instead of the
  ad hoc abbreviations formerly present.
* Update lists of exemplifying terminals using current terminfo data.

All of this takes us from overrunning to having 8n to spare.

Fixes:
.../share/man/man1/infocmp.1:216: warning: table wider than line length minus 
indentation
---
 man/infocmp.1m | 31 ++++++++++++++++++++-----------
 1 file changed, 20 insertions(+), 11 deletions(-)

diff --git a/man/infocmp.1m b/man/infocmp.1m
index a6818944c..1348d7c07 100644
--- a/man/infocmp.1m
+++ b/man/infocmp.1m
@@ -33,12 +33,15 @@
 .ie \n(.g \{\
 .ds `` \(lq
 .ds '' \(rq
+.ds '  \(aq
 .\}
 .el \{\
 .ie t .ds `` ``
 .el   .ds `` ""
 .ie t .ds '' ''
 .el   .ds '' ""
+.ie t .ds '  \(aq
+.el   .ds '  '
 .\}
 .
 .de bP
@@ -210,17 +213,23 @@ .SS "Source Listing Options [\-I] [\-L] [\-C] [\-r]"
 equivalents, and some terminal types which commonly have such sequences, are:
 .PP
 .TS
-center tab(/) ;
-l c l
-l l l.
-\fBterminfo/termcap\fP/Representative Terminals
-=
-\fB%p1%c/%.\fP/adm
-\fB%p1%d/%d\fP/hp, ANSI standard, vt100
-\fB%p1%'x'%+%c/%+x\fP/concept
-\fB%i/%i\fPq/ANSI standard, vt100
-\fB%p1%?%'x'%>%t%p1%'y'%+%;/%>xy\fP/concept
-\fB%p2\fP is printed before \fB%p1/%r\fP/hp
+center;
+Lf(BI) Lf(BI) L
+Lb     Lb     L.
+terminfo       termcap Terminal Types
+_
+.\" ansi-m cup (adm3a has other stuff in between, more like concept)
+%p1%c  %.      ansi\-m
+.\" ansi cub, vt100 cub
+%p1%d  %d      ansi, vt100
+.\" vt52 cup (via vt52-basic)
+%p1%\*' \*'%+%c        %+x     vt52
+.\" ansi cup, vt100 cup
+%i     %iq     ansi, vt100
+.\" annarbor4080 cup
+%p1%?%\*'x\*'%>%t%p1%\*'y\*'%+%;       %>xy    annarbor4080
+.\" hpgeneric cup
+%p2\fR\|.\|.\|.\|\fP%p1        %r      hpgeneric
 .TE
 .SS "Use= Option [\-u]"
 The \fB\-u\fP option produces a \fBterminfo\fP source description of the first
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]