Re: "troff -a" is now communicating less information

"G. Branden Robinson" <[email protected]>
Newsgroups gmane.comp.printing.groff.general
Message-ID <20251217013131.fuy2dmcktnf2eine@illithid>
At 2025-12-15T16:07:26-0600, Dave Kemper wrote:
> I noticed recently that, compared to previous groff releases up to and
> including 1.23, the latest groff built from git has less informative
> -a output in some instances.  Consider this two-line input file.
> 
> .fschar S \[trademark] \N'228' Enjoy a glass of
> Fluerma\fS\[trademark]\fP tonight.
> 
> Running this through "groff -a" has produced the below output from (at
> least) groff 1.19.2 through groff 1.23:
> 
> <beginning of page> Enjoy a glass of Fluerma<S trademark> tonight.
> 
> This output has now changed.  The fact that it HAS changed, I'm OK
> with: -a is billed as approximate output and subject to change.  But
> the nature of its change makes it, I think, less useful.  The -a
> output under the latest groff code is:
> 
> <beginning of page> Enjoy a glass of Fluerma<---> tonight.
> 
> This is straightforwardly enough less useful that I opened what I
> thought would be an uncontroversial bug report about it (
> http://savannah.gnu.org/bugs/?67817).  In particular, if a document
> has 100 such character definitions, they ALL get transformed into
> "<--->" rather than each into a unique string as they used to.
> 
> Branden has argued in favor of the change, in a way I won't attempt to
> summarize for fear of misrepresenting his position; you can read his
> response at that URL, or wait for his inevitable reply here.

I found the change responsible for the commit.

I was able to revert it cleanly (i.e., no merge conflicts).

You might be interested in what it was.

$ git show 3d249f79fd662e0e033ee1dc564f242b1a753e3c|cat
commit 3d249f79fd662e0e033ee1dc564f242b1a753e3c
Author: G. Branden Robinson <[email protected]>
Date:   Mon Mar 17 01:19:54 2025 -0500

    [troff]: Fix Savannah #55799 (`-a` opt + `char`).

    * src/roff/troff/node.cpp (composite_node::ascii_print): When rendering
      a composite node for approximate output, traverse into it and write
      its nodes' representations in forward order.

    Fixes <https://savannah.gnu.org/bugs/?55799>.  Thanks to Dave Kemper for
    the report.  Problem appears to date back to groff's birth.

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

iQIzBAABCAAdFiEEh3PWHWjjDgcrENwa0Z6cfXEmbc4FAmlCB+oACgkQ0Z6cfXEm
bc5bnw//cP3F7UVtXh8n2N25MvmtR2xTJ/tJsW+6quXXR9rlMUqrlw34aZjjOWJX
p4HJE7cSWcCzBh5C/FlijwSFxGd0+ztqIAnVvLYUs5fbyuckMzwjwJB7c856SQg2
p6FWmQs6OIZyezkPvmcbauFYGycbXXKfl8CGXONfzFFths7P31xgh6ZgEmDVXNuP
TBwe9rtWyKLIYLJ8+HeBKx9fj/gG1slpanFWq0n+SbIp4IkF3qIhYbwZJyvbGJuC
CcAdUHU1IjEIJKVGUWfoj+UwXYDWHV8Uw70zwinz9mkSw2LWTc0LjOwdGzPkzwZJ
r61sOul4jzoVgusFT7pRRyh1QToF6UKAcTqq7GddplDgXW8rFz+Edj3u1MB1C8W/
IjjTI9zlbWiFLmMp3X9g0OZyzkGNkCaaSWkXB6Ro6CL7OFs1ZUeFvq91JCt3UH4L
y0NHE9ojnZRmQqZlWn0QSCU/L10Q3zIPoUBy1UVPKnh/UQQVY5jR+9euEEj+a16f
bPQuDhXivIJJY5hatfMvEsBPNPZMeLOe3I8mdWdIsysn1EhHiU0M9H+5ZNsuik22
NV6pGh7pv5dSvt7H2gQLnJuIJNdGvEzljCao49zx9wDQ0JuoDq9k+FhIPATHjvyu
UmbPX/ktzaCR0uyMDm6zSS6Y8jM2TBr4+VPPCjj7Q2z/NkSDn14=
=WnGi
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.