From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-2.sys.kth.se (smtp-2.sys.kth.se [130.237.32.160]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id p02KZdrh023681 for ; Sun, 2 Jan 2011 15:35:39 -0500 (EST) Received: from smtp-2.sys.kth.se (localhost [127.0.0.1]) by smtp-2.sys.kth.se (Postfix) with ESMTP id A93C814D7CC for ; Sun, 2 Jan 2011 21:35:33 +0100 (CET) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-2.sys.kth.se ([127.0.0.1]) by smtp-2.sys.kth.se (smtp-2.sys.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id x2hiH2PFAiZG for ; Sun, 2 Jan 2011 21:35:32 +0100 (CET) X-KTH-Auth: kristaps [85.8.61.101] X-KTH-mail-from: kristaps@bsd.lv X-KTH-rcpt-to: discuss@mdocml.bsd.lv Received: from h85-8-61-101.dynamic.se.alltele.net (h85-8-61-101.dynamic.se.alltele.net [85.8.61.101]) by smtp-2.sys.kth.se (Postfix) with ESMTP id 7E08214C12F for ; Sun, 2 Jan 2011 21:35:31 +0100 (CET) Message-ID: <4D20E193.60603@bsd.lv> Date: Sun, 02 Jan 2011 21:35:31 +0100 From: Kristaps Dzonsons User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 X-Mailinglist: mdocml-discuss Reply-To: discuss@mdocml.bsd.lv MIME-Version: 1.0 To: discuss@mdocml.bsd.lv Subject: tbl is now integrated into mandoc. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, This is just a head's-up that tbl(1) from http://tbl.bsd.lv has been fully integrated into mandoc. This integration consisted of many changes to the merged code (the original code-base is now deprecated, as I didn't push back the changes). An illustration: % ./mandoc -Owidth=68 foo.3 FOO(1) General Commands Manual FOO(1) NAME foo - bar DESCRIPTION hello DESCRIPTION hello +---------------------------------------------------------------+ +-----------+-------+------+---------+--------+-------+---------+ | | SLIST | LIST | SIMPLEQ | STAILQ | TAILQ | CIRCLEQ | |-----------+-------+------+---------+--------+-------+---------| |_EMPTY | + | + | + | + | + | + | |_FIRST | + | + | + | + | + | + | |_FOREACH | + | + | + | + | + | + | HELLO |_LAST | - | - | - | + | + | + | |_LOOP_NEXT | - | - | - | - | - | + | |_LOOP_PREV | - | - | - | - | - | + | |_NEXT | + | + | + | + | + | + | |_PREV | - | - | - | - | + | + | |_REMOVE | + | + | + | + | + | + | |_CONCAT | - | - | + | + | + | - | +---------------------------------------------------------------+ +-----------+-------+------+---------+--------+-------+---------+ Linux 2.6.32-5-amd64 January 2, 2011 Linux 2.6.32-5-amd64 The input file 'foo.3' is included below. There are still some elements that need consideration: (1) calculating lengths given escapes in input; (2) -T[x]html, -Tpdf, and -Tps output. For now, -Tpdf and -Tps look like crap, and -T[x]html hasn't been done at all. I'm actually not exactly sure how I'm going to get the lines done properly in PS or PDF. -T[x]html, however, shouldn't be too difficult. Meanwhile, I'm going to try to push some logic down into the code regarding (1), then tag out a release so the -Tascii tbl stuff is out in the wild. Take care, Kristaps % cat -n foo.3 1 .Dd $Mdocdate$ 2 .Dt FOO 1 3 .Os 4 .Sh NAME 5 .Nm foo 6 .Nd bar 7 .Sh DESCRIPTION 8 hello 9 .Ss DESCRIPTION 10 .Pp 11 hello 12 .TS 13 doublebox tab(:); 14 l | c | c | c | c | c | c 15 l | c | c | c | c | c | c 16 l | c | c | c | c | c | c 17 l | c | c | c | c | c | c 18 l | c | c | c | c | c | c 19 l | c | c | c | c | c | c. 20 :SLIST:LIST:SIMPLEQ:STAILQ:TAILQ:CIRCLEQ 21 _ 22 _EMPTY:+:+:+:+:+:+ 23 _FIRST:+:+:+:+:+:+ 24 _FOREACH:+:+:+:+:+:+ 25 .D1 HELLO 26 _LAST:-:-:-:+:+:+ 27 _LOOP_NEXT:-:-:-:-:-:+ 28 _LOOP_PREV:-:-:-:-:-:+ 29 _NEXT:+:+:+:+:+:+ 30 _PREV:-:-:-:-:+:+ 31 _REMOVE:+:+:+:+:+:+ 32 _CONCAT:-:-:+:+:+:- 33 .TE -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv