Re: eqn anomaly

2020-03-02 Thread G. Branden Robinson
At 2020-03-03T02:09:02+0100, Tadziu Hoffmann wrote: > > As far as I can tell from Kernighan and Cherry[1], eqn's "define"s > > aren't parameterized at all. The groff eqn(1) man page claims to > > document (only) extensions to classical eqn, but I don't see this > > extension described there. > >

Re: eqn anomaly

2020-03-02 Thread Tadziu Hoffmann
> As far as I can tell from Kernighan and Cherry[1], eqn's "define"s > aren't parameterized at all. The groff eqn(1) man page claims to > document (only) extensions to classical eqn, but I don't see this > extension described there. It actually does: in subsection "Macros": Macros Ma

Re: eqn anomaly

2020-03-02 Thread G. Branden Robinson
At 2020-03-01T23:07:07-0500, Doug McIlroy wrote: > .EQ > define f % $1 % > f("a,b") > .EN > > draws a diagnostic from Gnu eqn: "newline before end of quoted text". > Remove the comma and all is well. Apparently the comma delimits > the first argument. > > The program isn't totally naive about par

Re: evaluation of \w

2020-03-02 Thread Marc Chantreux
On Tue, Mar 03, 2020 at 08:02:06AM +1100, G. Branden Robinson wrote: > At 2020-03-02T11:24:03-0500, Doug McIlroy wrote: > > Why does this input echo "\w'0'" > > .tm \w'0' > > while this input echoes "5000"? > > .nr w \w'0' > > .tm \nw i don't know if it helps but trying it with the 9base troff

Re: evaluation of \w

2020-03-02 Thread G. Branden Robinson
At 2020-03-02T11:24:03-0500, Doug McIlroy wrote: > Why does this input echo "\w'0'" > .tm \w'0' > while this input echoes "5000"? > .nr w \w'0' > .tm \nw On my system, it's consistent with (an unpatched) Heirloon troff and therefore, possibly, with classical troff: $ ./heirloom/bin/troff -V Heirl

Re: eqn sqrt and pdf?

2020-03-02 Thread Ralph Corderoy
Hi Deri, > Is the download file expected to be immutable? If it's shipped inside the package then yes, so that debsums(1) can test it hasn't been changed. Ditto with other packaging formats AIUI. > How do packagers deal with configuration files which are intended to > be editable by users? A .

Re: eqn sqrt and pdf?

2020-03-02 Thread Tadziu Hoffmann
> Is the download file expected to be immutable? There are > instructions how to add fonts to groff, which involves > changing the download file. How do packagers deal with > configuration files which are intended to be editable by > users? I recommend having your personal groff font folder inde

Re: eqn sqrt and pdf?

2020-03-02 Thread Deri
On Sunday, 1 March 2020 17:40:59 GMT Colin Watson wrote: > Thanks, but this is unlikely to be a very helpful approach for files > built as part of distribution-managed packages, where the shipped files > are normally expected to be immutable (for example, checksumming the > installed files would fa

Re: evaluation of \w

2020-03-02 Thread Tadziu Hoffmann
> Why does this input echo "\w'0'" > .tm \w'0' > while this input echoes "5000"? > .nr w \w'0' > .tm \nw >From the info file: -- Request: .tm string Send STRING to the standard error output; this is very useful for printing debugging messages among other things. STRING is read

evaluation of \w

2020-03-02 Thread Doug McIlroy
Why does this input echo "\w'0'" .tm \w'0' while this input echoes "5000"? .nr w \w'0' .tm \nw Doug

Re: eqn sqrt and pdf?

2020-03-02 Thread Marc Chantreux
Hello, > > > you fixed this by seding the download file which doesn't exist in the > > > debian distro. > > Not so: > > $ dpkg -L groff | grep download > /usr/share/groff/1.22.4/font/devpdf/download oops… sorry i missed it and thanks for letting me know. > process. I hadn't noticed that b