Re: Selecting Papersize

2023-07-08 Thread Damian McGuckin
Thanks for your reply. On Sun, 9 Jul 2023, Bjarni Ingi Gislason wrote: When "groff" is configured, the variable "PAGE" is (should be) set to the default paper format for the default printer. So, when I build groff 1.23.0, I should make sure that PAGE is set to A4. So the variable "paper

Re: Selecting Papersize

2023-07-08 Thread Bjarni Ingi Gislason
On Sun, Jul 09, 2023 at 10:56:25AM +1000, Damian McGuckin wrote: > > When using the -dpaper=a4 option to 'groff' (which is passed to 'gtroff'), > the manual says to use '-P-pa4' also (which is passed to the backend). > > Does 'gtroff' not pass enough papersize information down its pipeline to the

Re: [PROPOSAL] time zones and reproducible builds (was: How to make groff use local timezone?)

2023-07-08 Thread Colin Watson
On Tue, Dec 29, 2020 at 03:15:35PM +1100, G. Branden Robinson wrote: > This issue is still open and tagged as a blocker for release, however. > To resolve it we should settle on the time zone semantics of the system > time retrieved by groff components (the formatter, the output drivers). > We shou

Selecting Papersize

2023-07-08 Thread Damian McGuckin
When using the -dpaper=a4 option to 'groff' (which is passed to 'gtroff'), the manual says to use '-P-pa4' also (which is passed to the backend). Does 'gtroff' not pass enough papersize information down its pipeline to the backend to make that '-P-pa4' redundant? Thanks - Damian

Re: Man page customization after 1.23?

2023-07-08 Thread Ronan Pigott
> Some distributors have overridden this upstream default. As far as I > know, Debian was the first to do so; Ubuntu inherited it (or perhaps the > other way around, as the same person has long maintained the groff > package for both), and then other distributions cargo-culted it into > their own g

Re: Man page customization after 1.23?

2023-07-08 Thread G. Branden Robinson
Hi Nate, 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 MANROFFOPT="-c" along with MANPAGER. Shouldn't this be MANROFFOPT="-P -c"? $ groff --help | head -n 1 usage: groff [-abcCeEgGijklNpRsStUVXzZ]

Re: Man page customization after 1.23?

2023-07-08 Thread G. Branden Robinson
Hi Ronan, At 2023-07-08T21:03:03+, Ronan Pigott wrote: [LESS_TERMCAP_*] > I wrote: > > Today I learned such a feature exists. Despite Mark Nudelman having had > > up to 39 years to document it, apparently the only place the feature is > > described is on StackExchange.[...] > > Indeed, it wen

Re: Man page customization after 1.23?

2023-07-08 Thread Nate Bargmann
* On 2023 08 Jul 17:22 -0500, Ronan Pigott via wrote: > Ok. For now I've decided to export MANROFFOPT="-c" along with MANPAGER. Thanks for that tip, Ronan. I just updated my Arch VM and Groff 1.23 was installed and bold text was shown as emboldened bright white but Italics were simply underlined.

Re: Man page customization after 1.23?

2023-07-08 Thread Ronan Pigott
>> After updating to 1.23 I can no longer change the color of man pages >> with LESS_TERMCAP_* vars. > > Today I learned such a feature exists. Despite Mark Nudelman having had > up to 39 years to document it, apparently the only place the feature is > described is on StackExchange.[1] Indeed, it

Re: Man page customization after 1.23?

2023-07-08 Thread Nate Bargmann
* On 2023 08 Jul 14:56 -0500, G. Branden Robinson wrote: > Hi Ronan, > > At 2023-07-08T08:46:40+, Ronan Pigott wrote: > > After updating to 1.23 I can no longer change the color of man pages > > with LESS_TERMCAP_* vars. > > Today I learned such a feature exists. Despite Mark Nudelman having

Re: Mission statement and Knuth-Plass reconsid

2023-07-08 Thread Douglas McIlroy
I hate to keep raining on the persistent dream of K-P in groff, but it fits poorly with troff's basic typesetting model. How will it deal with line-length changes that pop up in the middle of a paragraph, due to requests that can come inline or from a macro, perhaps triggered by a trap? K-P faces

Re: Man page customization after 1.23?

2023-07-08 Thread G. Branden Robinson
Hi Ronan, At 2023-07-08T08:46:40+, Ronan Pigott wrote: > After updating to 1.23 I can no longer change the color of man pages > with LESS_TERMCAP_* vars. Today I learned such a feature exists. Despite Mark Nudelman having had up to 39 years to document it, apparently the only place the featu

Re: Mission statement and Knuth-Plass reconsidered

2023-07-08 Thread Bertrand Garrigues
Hi Branden, On mar., mai 23 2023 at 02:15:33 , "G. Branden Robinson" wrote: >> > Myself, I wonder if K-P couldn't be implemented above the formatter >> > itself, using a diversion. We could then put the implementation in >> > an auxiliary macro package. [...] > I'll note that even if K-P can't

Re: unrecognized X command 'sgr 0' ignored (was: early adopters of groff 1.23.0)

2023-07-08 Thread Alexis
Hello Branden, thank you very much for your helpful emails and detailed analysis! I came across .output command in NixOS' site.tmac, but did not think much of it at the time and it certainly eluded me when thinking about the man-db test failures observed on the PR¹. It seems the conversation on

Man page customization after 1.23?

2023-07-08 Thread Ronan Pigott
Hi groff, After updating to 1.23 I can no longer change the color of man pages with LESS_TERMCAP_* vars. It seems like this in an intentional change, and I understand that it is a bit of a hack. But how can the output of man be customized post 1.23? Only with GROFF_NO_SGR? Is it planned to depreca