groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

troff -Tpdf: '.' in SS macro


From: Alejandro Colomar
Subject: troff -Tpdf: '.' in SS macro
Date: Fri, 16 Feb 2024 01:44:36 +0100

Hi Branden!

I'm improving the Linux man-pages build system, to add a 'distcheck'
target, and have control over newly added warnings vs longstanding ones.

I found that most output devices have warnings in the same pages, but
here's one that I've only seen in -Tpdf.  It might be a bug in -Tpdf.

        $ make .tmp/man/man7/path_resolution.7.pdf.set --debug=print
        TROFF   .tmp/man/man7/path_resolution.7.pdf.set
        ! (troff -man -Tpdf -wbreak  <.tmp/man/man7/path_resolution.7.pdf.troff 
2>&1 >.tmp/man/man7/path_resolution.7.pdf.set) \
        | grep ^ >&2
        troff:man7/path_resolution.7:135: warning: macro 'and' not defined 
(possibly missing space after 'an')
        make: *** [share/mk/build/pdf/troff.mk:22: 
.tmp/man/man7/path_resolution.7.pdf.set] Error 1
        make: *** Deleting file '.tmp/man/man7/path_resolution.7.pdf.set'


Here's a small reproducer:

        alx@debian:~/tmp$ cat dot.man 
        .TH dot 7 2024-02-16 dots-in-SS
        .SH Foo
        .SS . and ..
        \&. and .. are special files.
        alx@debian:~/tmp$ groff -man -Tutf8 dot.man >/dev/null
        alx@debian:~/tmp$ groff -man -Tps dot.man >/dev/null
        alx@debian:~/tmp$ groff -man -Tpdf dot.man >/dev/null
        troff:dot.man:3: warning: macro 'and' not defined (possibly missing 
space after 'an')

Have a lovely night!
Alex

-- 
<https://www.alejandro-colomar.es/>
Looking for a remote C programming job at the moment.

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]