discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: Kristaps Dzonsons <kristaps@bsd.lv>
To: discuss@mdocml.bsd.lv
Subject: tbl is now integrated into mandoc.
Date: Sun, 02 Jan 2011 21:35:31 +0100	[thread overview]
Message-ID: <4D20E193.60603@bsd.lv> (raw)

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

             reply	other threads:[~2011-01-02 20:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-02 20:35 Kristaps Dzonsons [this message]
2011-01-03 15:13 ` Kristaps Dzonsons

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D20E193.60603@bsd.lv \
    --to=kristaps@bsd.lv \
    --cc=discuss@mdocml.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).