Re: new tests are not reproducible, e.g. tmac/tests/an_MR-works.sh

2023-08-07 Thread Dave Kemper
On 8/7/23, Bjarni Ingi Gislason wrote: > Brandon's answer is in comment #1 > > "1. I do not require this lecture." > > This is in your mind. > > What is this in other readers mind? In my mind, the test suite is for the benefit of developers, and groff's primary developer and author of 99% of

new tests are not reproducible, e.g. tmac/tests/an_MR-works.sh

2023-08-07 Thread Bjarni Ingi Gislason
[Sent originally to bug-groff, bug #64509; Wed 02 Aug 2023]; see https://savannah.gnu.org/bugs/?group=groff]] An example is "an_MR-works.sh". After adding .ds MF I to the INPUT in a line before '.TH ...' I get the expected result. Tests should be independent of the surroundings and shoul

Re: Weird in-line trivial EQN issue with 1.22.4 - bad font number

2023-08-07 Thread Damian McGuckin
On Mon, 7 Aug 2023, Tadziu Hoffmann wrote: It's an issue with eqn material inside a macro definition. To avoid expanding eqn-generated escapes at macro definition time, bracket the macro definition with ".ec #" (or some other unused character) and ".ec" (to restore backslash as the escape charac

Re: Weird in-line trivial EQN issue with 1.22.4 - bad font number

2023-08-07 Thread Damian McGuckin
On Mon, 7 Aug 2023, Tadziu Hoffmann wrote: It's an issue with eqn material inside a macro definition. Thanks for that pointer. Strange. I had never come across that before. To avoid expanding eqn-generated escapes at macro definition time, bracket the macro definition with ".ec #" (or some

Re: geometric primitives (was: interviews with groff developers)

2023-08-07 Thread James K. Lowden
On Mon, 7 Aug 2023 10:44:44 -0500 "G. Branden Robinson" wrote: > But groff does support "boxes", if you will. Cunnigham's Law strikes again! > \D'p h1 v1 ... hn vn' > Draw polygon with vertices at drawing position and each > point in sequence. GNU troff closes the polygon by

Re: ⟨ vs < in hostname man page of hostname

2023-08-07 Thread Jonny Grant
On 07/08/2023 16:13, Alejandro Colomar wrote: > Hi Jonny, > > On 2023-08-07 15:47, Jonny Grant wrote: >> Hi Alejhandro >> >> Just looking at the COLOPHON >> https://man7.org/linux/man-pages/man1/hostname.1.html > > ``` > COLOPHON top > >This page is part of the net-tools (netw

geometric primitives (was: interviews with groff developers)

2023-08-07 Thread G. Branden Robinson
At 2023-08-07T04:55:56-0400, James K. Lowden wrote: > On Sat, 5 Aug 2023 21:52:26 -0400 > Douglas McIlroy wrote: > > > I can edit the content of figures, which I believe is impossible in > > PDF. One use of this capability is to overcome a > > deficiency in pic: filling polygons. > > I'm surpri

Re: ⟨ vs < in hostname man page of hostname

2023-08-07 Thread Alejandro Colomar
Hi Jonny, On 2023-08-07 15:47, Jonny Grant wrote: > Hi Alejhandro > > Just looking at the COLOPHON > https://man7.org/linux/man-pages/man1/hostname.1.html ``` COLOPHON top This page is part of the net-tools (networking utilities) project. Information about the project can

Re: [PATCH v1 1/2] [troff]: Add lengthof() macro.

2023-08-07 Thread James K. Lowden
On Fri, 4 Aug 2023 15:40:30 +0200 Alejandro Colomar wrote: > I also dislike the idea of C++ deprecating macros. IMO, they had to > do it because they bloated the language so much with dubious features > that make macros (and other C features) be unsafe. The need for macros in C++ is greatly d

Re: interviews with groff developers

2023-08-07 Thread James K. Lowden
On Sat, 5 Aug 2023 21:52:26 -0400 Douglas McIlroy wrote: > I can edit the content of figures, which I believe is impossible in > PDF. One use of this capability is to overcome a > deficiency in pic: filling polygons. I'm surprised you're forced to edit the object code. What is missing in the p

Re: Weird in-line trivial EQN issue with 1.22.4 - bad font number

2023-08-07 Thread Tadziu Hoffmann
It's an issue with eqn material inside a macro definition. To avoid expanding eqn-generated escapes at macro definition time, bracket the macro definition with ".ec #" (or some other unused character) and ".ec" (to restore backslash as the escape character after the macro definition). This way,

Re: Weird in-line trivial EQN issue with 1.22.4 - bad font number

2023-08-07 Thread Damian McGuckin
On Mon, 7 Aug 2023, Tadziu Hoffmann wrote: .EQ delim ## .EN [] which will not fit into the #p# bits which breaks 'groff' with 'bad font number' messages. Don't worry. I have added text to my document and I now can no longer reproduce the problem either.

Re: Weird in-line trivial EQN issue with 1.22.4 - bad font number

2023-08-07 Thread Tadziu Hoffmann
> .EQ > delim ## > .EN > [] which will not fit into the #p# bits > > which breaks 'groff' with 'bad font number' messages. I can't reproduce this, it works as intended on my machine. Are you running any other preprocessors, and if yes, in which order? What does the