Re: Creating macro for inline placement of pdf images

2022-11-16 Thread hbezemer--- via
Dear all, After some thinkering I came up with this macro: .de INLINE .ec @ .sy pdfinfo @$1 | \ grep -a "Page *size" | \ sed -e 's/Page *size: *\\([[:digit:].]*\\) *x *\\([[:digit:].]*\\).*$/\ .nr in-wid (p;\\1)\\n\ .nr in-ht (p;\\2)/' \ > /tmp/pdfpicA .so /tmp/pdfpicA .sy rm /tmp/pdfpicA .ec .sy

Re: man(7): .TP: Change minimum distance between tag and paragraph from 1 to 2 (subjective)

2022-11-16 Thread G. Branden Robinson
Hi Alex, At 2022-11-15T20:53:28+0100, Alejandro Colomar wrote: > I had this discussion today: > > Tagged paragraphs leave a minimum of a single space betweeen the tag > and the paragraph. In some cases, where the tag can be continuated in > the same line by the paragraph as a sentence, it feels

Re: man(7): .TP: Change minimum distance between tag and paragraph from 1 to 2 (subjective)

2022-11-16 Thread G. Branden Robinson
Hi Alex, Quick self-correction here. The name of the relevant register in groff 1.22.4 (and earlier, going back many years) is `an-tag-sep`. I had forgotten that I had renamed it in the past 4 years. So here's an updated "patch". .am TH . nr an-tag-sep 2n .. Regards, Branden signature.asc

Re: man(7): .TP: Change minimum distance between tag and paragraph from 1 to 2 (subjective)

2022-11-16 Thread Alejandro Colomar
Hi Branden! On 11/16/22 16:54, G. Branden Robinson wrote: Hi Alex, At 2022-11-15T20:53:28+0100, Alejandro Colomar wrote: I had this discussion today: Tagged paragraphs leave a minimum of a single space betweeen the tag and the paragraph. In some cases, where the tag can be continuated in the

Re: man(7): .TP: Change minimum distance between tag and paragraph from 1 to 2 (subjective)

2022-11-16 Thread Nate Bargmann
* On 2022 16 Nov 09:56 -0600, G. Branden Robinson wrote: > Printed 11/16/122 2022‐11‐16 1 Looks like a y2k failure. Haven't seen one of those in a while! - Nate -- "The optimist proclaims that we live in the best of all possible worlds. The pessimist fears t

Re: man(7): .TP: Change minimum distance between tag and paragraph from 1 to 2 (subjective)

2022-11-16 Thread G. Branden Robinson
At 2022-11-16T11:34:08-0600, Nate Bargmann wrote: > * On 2022 16 Nov 09:56 -0600, G. Branden Robinson wrote: > > Printed 11/16/122 2022‐11‐16 1 > > Looks like a y2k failure. Haven't seen one of those in a while! :D That's our old friend the `yr` register, prob

Re: Putting hyperlinks in a PDF document

2022-11-16 Thread Peter Schaffter
On Tue, Nov 15, 2022, G. Branden Robinson wrote: > [adding Peter for a mom question] > Peter, is there something "papersize.tmac" could be doing to help out > mom(7) here? We'd then have that macro file wired up to all of our > full-service macro packages. The attached patch along with my most re

Re: Putting hyperlinks in a PDF document

2022-11-16 Thread G. Branden Robinson
At 2022-11-16T12:07:21-0500, Peter Schaffter wrote: > On Tue, Nov 15, 2022, G. Branden Robinson wrote: > > [adding Peter for a mom question] > > Peter, is there something "papersize.tmac" could be doing to help out > > mom(7) here? We'd then have that macro file wired up to all of our > > full-ser

Re: [groff] 04/40: [gropdf]: Provide more info in diagnostic message.

2022-11-16 Thread Deri
On Saturday, 12 November 2022 20:11:09 GMT Deri wrote: > On Saturday, 12 November 2022 19:43:35 GMT G. Branden Robinson wrote: > > gbranden pushed a commit to branch master > > in repository groff. > > > > commit 4753f2b17b8d836cf66fcb17f5412239e8b45743 > > Author: G. Branden Robinson > > AuthorD

Re: [groff] 22/40: [devpdf]: Do more explicit work and less magic.

2022-11-16 Thread Deri
On Saturday, 12 November 2022 20:16:21 GMT Deri wrote: > On Saturday, 12 November 2022 19:43:38 GMT G. Branden Robinson wrote: > > gbranden pushed a commit to branch master > > in repository groff. > > > > commit 254e13c387a7fdd0267fac697737b5862c0851ad > > Author: G. Branden Robinson > > AuthorD

Re: [groff] 24/40: [build]: Refactor handling of PDF FreeEuro font.

2022-11-16 Thread Deri
On Saturday, 12 November 2022 20:19:04 GMT Deri wrote: > On Saturday, 12 November 2022 19:43:38 GMT G. Branden Robinson wrote: > > gbranden pushed a commit to branch master > > in repository groff. > > > > commit 83004cbf0c8e30bd700f9ef246629ab77de96a7c > > Author: G. Branden Robinson > > AuthorD

