Re: problem with mm macros

2023-08-12 Thread G. Branden Robinson
Hi Andreas, At 2021-02-25T15:43:50+0100, Andreas Eder wrote: > I'm a newcomer to roff and have just begun reading the book 'UNIX > Document Processing and Typesetting'. There is an example of a letter > in there thay I enclose here, necause it shows the poblem: [...] > Now the problem is that grof

Re: problem with mm macros

2021-04-07 Thread Dave Kemper
On 2/25/21, Mike Bianchi wrote: > Does anyone maintain m.tmac these days? The bug tracker seems to think that *you* do -- or at least, it thought that once upon a time, as several old -mm bugs are assigned to you: http://savannah.gnu.org/bugs/?go_report=Apply&group=groff&func=browse&set=custom

Re: problem with mm macros

2021-03-16 Thread Tadziu Hoffmann
> I've attached your patch to http://savannah.gnu.org/bugs/?57034. Just a brief follow-up to this: the test in the patch is for a string expansion that returns nothing, in this case usually because the string is not defined, and then groff gives a warning. There are two obvious ways to fix this:

Re: problem with mm macros

2021-03-16 Thread Robert Goulding
Thanks, I will try it out. And if the LT macros are still broken, I'll put in a report. I think they will be, as the LT macros are (I believe) a non-standard addition to GNU mm, separate from the MT macros. Robert. On Mon, Mar 15, 2021 at 4:02 PM Dave Kemper wrote: > Thanks, Tadziu! I've attac

Re: problem with mm macros

2021-03-16 Thread Andreas Eder
On Mo 15 Mär 2021 at 15:00, Dave Kemper wrote: > Andreas and Robert, are the other issues you noted in this thread > manifestations of the same problem, or separate problems? I'm not at > all an mm user so don't know the expected behavior, but from the > descriptions, it sounds like at least the

Re: problem with mm macros

2021-03-16 Thread Andreas Eder
On Mo 15 Mär 2021 at 17:45, Tadziu Hoffmann wrote: > This can be fixed quickly by adding, below the line that > prints the author's name, > > \\*[cov*au!\\n[let*i]!1] > > the following lines: > > .nr let*j 0 1 > .while !'\\*[cov*at!\\n[let*i]!\\n+[let*j]]'' \{\ > \\*[cov*at!\\n[let*i]!\

Re: problem with mm macros

2021-03-15 Thread Dave Kemper
Thanks, Tadziu! I've attached your patch to http://savannah.gnu.org/bugs/?57034. Andreas and Robert, are the other issues you noted in this thread manifestations of the same problem, or separate problems? I'm not at all an mm user so don't know the expected behavior, but from the descriptions, i

Re: problem with mm macros

2021-03-15 Thread Tadziu Hoffmann
> > > Now the problem is that groff doesn't show the author's > > > title below the author's name. Both heirloom and neatroff > > > do, so it is maybe a bug in groff? > > Does this seem to you to be the same as the problem reported in > > http://savannah.gnu.org/bugs/index.php?57034 ? > Yes, th

Re: problem with mm macros

2021-03-15 Thread Andreas Eder
On Mo 15 Mär 2021 at 06:38, Dave Kemper wrote: > On 2/25/21, Andreas Eder wrote: >> Now the problem is that groff doesn't show the author's title below the >> author's name. Both heirloom and neatroff do, so it is maybe a bug in >> groff? > > Andreas, > > Does this seem to you to be the same a

Re: problem with mm macros

2021-03-14 Thread Dave Kemper
On 2/25/21, Andreas Eder wrote: > Now the problem is that groff doesn't show the author's title below the > author's name. Both heirloom and neatroff do, so it is maybe a bug in > groff? Andreas, Does this seem to you to be the same as the problem reported in http://savannah.gnu.org/bugs/index.p

Re: problem with mm macros

2021-02-26 Thread Andreas Eder
On Fr 26 Feb 2021 at 08:48, Robert Goulding wrote: > Actually, I now see that documents headed with .LT don't use .AU etc., but > .WA. And for the most part it works. > > But there is still a bug, with one of the four types of letters. > > Try this: > > .LT SP > .WA "John Doe" > Nowhere, > USA. >

Re: problem with mm macros

2021-02-26 Thread Robert Goulding
Actually, I now see that documents headed with .LT don't use .AU etc., but .WA. And for the most part it works. But there is still a bug, with one of the four types of letters. Try this: .LT SP .WA "John Doe" Nowhere, USA. .WE .IA "Jane Smith" Somewhere, UK. .IE .LO SJ "Letter of Introduction" .

Re: problem with mm macros

2021-02-26 Thread Andreas Eder
On Do 25 Feb 2021 at 10:40, Mike Bianchi wrote: > Andreas has found a true bug. The .AT macro does not act as advertised in > groff_mm ... > The title _does_not_ show up after the name in the signature block. > > Search /usr/share/groff/1.22.2/tmac/m.tmac (the copy I am using at pres

Re: problem with mm macros

2021-02-26 Thread Andreas Eder
On Do 25 Feb 2021 at 10:40, Mike Bianchi wrote: > Andreas has found a true bug. The .AT macro does not act as advertised in > groff_mm ... > The title _does_not_ show up after the name in the signature block. > > Search /usr/share/groff/1.22.2/tmac/m.tmac (the copy I am using at pres

Re: problem with mm macros

2021-02-25 Thread Mike Bianchi
Andreas has found a true bug. The .AT macro does not act as advertised in groff_mm ... The title _does_not_ show up after the name in the signature block. Search /usr/share/groff/1.22.2/tmac/m.tmac (the copy I am using at present) fgrep 'cov*at!' /usr/share/groff/1.22.2/t

Re: problem with mm macros

2021-02-25 Thread Robert Goulding
I get the same result; and then tried variants with .LT instead of .MT, and the signature is not produced at all! On Thu, Feb 25, 2021 at 9:44 AM Andreas Eder wrote: > > Hello, > > I'm a newcomer to roff and have just begun reading the book 'UNIX > Document Processing and Typesetting'. There is

problem with mm macros

2021-02-25 Thread Andreas Eder
Hello, I'm a newcomer to roff and have just begun reading the book 'UNIX Document Processing and Typesetting'. There is an example of a letter in there thay I enclose here, necause it shows the poblem: .ND "January 1, 1999" .AU "Dr. Gray Hound" .AT "Project Leader" .MT 5 .DS Our Reference: prog