Re: Question about ?roff on Reddit

2021-07-15 Thread Wim Stockman
Hi Peter, it is already a big bunch of comments. Branden replied with a cool word count example in groff. :-) Op do 15 jul. 2021 02:36 schreef Peter Schaffter : > On Wed, Jul 14, 2021, Nate Bargmann wrote: > > I saw the following post on r/linux today: > > > > > https://www.reddit.com/r/linux/co

Would it be reasonable to list the fonts that are available by default in groff?

2021-07-15 Thread T. Kurt Bond
Perhaps in groff_font(5) and in groff.texi? -- T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io

pdfroff and tables of contents

2021-07-15 Thread T. Kurt Bond
The pdfroff man page says: It transparently handles the mechanics of multiple pass groff processing, when applied to suitably marked up groff source files, such that tables of contents and body text are formatted separately, and are subsequently combined in the correct order, for final publ

Re: Question about ?roff on Reddit

2021-07-15 Thread G. Branden Robinson
At 2021-07-15T18:09:37+0200, Wim Stockman wrote: > Hi Peter, it is already a big bunch of comments. Branden replied with > a cool word count example in groff. > > :-) Much as I love high fives, I can't claim credit for that one. First, OmenBreeze on Reddit appears to be John Gardner, whom we hav

Re: Would it be reasonable to list the fonts that are available by default in groff?

2021-07-15 Thread G. Branden Robinson
At 2021-07-15T12:10:05-0400, T. Kurt Bond wrote: > Perhaps in groff_font(5) and in groff.texi? Thanks for raising this point; it is a poorly understood one. And that likely means we don't document it well enough. The available font repertoire is specific to each output device, so groff_font(5) o

Re: pdfroff and tables of contents

2021-07-15 Thread G. Branden Robinson
At 2021-07-15T12:34:40-0400, T. Kurt Bond wrote: > The pdfroff man page says: > > > It transparently handles the mechanics of multiple pass groff > > processing, when applied to suitably marked up groff source files, > > such that tables of contents and body text are formatted separately, > > and

Re: Would it be reasonable to list the fonts that are available by default in groff?

2021-07-15 Thread G. Branden Robinson
Wherein I illustrate how well I can count... At 2021-07-16T04:24:29+1000, G. Branden Robinson wrote: > Given the coupling between output device and font repertoire, I submit > that the most appropriate place to document the available repertoire > is in the man page for the relevant output driver.

Re: Question about ?roff on Reddit

2021-07-15 Thread Wim Stockman
Oeps, my mistake! Hope John you take my apologies 🙏. But still I also saw the .cw request but I couldn't find it in the manual What does it do ? Kind regards Wim Stockman Op do 15 jul. 2021 19:43 schreef G. Branden Robinson < g.branden.robin...@gmail.com>: > At 2021-07-15T18:09:37+0200, Wim

Re: groff-examples repository

2021-07-15 Thread Thomas Dupond
Hans Bezemer wrote: > One of the advantages is that users can submit their own > snippets. Wim Stockman wrote: > Maybe create some managed wikipage > So the community can contribute to it. As much as I enjoy the kind words around this project, I would like to say that my trade is not related

Re: Would it be reasonable to list the fonts that are available by default in groff?

2021-07-15 Thread Wim Stockman
Actually I don't think that is necessary. We could basically write a macro that installs on the fly a system available font for groff. Using the possibility to run an external script from within groff I m sure it is possible to install the font on the fly. Running Peter font-install script. Using t

Re: groff-examples repository

2021-07-15 Thread Wim Stockman
Hi Thomas, I have my gopher and Gemini server up and running almost for a year now. So I can mirror the groff section on my gopher and Gemini capsule. The url of my Gemini and gopher are yasendfile.org. I also have no problem to dedicate some time to this little projects. I don't know if you alread

Re: Question about ?roff on Reddit

2021-07-15 Thread G. Branden Robinson
At 2021-07-15T22:17:31+0200, Wim Stockman wrote: > Oeps, my mistake! > Hope John you take my apologies 🙏. > But still I also saw the .cw request but I couldn't find it in the > manual What does it do ? That's a great question. I confused it with .cs, which is the one I haven't seen used in a

Re: Would it be reasonable to list the fonts that are available by default in groff?

