Re: collected groff man pages and performance (was: Syntax errors in makeindex.1)

"G. Branden Robinson" <[email protected]> Tue, 5 May 2026 20:45:40 -0500
Newsgroups gmane.comp.printing.groff.general
Message-ID <20260506014540.5qznpe4fw2ao3p6k@illithid>
At 2026-05-05T11:09:41-0300, sebastien peterson-boudreau wrote:
[rearranging]
> Afaik, the language makes no identification of margins ; that is done
> on the level of a macro package.

Right.  More precisely, the *roff language knows only about "page
offset", "indentation", and "line length".

> I‘m interested in this hangpunc program -- would it be possible to do
> this with the ditroff output, though ?

I think it's likely, if the program scanned ahead in its input--or
equivalently, kept a memory of trout commands already seen--to detect
line breaks advertised by the `n` command.

groff_out(5):
     n b a  Indicate a break.  No action is performed; the command is
            present to make the output more easily parsed.  The integers
            b and a describe the vertical space amounts before and after
            the break, respectively.  GNU troff issues this command but
            groff’s output driver library ignores it.  See v and V.

Regards,
Branden
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEh3PWHWjjDgcrENwa0Z6cfXEmbc4FAmn6nTwACgkQ0Z6cfXEm
bc4x3A//Sjw0MxH8NpQyga7FQhbESVx50GeEYuHyddAKljVCDVamKKe5+npNdD4A
FLx4cGfZfsyhoI8QYHmJ0+Q2N+gzkanyPn+O9hl85JSipwq3VKDOBcda7XqqzkWB
oojlMLGbQU5SSOaQWdFwP8O7Q6rbvrFwk9QhQYX1KdgGdDMGqn1hy5iz+xt29EbS
/PVp8shwJ3fiUPNvI5i1zG5/AFQexL37NAE1QNgCcLjISFB+LM828mZqcQ0jhVX4
x6t+7awGXRNFpGJna0r3bBG4QT+Z+U9vAZz+diJVBvccd9eLRMXKWxUWRXLtF+q4
00p7lUD39IdcMpZxHGTaJm+uApooT1f9Q/MNOUtTyF8Cr/AmY1L6CX4dd8z9EbMN
OGffUj+v/al8iVucgY4xy08pHQWjRDpyilHrInXHRgtGZSyAf7KrdYaWTPbahW89
ePZEQqPMUrhthotHT0r8Zd0tu4xNCCWgYS3h78TyBDXmtapbEsIgmjhURI9CnFtD
NAtex4MNjMeWKfP6+uRIcAq0MomYO9nsNOvoOFIZfpDAZnlpkEwKMyAs+Ge8N/jG
003Dcn0DajcZ5jovY83fsWzhz2jc1ibEADyWq/kacf+ywrxSHPD/rCjxmp/ky2tm
/aaYsGHO8pTzP9g6Ny0kMPbytIzyHxbMXfM7Ig9quJL9B5zGfSs=
=Kk21
-----END PGP SIGNATURE-----