Chapters of the manual (was: Bug#1018737: /usr/bin/rst2man: rst2man: .TH 5th field shouldn't be empty)

2022-11-16 Thread Alejandro Colomar
Hi Branden! On 9/7/22 00:13, Alejandro Colomar wrote: I've seen sporadically references to the numbers as chapters, probably from when the manual was a proper book, but that term seems to have fallen in use. I don't recall seeing this.  While not my preference, I would regard it as an excusabl

Re: [groff] 19/40: [devpdf]: Tweak generation of "download" file.

2022-11-16 Thread Deri
On Saturday, 12 November 2022 20:26:08 GMT Deri wrote: > On Saturday, 12 November 2022 19:43:37 GMT G. Branden Robinson wrote: > > gbranden pushed a commit to branch master > > in repository groff. > > > > commit 6838addc2924c45874e7f3f8ebaf46716c4c3613 > > Author: G. Branden Robinson > > AuthorD

Re: [groff] 04/40: [gropdf]: Provide more info in diagnostic message.

2022-11-16 Thread G. Branden Robinson
Hi Deri, At 2022-11-16T22:02:49+, Deri wrote: > In the case when a particular entry in a download file points to a > file which is not readable, i.e. is added to the missing list, there > are three items of information which are useful:- > > The particular download file which contains the inc

Re: [groff] 22/40: [devpdf]: Do more explicit work and less magic.

2022-11-16 Thread G. Branden Robinson
Hi Deri, At 2022-11-16T22:34:43+, Deri wrote: > You have told me that this fixes the build problem that gropdf could > not find the freeeuro.pfa file, although it works once installed, and > I am sure it does fix the build issue, but it is a very big hammer to > crush a small walnut! It even a

Re: [groff] 24/40: [build]: Refactor handling of PDF FreeEuro font.

2022-11-16 Thread G. Branden Robinson
Hi Deri, At 2022-11-16T22:41:34+, Deri wrote: > This is covered by my comments on 22/40. I'm sorry you have gone to > such a lot of work when a minor change to devps.am would have achieved > what you wanted. I have no regrets if I get better orthogonality for my efforts. :D You can guess wh

Re: [groff] 19/40: [devpdf]: Tweak generation of "download" file.

2022-11-16 Thread G. Branden Robinson
Hi Deri, At 2022-11-16T22:52:34+, Deri wrote: > Parts of this is fine, (removing the space separators), but I did not > quite understand the changes to devpdf.am, [which altered the comment header in the generated "download" file] > and by this time I was a little peeved. :-) Cool; I'll st

Re: [groff] 19/40: [devpdf]: Tweak generation of "download" file.

2022-11-16 Thread Deri
On Wednesday, 16 November 2022 23:09:37 GMT G. Branden Robinson wrote: > Hi Deri, > > At 2022-11-16T22:52:34+, Deri wrote: > > Parts of this is fine, (removing the space separators), but I did not > > quite understand the changes to devpdf.am, > > [which altered the comment header in the gene

Re: Chapters of the manual (was: Bug#1018737: /usr/bin/rst2man: rst2man: .TH 5th field shouldn't be empty)

2022-11-16 Thread Alejandro Colomar
Hi Andries! On 11/17/22 00:40, Andries E. Brouwer wrote: On 9/7/22 00:13, Alejandro Colomar wrote: I've seen sporadically references to the numbers as chapters, probably from when the manual was a proper book, but that term seems to have fallen in use. Unix Programmer's Manual (4.2 BSD) Aug

Re: Chapters of the manual (was: Bug#1018737: /usr/bin/rst2man: rst2man: .TH 5th field shouldn't be empty)

2022-11-16 Thread Andries E. Brouwer
> On 9/7/22 00:13, Alejandro Colomar wrote: > > > > I've seen sporadically references to the numbers as chapters, probably > > > > from when the manual was a proper book, but that term seems to have > > > > fallen in use. Unix Programmer's Manual (4.2 BSD) August, 1983 Volume 1 Chapter I: Comman

Re: [groff] 22/40: [devpdf]: Do more explicit work and less magic.

2022-11-16 Thread Deri
On Wednesday, 16 November 2022 23:04:52 GMT G. Branden Robinson wrote: > I don't see why "rm -rf /usr/share/groff/1.23.0/font/devps" should cause > "groff -Tpdf" to fail or behave differently in any way. Do you? > > Regards, > Branden Hi Branden, I love your little jokes. :-) If you do the rm

Re: [groff] 22/40: [devpdf]: Do more explicit work and less magic.

2022-11-16 Thread G. Branden Robinson
Hi Deri, At 2022-11-17T00:12:40+, Deri wrote: > On Wednesday, 16 November 2022 23:04:52 GMT G. Branden Robinson wrote: > > I don't see why "rm -rf /usr/share/groff/1.23.0/font/devps" should > > cause "groff -Tpdf" to fail or behave differently in any way. Do > > you? > > I love your little jo

Re: [groff] 04/40: [gropdf]: Provide more info in diagnostic message.

2022-11-16 Thread Deri
On Wednesday, 16 November 2022 22:57:45 GMT G. Branden Robinson wrote: > I therefore propose something like: > > gropdf: warning: cannot embed font for 'TR': > "/usr/share/groff/site-font/devpdf/download" has invalid entry for > Times-Roman; could not open ".../timesrom.pfa" (Permission denied) >

Re: Chapters of the manual (was: Bug#1018737: /usr/bin/rst2man: rst2man: .TH 5th field shouldn't be empty)

2022-11-16 Thread Alejandro Colomar
Hi Colin, Ingo, and Branden, On 11/17/22 01:06, G. Branden Robinson wrote: >> I used temporarily the term [sub]chapter to see how it fits. > I think the adoption of the term (sub)chapter has a potential benefit in > that it removes a terminological collision with (sub)sections as > subdivisions o