From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-1.sys.kth.se (smtp-1.sys.kth.se [130.237.32.175]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id p4HDDKtb025288 for ; Tue, 17 May 2011 09:13:21 -0400 (EDT) Received: from mailscan-1.sys.kth.se (mailscan-1.sys.kth.se [130.237.32.91]) by smtp-1.sys.kth.se (Postfix) with ESMTP id 29429156B58 for ; Tue, 17 May 2011 15:13:15 +0200 (CEST) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-1.sys.kth.se ([130.237.32.175]) by mailscan-1.sys.kth.se (mailscan-1.sys.kth.se [130.237.32.91]) (amavisd-new, port 10024) with LMTP id vwCVeu8d5jCw for ; Tue, 17 May 2011 15:13:13 +0200 (CEST) X-KTH-Auth: kristaps [213.103.216.43] X-KTH-mail-from: kristaps@bsd.lv X-KTH-rcpt-to: discuss@mdocml.bsd.lv Received: from macky.local (s213-103-216-43.cust.tele2.se [213.103.216.43]) by smtp-1.sys.kth.se (Postfix) with ESMTP id B3007156B46 for ; Tue, 17 May 2011 15:13:13 +0200 (CEST) Message-ID: <4DD27469.5070505@bsd.lv> Date: Tue, 17 May 2011 15:13:13 +0200 From: Kristaps Dzonsons User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 X-Mailinglist: mdocml-discuss Reply-To: discuss@mdocml.bsd.lv MIME-Version: 1.0 To: discuss@mdocml.bsd.lv Subject: Re: tbl example - what should be fixed? References: <20110516111854.GA58664@procyon.xvoid.org> In-Reply-To: <20110516111854.GA58664@procyon.xvoid.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > We have a lot of manpages having the similar looking tables: > .TS > tab() box; > cw(2.75i) |cw(2.75i) > lw(2.75i) |lw(2.75i) > . > TYPEVALUE > _ > Type1Value1 > _ > Type2Value2 > .TE > > Output of -Tlint: > tbl.example:2:5: ERROR: skipping bad character: ignoring byte > tbl.example:2:6: ERROR: bad table syntax > tbl.example:3:12: ERROR: bad table layout > tbl.example:4:12: ERROR: bad table layout > tbl.example:6:15: ERROR: skipping bad character: ignoring byte > tbl.example:6:4: ERROR: bad table layout > tbl.example:8:4: ERROR: skipping bad character: ignoring byte > tbl.example:8:2: ERROR: bad table layout > tbl.example:10:20: ERROR: skipping bad character: ignoring byte > tbl.example:10:1: ERROR: bad table layout > tbl.example:1:1: ERROR: no table data cells specified > > > My questions is, is there anything that could/should be fixed/improved > in tbl parser, or all of the errors are 100% correct and should be fixed > in the manpages? Yuri, From mdoc.7: LANGUAGE SYNTAX mdoc documents may contain only graphable 7-bit ASCII characters, the space character, and, in certain circumstances, the tab character. The tbl.7 manuals says the same. But you have non-ASCII characters in the input. groff is probably letting you get away with this by simply reading through the binary to the ')', but mandoc throws away the binary characters before parsing. Second, you did raise a bug! I was looking for modifiers for the vertical bar, i.e., a|b -> error. I just committed a fix for this. The stand-alone period is another problem. groff *should* ignore it by its own definition of a no-op macro. But as it occurs in a tbl context, it's different? Blje... For now, just put the period on the same line as the last macro. Thanks again, Kristaps -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv