Re: using the `hw` request in man pages (was: adjustment and hyphenation in mdoc(7) pages)

2023-03-25 Thread G. Branden Robinson
Hi Alex, At 2023-03-25T20:38:39+0100, Alejandro Colomar wrote: > On 3/25/23 09:40, G. Branden Robinson wrote: [man pages using the `hw` *roff request to override hyphenation] > > This is true, and I do on rare occasions see man pages doing this. > > Maybe it would be a good thing for man.local?

Re: using the `hw` request in man pages (was: adjustment and hyphenation in mdoc(7) pages)

2023-03-25 Thread Alejandro Colomar
Hi Branden, Dave, On 3/25/23 09:40, G. Branden Robinson wrote: > At 2023-03-24T13:29:32-0500, Dave Kemper wrote: >> In regular roff documents, one can also use the .hw request to >> globally suppress hyphenation of specified words. This is often >> preferable, as it doesn't require the user to (

using the `hw` request in man pages (was: adjustment and hyphenation in mdoc(7) pages)

2023-03-25 Thread G. Branden Robinson
At 2023-03-24T13:29:32-0500, Dave Kemper wrote: > On 3/24/23, G. Branden Robinson wrote: > > This means that mdoc(7) authors will need to learn a habit that is often > > neglected by their man(7) rivals as well: > > > > Use the hyphenation control escape sequence wherever necessary. It can > > su

Re: adjustment and hyphenation in mdoc(7) pages

2023-03-24 Thread Dave Kemper
On 3/24/23, G. Branden Robinson wrote: > This means that mdoc(7) authors will need to learn a habit that is often > neglected by their man(7) rivals as well: > > Use the hyphenation control escape sequence wherever necessary. It can > suppress hyphenation of _any_ word it prefixes in _any_ contex

Re: adjustment and hyphenation in mdoc(7) pages

2023-03-24 Thread Alejandro Colomar
Hi Branden, On 3/24/23 06:55, G. Branden Robinson wrote: [...] > Perhaps instead: > > At the beginning of a word, it suppresses any hyphenation breaks > within _except_ those specified with \%. > > Here is a fixed version of the reproducer: > > .Dd June 7, 2010 > .Dt timeradd 3bsd > .Os >

Re: adjustment and hyphenation in mdoc(7) pages

2023-03-24 Thread G. Branden Robinson
At 2023-03-24T00:55:50-0500, G. Branden Robinson wrote: > I can reproduce the problem. In groff Git what is also noticeable > is that groff mdoc(7) now adjusts to both margins by default as is > historically correct for man pages. (Yes, you can turn this off; see > groff_mdoc(7).) > > But it is

Re: adjustment and hyphenation in mdoc(7) pages

2023-03-24 Thread G. Branden Robinson
At 2023-03-24T14:08:49+0100, Alejandro Colomar wrote: > > \% is desperately underused, despite being as portable as anything > > is in *roff. Learn it, live it, love it! > > While I could even buy you that \% might not be a good default for > man(7)'s .B and .I, you can't buy that \% is not _alwa

adjustment and hyphenation in mdoc(7) pages

2023-03-24 Thread G. Branden Robinson
Hi Alex, At 2023-03-23T23:53:18+0100, Alejandro Colomar wrote: > I saw yesterday something that might have to do with this. Check the > timespecsub(3bsd) man (actually mdoc(7)) page, and in the SYNOPSYS > you'll find some weird filled function prototypes. I tried adding > hyphens to them, to see

Re: adjustment and hyphenation in mdoc(7) pages

2023-03-24 Thread G. Branden Robinson
Including the attachment this time. At 2023-03-24T00:55:50-0500, G. Branden Robinson wrote: > Please find a patch attached--it fixes adjustment for me; how about > you? diff --git a/tmac/mdoc/doc-common b/tmac/mdoc/doc-common index 53a25659f..df10ebd7d 100644 --- a/tmac/mdoc/doc-common +++ b/tmac/