bug-ncurses
[Top][All Lists]
Advanced

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

Re: [PATCH 7/8] include/Caps*: Work around DWB 3.3 tbl limitation.


From: Thomas Dickey
Subject: Re: [PATCH 7/8] include/Caps*: Work around DWB 3.3 tbl limitation.
Date: Sat, 2 Mar 2024 10:15:11 -0500

On Sun, Feb 25, 2024 at 01:23:41AM -0600, G. Branden Robinson wrote:
> AT&T troff's limited name space and tbl's use of a diversion for each
> table entry using a text block means that tbl gives up on the table if
> it "runs out of" diversions.
> 
> I get the same diagnostic, at a different line number, on the version of
> terminfo(5) page from ncurses 6.2+20201114.
> 
> Work around this by breaking up the capability tables about every 62
> lines.  I made parallel changes to all Caps* files (keeping in mind the
> different column widths in Caps.uwin), but did not inspect them all.

doing that does move the (unwanted) blank lines that groff produces in
the tables - but since calculating the "best" places to insert table end/start
depends on the number of wrapped lines, I guess there's no simple way to
choose those places.
 
> If someone sees the diagnostic below with an AT&T tbl/troff, this is the
> solution.
> 
> This produces cosmetic differences in groff Git and mandoc's terminal
> output, but not groff 1.23.0 or 1.22.4 or Heirloom Doctools.

actually with 1.22.4, it adds 4 blank lines (at some points in the output,
that shows up as two blank lines in a row).  1.23.0 shows no difference.
 
> groff Git (likely 1.24.0 when released) uses one more character cell in
> rows after the table has been broken up.  This is because the horizontal
> rule at the top of the table is no longer "using up" an extra cell.  The
> story behind this is long (https://savannah.gnu.org/bugs/?62471).  The
> short version is that the table rows still do not overrun.  In fact,
> several are able to set on one line at 80n where they did not before--I
> characterize this as a happy accident.
> 
> mandoc puts a blank line on the output at every `TE` call.  This is a
> defect.  It's at least partially fixed in CVS.
> 
> https://cvsweb.bsd.lv/mandoc/tbl_term.c?rev=1.79&content-type=text/x-cvsweb-markup&sortby=date
> 
> It should be noted that DWB still formats these tables terribly on
> terminals.
> 
> Fixes:
> .../terminfo.5: line 855: Too many text block diversions
> tbl quits

-- 
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net

Attachment: signature.asc
Description: PGP signature


reply via email to

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