Hi Erik,

Despite some cleanups late last year to make "hdtbl.tmac" quiescent when
building its own examples with "groff -wall",[1] I make two
observations.

1.  I can reproduce your diagnostics with groff Git HEAD, and
2.  with "-wall", additional diagnostics appear.

Your input is simple and short enough to post inline.

$ cat /tmp/dvalin.groff
.\" groff -ms
.mso hdtbl.tmac
.LP
.TBL width='1.2i 0.3i 4.5i'  vl=
.TR
.TD colspan=3 hal=c "English cf Danish"
.TR
.TD    half
.TD  -
.TD  halv     (oldnorse: halfr ; germanic common)
.ETB

(I tweaked it a little.)

$ ./build/test-groff -b -Ww -wall -ms -z /tmp/dvalin.groff
troff: backtrace: 'hdtbl.tmac':821: macro 't*dntr'
troff: backtrace: 'hdtbl.tmac':279: macro 'TR'
troff: backtrace: file '/tmp/dvalin.groff':7
troff:/tmp/dvalin.groff:7: warning: tab character in unquoted macro argument
troff: backtrace: 'hdmisc.tmac':97: while loop
troff: backtrace: 'hdmisc.tmac':135: macro 't*getarg'
troff: backtrace: 'hdtbl.tmac':928: macro 't*args'
troff: backtrace: 'hdtbl.tmac':360: macro 'TD'
troff: backtrace: file '/tmp/dvalin.groff':8
troff:/tmp/dvalin.groff:8: warning: end index of substring out of range, set to 
string length
/tmp/dvalin.groff:8: Invalid horizontal alignment 'f': must be 'b', 'c', 'l' or 
'r'.
troff: backtrace: 'hdtbl.tmac':821: macro 't*dntr'
troff: backtrace: 'hdtbl.tmac':335: macro 'TD'
troff: backtrace: file '/tmp/dvalin.groff':9
troff:/tmp/dvalin.groff:9: warning: tab character in unquoted macro argument
troff: backtrace: 'hdtbl.tmac':821: macro 't*dntr'
troff: backtrace: 'hdtbl.tmac':335: macro 'TD'
troff: backtrace: file '/tmp/dvalin.groff':10
troff:/tmp/dvalin.groff:10: warning: tab character in unquoted macro argument
troff: backtrace: 'hdmisc.tmac':97: while loop
troff: backtrace: 'hdmisc.tmac':135: macro 't*getarg'
troff: backtrace: 'hdtbl.tmac':928: macro 't*args'
troff: backtrace: 'hdtbl.tmac':360: macro 'TD'
troff: backtrace: file '/tmp/dvalin.groff':10
troff:/tmp/dvalin.groff:10: warning: end index of substring out of range, set 
to string length
/tmp/dvalin.groff:10: Invalid horizontal alignment 'v': must be 'b', 'c', 'l' 
or 'r'.
troff: backtrace: 'hdtbl.tmac':821: macro 't*dntr'
troff: backtrace: 'hdtbl.tmac':446: macro 'ETB'
troff: backtrace: file '/tmp/dvalin.groff':11
troff:/tmp/dvalin.groff:11: warning: tab character in unquoted macro argument

The warnings in category "tab" suggest to me a macro programming error
in hdtbl itself, since no tab characters occur in your input.

> The generated pdf table omits both triggering words; they're swallowed
> as formatting control. I'll attach the test file as well, for
> convenience.

Thanks, that was helpful.

> An older version of groff behaved the same, so it's not a recent
> artifact, I figure.
>
> Joachim Walsdorff's account at Heidelberg Uni has expired, so I'll
> report the anomaly here, to begin with.

hdtbl hasn't been significantly developed since Joachim drifted away,
many years ago now.

Would someone like to take up maintainership of it?  :)

Regards,
Branden

[1] https://git.savannah.gnu.org/cgit/groff.git/log/contrib/hdtbl

Attachment: signature.asc
Description: PGP signature

Reply via email to