Re: Two trivial questions

2021-11-09 Thread Ralph Corderoy
Hi Dave, > > Bug. CSTR 54 doesn't allow it, nor does > > info groff 'Changing Type Sizes' | less > > It doesn't seem quite that clear-cut to me. Neither of those sources > explicitly states what *roff does with additional parameters to .ps, > or with nonnumeric trailing characters to a numer

Re: Two trivial questions

2021-11-08 Thread Dave Kemper
On 11/8/21, Ralph Corderoy wrote: > Bug. CSTR 54 doesn't allow it, nor does > info groff 'Changing Type Sizes' | less It doesn't seem quite that clear-cut to me. Neither of those sources explicitly states what *roff does with additional parameters to .ps, or with nonnumeric trailing charact

Re: Two trivial questions

2021-11-08 Thread Dave Kemper
On 11/8/21, Peter Schaffter wrote: > Not all punctuation or trailing characters are ignored. > > $ printf ".ps 12.5\n.tm \\\n[.s]\n" | groff -z > 12.5 > $ printf ".ps 12:5\n.tm \\\n[.s]\n" | groff -z > 1 > $ printf ".ps 12&5\n.tm \\\n[.s]\n" | groff -z > 1 Right, but those are behaving as d

Re: Two trivial questions

2021-11-08 Thread Peter Schaffter
On Mon, Nov 08, 2021, Dave Kemper wrote: > Yeah, in fact, groff ignores numbers following several marks of > punctuation besides the comma, and warns about none, even with all > warnings turned on. > > $ printf '.ps 12\nword\n' | groff -Z -ww > test.out > $ printf '.ps 12.5\nword\n' | groff -Z -ww

Re: Two trivial questions

2021-11-08 Thread Ralph Corderoy
Hi Dave, > Yeah, in fact, groff ignores numbers following several marks of > punctuation besides the comma, and warns about none, even with all > warnings turned on. ... > $ printf '.ps 12@5\nword\n' | groff -Z -ww | diff - test.out | wc > 0 0 0 > > > Sounds like a bug. > > Bug,

Re: Two trivial questions

2021-11-08 Thread Dave Kemper
On 10/28/21, Ralph Corderoy wrote: > Perhaps the code is doing the equivalent of atoi(3) and ignoring errors > rather than something more akin to strtol(3) with care to prime errno(3) > beforehand. Yeah, in fact, groff ignores numbers following several marks of punctuation besides the comma, and

Re: Two trivial questions

2021-10-31 Thread Marc Chantreux
hello, > however, might (and probably should) be adjusted if the users asks for > it. In Germany or Austria, for example, all 'official' sites (banks, > government, etc.) expect > 1.234.567,89 € I personally use the separator _ to space some big numbers: * there is no confusion with some local

Re: Two trivial questions

2021-10-27 Thread Ralph Corderoy
Hi Peter, > > > Is it acceptable to use a comma for decimal fractions that are > > > arguments to requests and macros (say .ps 12,5 instead of .ps > > > 12.5) if a user's locale supports it? ... > I asked because a document in Spanish I was reviewing used > comma-separated decimal values for the d

Re: Two trivial questions

2021-10-27 Thread Peter Schaffter
On Wed, Oct 27, 2021, Ralph Corderoy wrote: > It's g-roff, just as ed(1) is e-d. History and culture are important so > it's worth persisting and educating gently in the background, > e.g. groff(1) should start > > This document describes the groff program, pronounced ‘gee-roff’, ... +1 It's

Re: Two trivial questions

2021-10-27 Thread Mike Bianchi
On Tue, Oct 26, 2021 at 08:39:51PM -0500, Dave Kemper wrote: > > I say "g-roff" (to match t-roff and n-roff). The missing piece of information was before there was ?roff there was roff . roff Run OFF ((Unix version of the runoff text-formatting program from Multics))

Re: Two trivial questions

2021-10-27 Thread John Gardner
Initially, I pronounced it /ɡɹɔːf/ . Recently, I've begun pronouncing it /ˈdʒiːɹɒf/ , though I sometimes still mentally read it as the former. IMHO, I think we should put our foot down and

Re: Two trivial questions

2021-10-27 Thread Ralph Corderoy
Hi Peter, > Is there a correct pronunciation of groff? It's g-roff, just as ed(1) is e-d. History and culture are important so it's worth persisting and educating gently in the background, e.g. groff(1) should start This document describes the groff program, pronounced ‘gee-roff’, ... > Se

Re: Two trivial questions

