Re: troff -Tpdf: '.' in SS macro

2024-02-16 Thread G. Branden Robinson
Hi Alex, At 2024-02-16T01:44:36+0100, Alejandro Colomar wrote: [...] > here's [a warning] that I've only seen in -Tpdf. It might be a bug in > -Tpdf. > troff:man7/path_resolution.7:135: warning: macro 'and' not defined > (possibly missing space after 'an') > make: *** [share/mk/buil

[idea] troff -Troff

2024-02-16 Thread Alejandro Colomar
Hi Branden! I've been thinking about a suggestion I've done in the past. I wanted a program that reads man(7) source and produces roff(7) source, so that it can later be passed to troff(1), thus splitting the groff(1) pipeline a bit more. The idea is similar to how eqn(1) and other pre-troff fil

Re: troff -Tpdf: '.' in SS macro

2024-02-16 Thread Alejandro Colomar
Hi Branden, On Fri, Feb 16, 2024 at 09:15:07AM -0600, G. Branden Robinson wrote: > Hi Alex, > > At 2024-02-16T01:44:36+0100, Alejandro Colomar wrote: > Yes, I can reproduce this with groff 1.23.0 and Git HEAD. > > Try this patch. > > diff --git a/tmac/pdf.tmac b/tmac/pdf.tmac > index 54175434f.

Re: [idea] troff -Troff

2024-02-16 Thread G. Branden Robinson
Hi Alex, At 2024-02-16T16:21:45+0100, Alejandro Colomar wrote: > I've been thinking about a suggestion I've done in the past. I wanted > a program that reads man(7) source and produces roff(7) source, so > that it can later be passed to troff(1), thus splitting the groff(1) > pipeline a bit more.

Re: [idea] troff -Troff

2024-02-16 Thread Alejandro Colomar
Hi Branden, On Fri, Feb 16, 2024 at 10:49:52AM -0600, G. Branden Robinson wrote: > Hi Alex, [...] > Right. I had a similar desire when I first came to groff development. [...] > It's not that it's a bad idea, it's that it's hard. > > Please excuse an excursion into parser theory, presented b

[PATCH] tweak a mom diagnostic

2024-02-16 Thread G. Branden Robinson
Hi Peter, I spotted a mom(7) diagnostic that was not prefix with "[mom]" to indicate what was speaking. Here's my proposed patch. diff --git a/contrib/mom/om.tmac b/contrib/mom/om.tmac index d3b5002a8..e942df0ed 100644 --- a/contrib/mom/om.tmac +++ b/contrib/mom/om.tmac @@ -23617,7 +23617,7 @@ .

Re: [PATCH] tweak a mom diagnostic

2024-02-16 Thread Peter Schaffter
On Fri, Feb 16, 2024, G. Branden Robinson wrote: > Hi Peter, > > I spotted a mom(7) diagnostic that was not prefix with "[mom]" to > indicate what was speaking. > > Here's my proposed patch. > > diff --git a/contrib/mom/om.tmac b/contrib/mom/om.tmac > index d3b5002a8..e942df0ed 100644 > --- a/co