Re: Linux man-pages PDF book
From: Alejandro Colomar <alx@kernel.org>
Date: 2024-04-14 12:25:37
Hi Branden! On Sun, Apr 14, 2024 at 07:01:45AM -0500, G. Branden Robinson wrote:
At 2024-04-14T13:41:24+0200, Alejandro Colomar wrote:quoted
Another thing I want to do, as mentioned in the groff bug, is to remove our an.tmac. Is there any change we can use a minimal definition that we can cat(1) to the system an.tmac? Or maybe instead of cat(1)ing it, tell groff(1) to use our definition in addition to -man.Deri had been using the cover page document to append to man(7) macros definitions, which basically accomplished this. I've since refactored everything that hyperlinked book generation needed in that respect into groff's "an.tmac" (in Git), leaving the cover page to do only cover page things. https://git.savannah.gnu.org/cgit/groff.git/tree/doc/GMPfront.t.in
Hmmm. I notice that your cover page has a few things that we have as part of the prepare.pl script: <https://git.savannah.gnu.org/cgit/groff.git/tree/doc/GMPfront.t.in#n7> <https://git.savannah.gnu.org/cgit/groff.git/tree/doc/GMPfront.t.in#n42> <https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/tree/share/mk/build/pdf/book/prepare.pl#n86> Maybe we could do the same, to reduce the work of prepare.pl? Our front page is also clean from an.tmac stuff. We have the an.tmac fork here: <https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/tree/share/mk/build/pdf/book/an.tmac> And the front page is: <https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/tree/share/mk/build/pdf/book/front.roff> However, our an.tmac is not for appending, but for replacing man(7). :( I'd like to get rid of that an.tmac fork. Does your message mean that if I use groff git HEAD to build our book I can just drop the fork and use man(7), and groff(1) will do the right thing? Also, what does .t mean (in GMPfront.t.in)? I changed the file extension to .roff (so, <front.roff>) in the Linux man-pages, as it's just a roff(7) file. Have a lovely day! Alex -- <https://www.alejandro-colomar.es/>
Attachments
- signature.asc [application/pgp-signature] 833 bytes