2021-10-27 Thread Werner LEMBERG
>> I strongly discourage using any locale other than the C locale >> in your source code. > > I would never do such a thing. Heaven forfend! The question was > prompted by a mom user off list wondering about groff input files, > not macro programming. I suggest that numbers are input with `.`

Re: Two trivial questions

2021-10-26 Thread G. Branden Robinson
At 2021-10-26T17:19:56-0700, Dale Snell wrote: > On Tue, Oct 26, 2021 at 2:38 PM Peter Schaffter wrote: > > Second question, maybe not so trivial. Is it > > acceptable to use a comma for decimal fractions that > > are arguments to requests and macros (say .ps 12,5 > > instead of .ps 12.5) if a us

Re: Two trivial questions

2021-10-26 Thread G. Branden Robinson
[post-quotation word count: 565] At 2021-10-26T23:44:15-0400, Peter Schaffter wrote: > On Tue, Oct 26, 2021, Douglas McIlroy wrote: > > > Is there a correct pronunciation of groff? > > > > Groff's forebears were christened en-roff and tee-roff, so an > > old-timer from Bell Labs instinctively rea

Re: Two trivial questions

2021-10-26 Thread Peter Schaffter
On Tue, Oct 26, 2021, Douglas McIlroy wrote: > > Is there a correct pronunciation of groff? > > Groff's forebears were christened en-roff and tee-roff, so an > old-timer from Bell Labs instinctively reads groff as a disyllable. > Could groff's originator, James Clark, have read it otherwise? So i

Re: Two trivial questions

2021-10-26 Thread Peter Schaffter
On Wed, Oct 27, 2021, Alejandro Colomar (man-pages) wrote: > I strongly discourage using any locale other than the C locale > in your source code. I would never do such a thing. Heaven forfend! The question was prompted by a mom user off list wondering about groff input files, not macro programm

Re: Two trivial questions

2021-10-26 Thread Douglas McIlroy
> Is there a correct pronunciation of groff? Groff's forebears were christened en-roff and tee-roff, so an old-timer from Bell Labs instinctively reads groff as a disyllable. Could groff's originator, James Clark, have read it otherwise? Doug

Re: Two trivial questions

2021-10-26 Thread Dave Kemper
On 10/26/21, Peter Schaffter wrote: > I've been checking out YouTube videos on groff. The > uploaders all say "groff" (one syllable, like "gruff"). > I say "g-roff" (to match t-roff and n-roff). The groff documentation itself says how to pronounce "troff" but is silent on the pronunciation of "g

Re: Two trivial questions

2021-10-26 Thread Steve Izma
On Tue, Oct 26, 2021 at 05:26:39PM -0700, Larry McVoy wrote: > Subject: Re: Two trivial questions > > On Tue, Oct 26, 2021 at 05:19:56PM -0700, Dale Snell wrote: > > On Tue, Oct 26, 2021 at 2:38 PM Peter Schaffter wrote: > > > > > Is there a correct pron

Re: Two trivial questions

2021-10-26 Thread Larry McVoy
On Tue, Oct 26, 2021 at 05:19:56PM -0700, Dale Snell wrote: > On Tue, Oct 26, 2021 at 2:38 PM Peter Schaffter wrote: > > > Is there a correct pronunciation of groff? I've been > > checking out YouTube videos on groff. The uploaders > > all say "groff" (one syllable, like "gruff"). I say > > "g

Re: Two trivial questions

2021-10-26 Thread Dale Snell
On Tue, Oct 26, 2021 at 2:38 PM Peter Schaffter wrote: > Is there a correct pronunciation of groff? I've been > checking out YouTube videos on groff. The uploaders > all say "groff" (one syllable, like "gruff"). I say > "g-roff" (to match t-roff and n-roff). Count me as a happy member of the

Re: Two trivial questions

2021-10-26 Thread Alejandro Colomar (man-pages)
Hello Peter, On 10/26/21 11:07 PM, Peter Schaffter wrote: Second question, maybe not so trivial. Is it acceptable to use a comma for decimal fractions that are arguments to requests and macros (say .ps 12,5 instead of .ps 12.5) if a user's locale supports it? I ignore if groff technically ac

Two trivial questions

2021-10-26 Thread Peter Schaffter
Is there a correct pronunciation of groff? I've been checking out YouTube videos on groff. The uploaders all say "groff" (one syllable, like "gruff"). I say "g-roff" (to match t-roff and n-roff). Second question, maybe not so trivial. Is it acceptable to use a comma for decimal fractions that