[bug #64600] groff_char(7) page renders badly with -Tdvi

2023-08-25 Thread G. Branden Robinson
URL: Summary: groff_char(7) page renders badly with -Tdvi Group: GNU roff Submitter: gbranden Submitted: Sat 26 Aug 2023 03:07:21 AM UTC Category: Core

Re: [PATCH v1 1/2] [troff]: Add lengthof() macro.

2023-08-25 Thread Alejandro Colomar
Hi Branden! On 2023-08-26 00:28, G. Branden Robinson wrote: > Hi Alex, > > I didn't forget about this. > > At 2023-08-04T03:00:10+0200, Alejandro Colomar wrote: >> * src/roff/troff/env.cpp (lengthof): Add macro to calculate the number >>of elements in an array. It's named after the

Re: [PATCH v1 1/2] [troff]: Add lengthof() macro.

2023-08-25 Thread G. Branden Robinson
Hi Alex, I didn't forget about this. At 2023-08-04T03:00:10+0200, Alejandro Colomar wrote: > * src/roff/troff/env.cpp (lengthof): Add macro to calculate the number >of elements in an array. It's named after the proposal to ISO C, >_Lengthof(), which wasn't accepted for C23, but

[bug #62692] [eqn] want a way to recover "set" parameteric defaults

2023-08-25 Thread G. Branden Robinson
Update of bug #62692 (project groff): Status:None => In Progress Assigned to:None => gbranden ___ Follow-up Comment #1: This works. Need to

Re: Footer trap in a A4 PDF

2023-08-25 Thread Tadziu Hoffmann
> A slight change and you can colour the margins with pure troff > so it works for both postscript and pdf:- Very good! Your example also demonstrates how setting the vertical spacing to zero allows directly positioning the baseline (which is the reference position for "\D" drawing commands)

[groff] 09/16: [man pages]: Use active voice more.

2023-08-25 Thread G. Branden Robinson
gbranden pushed a commit to branch master in repository groff. commit 9bd02b5a88b5f26592ca263d01ca3352d3ced37d Author: G. Branden Robinson AuthorDate: Thu Aug 24 07:28:52 2023 -0500 [man pages]: Use active voice more. --- src/devices/grodvi/grodvi.1.man | 2 +-

[groff] 06/16: [man pages]: Parallelize wrapper package descs.

2023-08-25 Thread G. Branden Robinson
gbranden pushed a commit to branch master in repository groff. commit 2c1bfe24cf991ac2d8ac102be020ec8e23b38578 Author: G. Branden Robinson AuthorDate: Thu Aug 24 07:24:27 2023 -0500 [man pages]: Parallelize wrapper package descs. --- contrib/mm/groff_mm.7.man | 4 ++--

[groff] 08/16: grotty(1): Add more break points to obnoxious URL.

2023-08-25 Thread G. Branden Robinson
gbranden pushed a commit to branch master in repository groff. commit 8812c800a863bccfed91bdd94967694114cf48cb Author: G. Branden Robinson AuthorDate: Thu Aug 24 07:26:20 2023 -0500 grotty(1): Add more break points to obnoxious URL. --- src/devices/grotty/grotty.1.man | 2 +- 1 file

[groff] 07/16: pic(1): Fix missing word.

2023-08-25 Thread G. Branden Robinson
gbranden pushed a commit to branch master in repository groff. commit cc2b89d12879bd2da297efd36013f040df9fc12c Author: G. Branden Robinson AuthorDate: Thu Aug 24 07:25:25 2023 -0500 pic(1): Fix missing word. --- src/preproc/pic/pic.1.man | 4 ++-- 1 file changed, 2 insertions(+), 2

[groff] 14/16: groff_man*(7): Strengthen admonition.

2023-08-25 Thread G. Branden Robinson
gbranden pushed a commit to branch master in repository groff. commit de7671877588a0f6d9f46ec453b2dd593fda8d6b Author: G. Branden Robinson AuthorDate: Fri Aug 25 10:36:07 2023 -0500 groff_man*(7): Strengthen admonition. --- tmac/groff_man.7.man.in | 2 +- 1 file changed, 1 insertion(+), 1

[groff] 11/16: [src]: Add `array_size` utility template function.

2023-08-25 Thread G. Branden Robinson
gbranden pushed a commit to branch master in repository groff. commit 6d5987c97b63589328daff049c7b0f7220bb4149 Author: G. Branden Robinson AuthorDate: Mon Aug 7 11:15:26 2023 -0500 [src]: Add `array_size` utility template function. [src]: Add template function for obtaining the

[groff] 15/16: {eqn,grap,pic}2graph(1): Clarify wording.

2023-08-25 Thread G. Branden Robinson
gbranden pushed a commit to branch master in repository groff. commit bd28c0fdfe44ece70338f8dab5ecce18090124f8 Author: G. Branden Robinson AuthorDate: Fri Aug 25 12:07:04 2023 -0500 {eqn,grap,pic}2graph(1): Clarify wording. --- contrib/eqn2graph/eqn2graph.1.man | 2 +-

[groff] 04/16: [mm]: Define `Qrf` string using `\E`, not `\\`.

2023-08-25 Thread G. Branden Robinson
gbranden pushed a commit to branch master in repository groff. commit 3f9aa6f371512e8702a117bbe019d57734e84ac8 Author: G. Branden Robinson AuthorDate: Thu Aug 24 04:18:23 2023 -0500 [mm]: Define `Qrf` string using `\E`, not `\\`. * contrib/mm/m.tmac (Qrf): Define string contents

[groff] 10/16: eqn(1): Fix content and style nits.

2023-08-25 Thread G. Branden Robinson
gbranden pushed a commit to branch master in repository groff. commit 6782e9917840a44a8f32fe60304dac73916ea45c Author: G. Branden Robinson AuthorDate: Thu Aug 24 07:48:41 2023 -0500 eqn(1): Fix content and style nits. * Document default sizes of `thin_space` and `thick_space`.

[groff] 16/16: [docs]: Tweak discussion of font handling.

2023-08-25 Thread G. Branden Robinson
gbranden pushed a commit to branch master in repository groff. commit 000d34e4a55ce43f2cef70c66900627af8c0f448 Author: G. Branden Robinson AuthorDate: Fri Aug 25 12:31:36 2023 -0500 [docs]: Tweak discussion of font handling. * Distinguish AT troff, the package/software distribution

[groff] 03/16: [mm]: Fix code style nits in mmroff.

2023-08-25 Thread G. Branden Robinson
gbranden pushed a commit to branch master in repository groff. commit 599db456140749533c76d826a5e81c12af00c692 Author: G. Branden Robinson AuthorDate: Thu Aug 24 01:40:13 2023 -0500 [mm]: Fix code style nits in mmroff. * contrib/mm/mmroff.pl: Fix code style nits; resolve Perl

[groff] 13/16: [eqn]: Migrate `set_param` to `array_size`.

2023-08-25 Thread G. Branden Robinson
gbranden pushed a commit to branch master in repository groff. commit 5924bc1c8635a0d572db98593ea314a0fe115a95 Author: G. Branden Robinson AuthorDate: Thu Aug 24 12:14:58 2023 -0500 [eqn]: Migrate `set_param` to `array_size`. * src/preproc/eqn/box.cpp (set_param): Migrate iteration

[groff] 01/16: groff_mm(7): Update `SG` description.

2023-08-25 Thread G. Branden Robinson
gbranden pushed a commit to branch master in repository groff. commit 93ddbc621c544a8ca43befac2c67a8186a416808 Author: G. Branden Robinson AuthorDate: Wed Aug 23 11:48:17 2023 -0500 groff_mm(7): Update `SG` description. Testing reveals that DWB 3.3 mm completely ignores `AU` calls

[groff] 12/16: grodvi(1): Tighten wording.

2023-08-25 Thread G. Branden Robinson
gbranden pushed a commit to branch master in repository groff. commit 72a78e3310b3917d37871ba9a941d76be52e76f2 Author: G. Branden Robinson AuthorDate: Thu Aug 24 11:44:13 2023 -0500 grodvi(1): Tighten wording. --- src/devices/grodvi/grodvi.1.man | 21 +++-- 1 file changed,

[groff] 02/16: [mm]: Validate reference system state and user input.

2023-08-25 Thread G. Branden Robinson
gbranden pushed a commit to branch master in repository groff. commit 7c8143d92af9132107a43f36f2916e06e6ad0aee Author: G. Branden Robinson AuthorDate: Wed Aug 23 12:30:48 2023 -0500 [mm]: Validate reference system state and user input. * contrib/mm/m.tmac (qrf*validate-identifier):

[groff] 05/16: groff_mm(7): Revise reference system macro descs.

2023-08-25 Thread G. Branden Robinson
gbranden pushed a commit to branch master in repository groff. commit 7cf7315364265b1352000b7b6ad02afcd6c8d03e Author: G. Branden Robinson AuthorDate: Thu Aug 24 07:13:47 2023 -0500 groff_mm(7): Revise reference system macro descs. * Use hyphenated noun phrases for metasyntactic

Re: Footer trap in a A4 PDF

2023-08-25 Thread Deri
On Friday, 25 August 2023 17:00:23 BST Tadziu Hoffmann wrote: > I have attached a demonstration file you can use for experimenting. > (I have used 3 cm margins for this. Coloring the margins with XX > (for debugging purposes) only works with the PS device; you can > safely remove this.) A slight

[bug #64597] [mom] spurious newline after image label

2023-08-25 Thread G. Branden Robinson
Follow-up Comment #3, bug #64597 (project groff): [comment #2 comment #2:] > Thank you for correcting the title and other meta data of the issue. I hit submit too fast and could not find a way to correct it later. No problem at all; I have a set of conventions, which exist for the most part only

[bug #64597] [mom] spurious newline after image label

2023-08-25 Thread Sven Schober
Follow-up Comment #2, bug #64597 (project groff): Hi Branden! Thank you for correcting the title and other meta data of the issue. I hit submit too fast and could not find a way to correct it later. I just took a look at the PDF_IMAGE source code in mom, but I think it would take me a week of

Re: Footer trap in a A4 PDF

2023-08-25 Thread G. Branden Robinson
Hi Matteo, At 2023-08-25T18:32:02+0200, Matteo Bini wrote: > On 2023-08-25 10:20, G. Branden Robinson wrote: > > Attaching screenshots of Evince viewing the document in "Dual" mode, > > when produced with Debian's groff 1.22.4 and stock groff 1.23.0 > > I hate to be that meticulous, but if you

Re: Footer trap in a A4 PDF

2023-08-25 Thread G. Branden Robinson
At 2023-08-25T12:46:49-0400, Peter Schaffter wrote: > On Fri, Aug 25, 2023, G. Branden Robinson wrote: > > (Once upon a time, like 25 years ago, there was a tool called xruler or > > similar that made it easy to measure distances on the screen. > > Twenty-five years ago, I started running KDE

Re: Footer trap in a A4 PDF

2023-08-25 Thread Peter Schaffter
On Fri, Aug 25, 2023, G. Branden Robinson wrote: > (Once upon a time, like 25 years ago, there was a tool called xruler or > similar that made it easy to measure distances on the screen. Twenty-five years ago, I started running KDE just to get its screen ruler. It's still around. Kruler. I use

Re: Footer trap in a A4 PDF

2023-08-25 Thread Matteo Bini
Hello again Branden, On 2023-08-25 10:20, G. Branden Robinson wrote: > Attaching screenshots of Evince viewing the document in "Dual" mode, > when produced with Debian's groff 1.22.4 and stock groff 1.23.0 I hate to be that meticulous, but if you open those images with GIMP, you can see that the

Re: Footer trap in a A4 PDF

2023-08-25 Thread Tadziu Hoffmann
> How should I proceed to achieve precise margin sizes? There's two things to consider here. One: the trap is sprung when a line is output that reaches OR SWEEPS PAST the trap position. If you set your trap at -2 cm, then an output line may nevertheless still intrude into the bottom margin of

Re: Footer trap in a A4 PDF

2023-08-25 Thread G. Branden Robinson
Hi Matteo, At 2023-08-25T16:51:15+0200, Matteo Bini wrote: > Thanks for the answer Branden, > it's an honour to get a reply directly from you! It's an honor to have users who care enough to submit reports against a package, rather than casting it aside as unsatisfactory! > I've compiled your

Re: Footer trap in a A4 PDF

2023-08-25 Thread Matteo Bini
Thanks for the answer Branden, it's an honour to get a reply directly from you! I've compiled your ROFF file and I've attached the resulting PDF. My groff version is 1.22.4. I'm on Debian 12, stable. Not only the word footer does not show up in the same place on the two pages, but it's not at

[bug #64594] [troff] "warning: cannot select font 'C'"

2023-08-25 Thread G. Branden Robinson
Follow-up Comment #3, bug #64594 (project groff): I noted the following at the [https://github.com/jgm/pandoc/issues/9020 pandoc ticket #9020], but here it is for our benefit. Specifically, the commit that caused the formatter to produce these warnings where it did not before was this. commit

Re: groff in openSUSE

2023-08-25 Thread Ingo Schwarze
Hi Michael, Alejandro Colomar wrote on Fri, Aug 25, 2023 at 02:56:15PM +0200: > On 2023-08-25 14:05, Michael Vetter wrote: >> # conflicts with mandoc >> mkdir man7mp >> mv man7/man.7 man7mp/man.7mp Creating a subdirectory for the Linux Man Pages Project sounds like a bad idea to me. I would

[bug #64592] [troff] registers .m and .M contain no initial value

2023-08-25 Thread G. Branden Robinson
Update of bug #64592 (project groff): Item Group: Incorrect behaviour => Warning/Suspicious behaviour Status:None => Need Info Assigned to:None => gbranden

Re: Footer trap in a A4 PDF

2023-08-25 Thread Tadziu Hoffmann
> I would expect the word "footer" to pop up at -2c from the page bottom, > then a page break. Footer does pop up, and there's the page break too, > however it does not show up at -2c from the bottom. It's lower. It is working as intended. When you say ".sp |0c" in troff, that does not mean

[bug #64597] [mom] spurious newline after image label

2023-08-25 Thread G. Branden Robinson
Update of bug #64597 (project groff): Category:None => Macro mom Item Group:None => Incorrect behaviour Assigned to:None => PTPi Summary:

[bug #64597] Spurious newline after image label

2023-08-25 Thread Sven Schober
URL: Summary: Spurious newline after image label Group: GNU roff Submitter: sschober Submitted: Fri 25 Aug 2023 01:22:37 PM UTC Category: None Severity: 3 -

Re: Footer trap in a A4 PDF

2023-08-25 Thread G. Branden Robinson
Hi Matteo, At 2023-08-25T14:25:06+0200, Matteo Bini wrote: > I'm writing some documents that will be exported in PDF with A4 paper > size. I'm using my own macro package. [...] > This is how I output to PDF: > groff -K utf8 -m mymacro -M . -P -pa4 -T pdf in.roff > out.pdf > > I would expect the

Re: groff in openSUSE

2023-08-25 Thread Alejandro Colomar
[CC += linux-man@ & groff@, as we're discussing packaging of both] Hi Michael! On 2023-08-25 14:05, Michael Vetter wrote: > Hi Alejandro! > >> Are you a SUSE maintainer? I'd like to know who is the maintainer of >> the groff(1) package in openSUSE. They released a new version a couple >> of

Footer trap in a A4 PDF

2023-08-25 Thread Matteo Bini
Hello groffers! I'm writing some documents that will be exported in PDF with A4 paper size. I'm using my own macro package. My macro package is very very simple: it's just for defining paragraphs and titles style. Then I've decided to add an empty footer, which is more like a bottom margin for my

Re: OSC8 hyperlink support in ncurses

2023-08-25 Thread G. Branden Robinson
Hi Thomas, At 2023-08-23T15:25:24-0400, Thomas Dickey wrote: > On Wed, Aug 23, 2023 at 03:21:43AM -0500, G. Branden Robinson wrote: > > There was a humdinger of an argument about this on Egmont Koblinger's > > Gist about this feature. > > > >

bisecting with submodules: a pain

2023-08-25 Thread G. Branden Robinson
Hi Bertrand, I hope this message finds you well! Do you have any advice for going a Git bisection of the groff repo given that the gnulib submodule is present? I had occasional trouble with this before the 1.23.0 release but now it is much worse, and the disappearing "uniwidth.h" file breaks