bug-groff
[Top][All Lists]
Advanced

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

Re: groff (tbl/troff) gets confused when page number register format is


From: Jonathan Leffler
Subject: Re: groff (tbl/troff) gets confused when page number register format is roman, not decimal
Date: Mon, 23 Aug 2004 00:09:30 -0700
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.2) Gecko/20040803

Jonathan Leffler wrote:
Another odd-ball bug - the key operation is the combination of setting the current page number to 9 (.pn 9) plus setting the page number format to roman (.af % i). This produces the messages:

tblbug2.n:5: expected `;' after scale-indicator (got `x')
troff: expected `;' after scale-indicator (got `x')

I think the problem is in tbl - but I could be misreading the tealeaves.

The tea leaves were completely misread -- it is a pure troff issue (possibly combined with the mm macros).

The complete document that produces this error is:

.pn 9
.af % i
.EH "!%\h'1c'\fIContents\fP!!!"
.OH "!!!\fIContents\fP\h'1c'%"
.TS
center, expand, tab(@);
lb r.
address@hidden
.TE

I was processing using 'groff -t -Tps -mm tblbug2.n > tblbug2.ps'.
I was using groff 1.18.1 on MacOS X 10.3.5, and (as before) I have been unable to upgrade to groff 1.19 because it does not compile cleanly out of the box with either the GCC 3.4.0 I built or the GCC 3.3 built by Apple.

If you change the .af line to use '0' instead of 'i', the output is clean.

That is unnecessarily verbose (sorry!). The following three lines are sufficient:

.pn 9
.af % i
xxxx

The command line is then 'groff -Tps -mm tblbug2.n > tblbug2.ps', except the file name is a complete misnomer now. The '-mm' option is necessary. Changing the page number (9 to 8, for example) changes the
detail of the error message (complaining about i instead of x); change
the page number to 5 and the complaint is about '='.

--
Jonathan Leffler (address@hidden, address@hidden) #include <disclaimer.h>
Guardian of DBD::Informix v2003.04 -- http://dbi.perl.org/




reply via email to

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