Re: A version of fmt for troff files

2023-04-10 Thread Walter Alejandro Iglesias
On Feb 17 2023, Walter Alejandro Iglesias wrote: > Hi John, > > On Feb 17 2023, John Gardner wrote: > > > > > > https://en.roquesor.com/Downloads/fmtroff.c > > > > > > > Missed opportunity to call it "roffmt". ;-) > > I didn't realize! My code is even less elegant than the name I chose. :-) > Y

A file suffix for troff's output. (Was: pdfroff in groff 1.23.0.rc3 changes compared to 1.22.4)

2023-04-10 Thread Ralph Corderoy
Hi Branden, > Perhaps you can think of some alternative names for distinguishing > formatter output that we expect non-groff output drivers to be able to > cope with from those that exercise the extension. troff lays out its input. The input has been placed on the page. It is typeset. It is set.

Re: Proposed: stop subjecting right-hand sides of `char` family requests to character translation

2023-04-10 Thread Dave Kemper
On 4/1/23, G. Branden Robinson wrote: > At 2023-04-01T19:45:19-0400, Douglas McIlroy wrote: >> What does .char do for you that .ds doesn't? > > I don't remember where I saw this trick, but you can use a > `char`-defined object as a margin character, and I suppose just about > anywhere else the lan

Re: A file suffix for troff's output. (Was: pdfroff in groff 1.23.0.rc3 changes compared to 1.22.4)

2023-04-10 Thread DJ Chase
On Mon Apr 10, 2023 at 5:03 AM EDT, Ralph Corderoy wrote: > troff lays out its input. > The input has been placed on the page. > It is typeset. > It is set. > > troff chapter.tr >chapter.set $ file chapter.set chapter.set: ditroff output text for PostScript, ASCII text Wouldn’

Re: A file suffix for troff's output.

2023-04-10 Thread Ralph Corderoy
Hi DJ, > > troff lays out its input. > > The input has been placed on the page. > > It is typeset. > > It is set. > > > > troff chapter.tr >chapter.set > > $ file chapter.set > chapter.set: ditroff output text for PostScript, ASCII text > > Wouldn’t “.ditroff” be more appropriate?

Re: A file suffix for troff's output. (Was: pdfroff in groff 1.23.0.rc3 changes compared to 1.22.4)

2023-04-10 Thread Lennart Jablonka
Quoth DJ Chase: $ file chapter.set chapter.set: ditroff output text for PostScript, ASCII text Wouldn’t “.ditroff” be more appropriate? file tells you that chapter.set contains the ouput of ditroff, not ditroff itself. So no, both .set (which I find agreeable) and .trout are

Re: A file suffix for troff's output. (Was: pdfroff in groff 1.23.0.rc3 changes compared to 1.22.4)

2023-04-10 Thread Steve Izma
On Mon, Apr 10, 2023 at 10:03:34AM +0100, Ralph Corderoy wrote: > Subject: A file suffix for troff's output. (Was: pdfroff in groff > 1.23.0.rc3 changes compared to 1.22.4) > > troff chapter.tr >chapter.set > grops chapter.set >chapter.ps > > Short, simple, not already widely used by ano

Re: A file suffix for troff's output.

2023-04-10 Thread Ralph Corderoy
Hi Steve, > > troff chapter.tr >chapter.set > > grops chapter.set >chapter.ps > > > > Short, simple, not already widely used by another program, > > pronounceable, a clear derivation. > > Maybe I'm mis-reading the problem here, but Postscript output from > groff in my experience has alway

Re: A file suffix for troff's output. (Was: pdfroff in groff 1.23.0.rc3 changes compared to 1.22.4)

2023-04-10 Thread Alejandro Colomar
Hi Steve, On 4/10/23 15:45, Steve Izma wrote: > On Mon, Apr 10, 2023 at 10:03:34AM +0100, Ralph Corderoy wrote: >> Subject: A file suffix for troff's output. (Was: pdfroff in groff >> 1.23.0.rc3 changes compared to 1.22.4) >> >> troff chapter.tr >chapter.set >> grops chapter.set >chapter.

Re: A file suffix for troff's output.

2023-04-10 Thread Steve Izma
On Mon, Apr 10, 2023 at 04:37:07PM +0100, Ralph Corderoy wrote: > Subject: Re: A file suffix for troff's output. > > Some programs can act on the pattern to filenames, e.g. > make(1). It can be told how to turn a .tr into a .set and a > .set into a .ps. Even though all three are text files, it's >

