On the origin of boldface in man page cross references

2023-08-03 Thread G. Branden Robinson
Hi folks, I did some digging into historical, proprietary Unix, limited by the availability of relevant materials, but nevertheless uncovered what I regard as a significant fact. First, I will bring up to speed those who have not read my recent (lengthy) emails about this matter. Those who have

Re: Man page customization after 1.23?

2023-08-03 Thread Nate Bargmann
* On 2023 08 Jul 18:22 -0500, G. Branden Robinson wrote: > Hi Nate, I had some time and inclination to experiment today on my Arch laptop. > At 2023-07-08T18:02:34-0500, Nate Bargmann wrote: > > * On 2023 08 Jul 17:22 -0500, Ronan Pigott via wrote: > > > Ok. For now I've decided to export MANROFF

Re: Man page customization after 1.23?

2023-08-03 Thread Lennart Jablonka
Quoth Nate Bargmann: seems to work as expected, at least on my Arch. However, I don't see that OSC 8 links work in evince. Hmmm. OSC is a kind of control sequence, OSC 8 is the way with which we get links to a terminal. Links in PDFs are interesting, but the correct term is not “OSC 8.”

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

2023-08-03 Thread Alejandro Colomar
* src/roff/troff/env.cpp (lengthof): Add macro to calculate the number of elements in an array. It's named after the proposal to ISO C, _Lengthof(), which wasn't accepted for C23, but hopefully will be added in a future revision. Signed-off-by: Alejandro Colomar --- Hi Branden, I add

[PATCH v1 2/2] [troff]: Rewrite function in C.

2023-08-03 Thread Alejandro Colomar
* src/roff/troff/env.cpp (is_family_valid): The old code was eyeball-bleeding. This cuts 6 lines to 3, and each of them is significantly simpler to read. Remove the comments of how it could be improved using modern C++, as I don't think it would improve much vs this C implementation.

Re: [PATCH v1 2/2] [troff]: Rewrite function in C.

2023-08-03 Thread Alejandro Colomar
On 2023-08-04 03:00, Alejandro Colomar wrote: > * src/roff/troff/env.cpp (is_family_valid): The old code was >eyeball-bleeding. This cuts 6 lines to 3, and each of them is >significantly simpler to read. Remove the comments of how it could >be improved using modern C++, as I don't th

Re: Man page customization after 1.23?

2023-08-03 Thread G. Branden Robinson
Hi Nate & Lennart, At 2023-08-03T18:56:54-0500, Nate Bargmann wrote: > * On 2023 08 Jul 18:22 -0500, G. Branden Robinson wrote: > > Shouldn't this be MANROFFOPT="-P -c"? > > Probably if one is being pedantic but plain '-c' works as groff(1) > shows it as a transparent option that disables color o

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

2023-08-03 Thread G. Branden Robinson
At 2023-08-04T03:00:10+0200, Alejandro Colomar wrote: > * src/roff/troff/env.cpp (lengthof): Add macro to calculate the number >of elements in an array. It's named after the proposal to ISO C, >_Lengthof(), which wasn't accepted for C23, but hopefully will be >added in a future revisi

Re: Outdated warning

2023-08-03 Thread Dave Kemper
On 4/22/23, G. Branden Robinson wrote: > At 2023-04-22T20:03:29+0200, Alejandro Colomar wrote: >> I found some spurious warning using 1.23.0-rc3 while linting some mdoc(7) >> page: > [...] >> mdoc warning: .Nx: Unknown NetBSD version '9.0' (#263) >> make: *** [share/mk/build/catman.mk:91: .tmp/man

Re: [PATCH v1 2/2] [troff]: Rewrite function in C.

2023-08-03 Thread Thorsten Glaser
On Fri, 4 Aug 2023, Alejandro Colomar wrote: >* src/roff/troff/env.cpp (is_family_valid): The old code was > eyeball-bleeding. This cuts 6 lines to 3, and each of them is > significantly simpler to read. Remove the comments of how it could > be improved using modern C++, as I don't think

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

2023-08-03 Thread Thorsten Glaser
On Fri, 4 Aug 2023, Alejandro Colomar wrote: >* src/roff/troff/env.cpp (lengthof): Add macro to calculate the number > of elements in an array. It's named after the proposal to ISO C, > _Lengthof(), which wasn't accepted for C23, but hopefully will be > added in a future revision. Oh, int