2021-07-15 Thread G. Branden Robinson
At 2021-07-15T22:58:41+0200, Wim Stockman wrote: > Actually I don't think that is necessary. We could basically write a > macro that installs on the fly a system available font for groff. > Using the possibility to run an external script from within groff I m > sure it is possible to install the f

Re: Would it be reasonable to list the fonts that are available by default in groff?

2021-07-15 Thread Douglas McIlroy
> We could basically write a macro that installs on the fly a system > available font for groff. Using the possibility to run an external script > from within groff I m sure it is possible to install the font on the fly. > Running Peter font-install script. Using the site-font directory so you > do

Re: Would it be reasonable to list the fonts that are available by default in groff?

2021-07-15 Thread T . Kurt Bond
On Thu, 15 Jul 2021 16:58:41 -0400, Wim Stockman wrote: > Using the site-font directory so you don't need root access. So, whether or not the site-font directory is owned by root, or even exists, is inconsistent. (This also makes it difficult to find automatically for scripts.) For instance, on

Re: Would it be reasonable to list the fonts that are available by default in groff?

2021-07-15 Thread T . Kurt Bond
On Thu, 15 Jul 2021 19:16:50 -0400, Douglas McIlroy wrote: > I'm generally an intrepid groff user, but not when it comes to font > installation. Anything that demystifies the process will win my applause. > > Doug Despite the vagaries of directory locations, once you understand what install-font

Re: Would it be reasonable to list the fonts that are available by default in groff?

2021-07-15 Thread Dave Kemper
On 7/15/21, G. Branden Robinson wrote: > What I think we need is to absorb Peter's font installer into groff, > give it a man page, make sure it works for a preponderance of expected > scenarios, and so forth. I'd do it, but I haven't had the spoons. And you already have a huge number of spoons

Re: Question about ?roff on Reddit

2021-07-15 Thread Nate Bargmann
* On 2021 15 Jul 12:44 -0500, G. Branden Robinson wrote: > At 2021-07-15T18:09:37+0200, Wim Stockman wrote: > > Hi Peter, it is already a big bunch of comments. Branden replied with > > a cool word count example in groff. > > > > :-) > > Much as I love high fives, I can't claim credit for that on

Re: Question about ?roff on Reddit

2021-07-15 Thread Nate Bargmann
I learned there is a Groff Reddit as well: https://www.reddit.com/r/groff/ It seems to have quite a bit of activity which is fantastic. - Nate -- "The optimist proclaims that we live in the best of all possible worlds. The pessimist fears this is true." Web: https://www.n0nb.us Projects: ht

Re: Question about ?roff on Reddit

2021-07-15 Thread T. Kurt Bond
If I remember correctly, at least one of the posters on the Groff Reddit also posts videos on youtube about groff, which seems like a popular way for the youngsters to get their information. Oh, here's one , by Gavin Freeborn, who's got a playlist

Macros for printing envelopes?

2021-07-15 Thread Nate Bargmann
Hi all. Reading through a few of the threads on Reddit what others are using groff for got me to thinking that I have a use case that has to be better than what I've been doing. One practice I have adopted recently is to print the address and return address directly to an envelope as I will readi

Re: Question about ?roff on Reddit

2021-07-15 Thread T. Kurt Bond
Oh, I missed a couple of other videos. On Thu, Jul 15, 2021 at 10:09 PM T. Kurt Bond wrote: > If I remember correctly, at least one of the posters on the Groff Reddit > also posts videos on youtube about

Re: Would it be reasonable to list the fonts that are available by default in groff?

2021-07-15 Thread T. Kurt Bond
So, on my Fedora 33 box at home, with both of the packages groff-base (the default install, just for man pages, I think?) and groff (the rest of groff) installed, /usr/share/groff does not contain a site-font. On Thu, Jul 15, 2021 at 8:15 PM T. Kurt Bond wrote: > On Thu, 15 Jul 2021 16:58:41 -04

Arbitrary Fractions - this time as strings

2021-07-15 Thread T. Kurt Bond
Returning to arbitrary fractions , I'm trying to make it work as a string invocation. (Is that the right terminology?) Anyway, I'm trying this: .po 1i .ll 6.5i .sp 1i .ps 16 .vs 18 .de fracinline \\R'n0 \\n[.s]'\# \\R'n1 \\n[n0]*6/1