discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: Ingo Schwarze <schwarze@usta.de>
To: discuss@mdocml.bsd.lv
Subject: Re: Raw UTF-8?
Date: Mon, 12 Jul 2010 00:17:47 +0200	[thread overview]
Message-ID: <20100711221747.GC28881@iris.usta.de> (raw)
In-Reply-To: <20100710111118.1930f01c.list-jcr@designtools.org>

Hi Jonathan,

J.C. Roberts wrote on Sat, Jul 10, 2010 at 11:11:18AM -0700:

> UTF-8 support is very important and many consider it a "requirement"
> these days.

Not for manual pages, i just don't see the point.

That said, i wouldn't oppose a -Tlatin1 or -Tutf8 output mode merely
for groff compatibility, as long as it is not too intrusive (which
probably it need not be, implementation will be quite local in one
corner of the terminal output frontend).  But i have no plans to
implement, use or maintain it, and i would test it only in so far
as it must not break anything else.

Also, i would continue urging people to not use it, as manual pages
relying on it would sacrifice portability for no good reason.

And, of course, i will strongly oppose 8-bit-character input.
I'm not willing to deal with multi-byte or wide character support
functions anywhere in mandoc's code.

> Personally, I think the \(:o syntax is nonsense.

Agreed, the reason being that there is no reliable way to render it.
Again, i consider it provided for backward compatibility.

> Since we now have UTF, it seems better to error out on the archaic \(:o
> syntax to prompt change, rather than support it to prolong a bad idea
> and yet another syntax everyone needs to learn.

No, it is used in too many places, and it would not be nice to deny
rendering just because some piece of mdoc(7) or man(7) source code
contains syntax we don't like.  We are not defining new standards
right now, we are re-implementing an existing language.

> There's probably an existing IF-THEN-ELSE which could be leveraged
> without undue overhead, but you get the main idea... --make the author
> provide both the THEN and the ELSE.

You mean, like in
http://www.openbsd.org/cgi-bin/cvsweb/src/share/man/man4/sppp.4#rev1.20

I don't consider that viable, and jmc and myself agree to remove
it from the tree when we find it (unless it comes from upstream).

I doubt that people will regularly provide alternatives.
Typing in special characters at all is already tedious,
providing alternatives will not get done.

And even if it is done, the result is incredibly ugly
and hardly maintainable.

> In many situations, even when a terminal is capable of displaying the
> UTF-8, it could still be beneficial to also display the ascii, possibly
> in parenthesis.

In my opinion, you are vastly overestimating the importance of special
characters in manual pages (beware, i'm not talking about typesetting
of mathematical papers here!) and you are vastly underestimating the
importance of portability and simplicity.

Yours,
  Ingo
--
 To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv

  reply	other threads:[~2010-07-11 22:17 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-07  3:13 Anthony J. Bentley
2010-07-07  9:33 ` Kristaps Dzonsons
2010-07-07 14:39   ` Anthony J. Bentley
2010-07-07 20:13     ` Ingo Schwarze
2010-07-07 18:58 ` Ingo Schwarze
2010-07-07 19:18   ` Joerg Sonnenberger
2010-07-07 21:12     ` Ingo Schwarze
2010-07-07 21:17       ` Joerg Sonnenberger
2010-07-09 21:05         ` Ulrich Spörlein
2010-07-10 18:11           ` J.C. Roberts
2010-07-11 22:17             ` Ingo Schwarze [this message]
2010-07-11 22:38           ` Kristaps Dzonsons
2010-07-13 19:23             ` Ulrich Spörlein
2010-07-13 23:25               ` 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=20100711221747.GC28881@iris.usta.de \
    --to=schwarze@usta.de \
    --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).