From: Kristaps Dzonsons <kristaps@bsd.lv>
To: discuss@mdocml.bsd.lv
Cc: aldis@bsdroot.lv
Subject: groff `Lk' badness
Date: Sun, 08 Aug 2010 20:52:52 +0200 [thread overview]
Message-ID: <4C5EFD04.2050407@bsd.lv> (raw)
Hi,
By way of a note by Aldis Berzoja, it seems that `Lk' has some
mysterious behaviour we should clarify.
Input:
.Lk foo bar baz xyzzy
groff Output:
bar: foo baz xyzzy
Where "bar:" is underlined and the rest is in bold.
So it looks like "bar" is the link, as underlined things make us think
of links. That would make "foo" be the link name (bold text) and damned
if I know why "baz" and "xyzzy" are also in bold.
This is confusing, because in fact `Lk' is documented as being link
first, link-name second (cutting off at two arguments and continuing the
formatting is probably a groff bug).
mandoc formats its output as "foo: bar baz xyzzy", but I think this is
misleading because the ":" is a reserved token in the URI spec.
Can we come to an agreement as to how this should be formatted? I don't
want to be bug-compatible with groff in this case. I like the "link:
link-name" output, but due to the colon being a URI reserved token,
"link-name: link" makes more sense, with link-name being bold and link
being underlined.
Thoughts?
Kristaps
--
To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv
next reply other threads:[~2010-08-08 18:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-08 18:52 Kristaps Dzonsons [this message]
2010-08-08 19:37 ` Ingo Schwarze
2010-08-09 0:22 ` Kristaps Dzonsons
2010-08-09 19:24 ` 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:
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=4C5EFD04.2050407@bsd.lv \
--to=kristaps@bsd.lv \
--cc=aldis@bsdroot.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).