Re: A file suffix for troff's output.

2023-04-10 Thread Ralph Corderoy
Hi Alejandro, > I'd use .cat.set for UTF8/ASCII pages, and .html.set for HTML pages. Yes, I was thinking if a .tr was being turned into several formats then I'd include troff's -T device in the filename. But as a general case, where just one -T is being targeted, a plain chapter.set seems suffic

Re: A file suffix for troff's output.

2023-04-10 Thread Alejandro Colomar
Hi Ralph, On 4/10/23 17:56, Ralph Corderoy wrote: > Hi Alejandro, > >> I'd use .cat.set for UTF8/ASCII pages, and .html.set for HTML pages. > > Yes, I was thinking if a .tr was being turned into several formats then > I'd include troff's -T device in the filename. > > But as a general case, whe

Re: A file suffix for troff's output.

2023-04-10 Thread DJ Chase
On Mon Apr 10, 2023 at 8:42 AM EDT, Ralph Corderoy wrote: > > > troff lays out its input. > > > The input has been placed on the page. > > > It is typeset. > > > It is set. > > > > > > troff chapter.tr >chapter.set > > > > $ file chapter.set > > chapter.set: ditroff output text for Post

Re: A file suffix for troff's output.

2023-04-10 Thread Ralph Corderoy
Hi DJ, > Since ditroff stands for “Device Independent troff” It does. It means the troff which doesn't have a device hard-coded within it but can instead take -Tps, -Tutf8, etc. The output of the device-independent troff is specific to the chosen -T device. Continuing to include the ‘independe

Re: A file suffix for troff's output.

2023-04-10 Thread DJ Chase
On Mon Apr 10, 2023 at 1:37 PM EDT, Ralph Corderoy wrote: > Hi DJ, > > > Since ditroff stands for “Device Independent troff” > > It does. It means the troff which doesn't have a device hard-coded > within it but can instead take -Tps, -Tutf8, etc. > > The output of the device-independent troff is

Re: reformatting man pages at SIGWINCH

2023-04-10 Thread Dirk Gouders
Hi Alex, Alejandro Colomar writes: > On 4/8/23 00:09, Dirk Gouders wrote: >>> Maybe it could be done with .SH and .SS. The heuristics to find these >>> are simple. It wouldn't be very precise, but it could try to find the >>> closest (only upwards) (sub)section heading. With some luck, .TP wo

Re: reformatting man pages at SIGWINCH

2023-04-10 Thread Alejandro Colomar
Hi Dirk, On 4/10/23 21:05, Dirk Gouders wrote: >> For something simpler, you could just count words since the start of the >> section divided by total words in the section. That should be fast, and >> I expect, also quite precise. Hyphenating might work against you on >> this, but on average it

Re: reformatting man pages at SIGWINCH

2023-04-10 Thread G. Branden Robinson
Hi Dirk, At 2023-04-10T21:05:24+0200, Dirk Gouders wrote: > This relies on the assumption that horizontal resizes don't create or > delete emty lines and it still has the weakness that manual pages > (e.g. bash(1)) contain large areas without empty lines but it's > definitely better than just stay

5n vs 7n: is it an objective question?

2023-04-10 Thread Alejandro Colomar
Hi Ingo, Branden, I'm not going to answer in Savannah, because as Ingo, I also do not like interactive web interfaces. Let's discuss it over email. Ingo claimed 7n is wasting screen. Branden claimed that preferring 5n is subjective. I agree with Branden that it is subjective, and moreover, pre

Re: 5n vs 7n: is it an objective question?

2023-04-10 Thread G. Branden Robinson
Hi Alex, At 2023-04-10T22:43:18+0200, Alejandro Colomar wrote: > I'm not going to answer in Savannah, because as Ingo, I also do not > like interactive web interfaces. Let's discuss it over email. > > Ingo claimed 7n is wasting screen. I'll come back to this. > Branden claimed that preferring

Typewriter tradition (was Re: 5n vs 7n: is it an objective question?)

2023-04-10 Thread Dave Kemper
On 4/10/23, G. Branden Robinson wrote: > At 2023-04-10T22:43:18+0200, Alejandro Colomar wrote: >> Branden claimed that preferring 5n is subjective. > > It _is_ also traditional in English typography. It's traditional on typewriters (which I presume is what you meant, since the next sentence talks