help / color / mirror / Atom feed
From: "Anthony J. Bentley" <anthony@cathet.us>
To: discuss@mdocml.bsd.lv
Subject: tbl(7) output in -Tlocale
Date: Tue, 14 Oct 2014 04:10:55 -0600	[thread overview]
Message-ID: <31798.1413281455@cathet.us> (raw)


In a UTF-8 locale, groff will output tables with box-drawing characters.
This provides a noticeable increase in readability in terminals.

Rather than the ASCII characters +, |, and - for borders, it uses the
Unicode range U+2500 to U+256C or so.

For example, this table:

Data 1
Data 2

uses U+2500 BOX DRAWINGS LIGHT HORIZONTAL for the horizontal line.

This table:

tab(:) box;
c5 c5 c5.

uses U+2500 and U+2502 for the sides, and U+250C, U+2510, U+2514, and
U+2518 for the corners.

tab(:) doublebox;
c5 c5 c5.

This is an example where Groff's output is not very good: it renders as
'box' does but duplicating the top and bottom lines. Nicer would be to
use U+2550/U+2551 for the sides and U+2554, U+2557, U+255A, and U+255D
for the corners. (Even in ASCII mode it would make more sense to use =
instead of doubling up on -, since they don't make a pretense of doubling
the vertical sides anyway.)

The 'allbox' option uses everything that 'box' does plus U+251C, U+2524,
U+252C, U+2534, and U+253C. Of course, allbox isn't implemented in mandoc

Anthony J. Bentley
 To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv

             reply	other threads:[~2014-10-14 10:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-14 10:10 Anthony J. Bentley [this message]
2014-10-14 13:56 ` Ingo Schwarze
2018-11-28  5:11 ` Ingo Schwarze

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:

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

  git send-email \
    --in-reply-to=31798.1413281455@cathet.us \
    --to=anthony@cathet.us \
    --cc=discuss@mdocml.bsd.lv \


* 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).