discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: Kristaps Dzonsons <kristaps@bsd.lv>
To: discuss@mdocml.bsd.lv
Subject: Re: Raw UTF-8?
Date: Wed, 07 Jul 2010 11:33:09 +0200	[thread overview]
Message-ID: <4C3449D5.7020106@bsd.lv> (raw)
In-Reply-To: <4c33f0f0.0c87970a.3458.fffff43f@mx.google.com>

> When using special characters in manpages, I use plain UTF-8 instead of
> the escapes documented in mandoc_char(7), for a couple reasons. I'm just
> wondering, is this practice discouraged in any way? Is there a chance
> of this _not_ working in future versions of mandoc?

This is being discussed on tech@ right now.

Currently, once you use any non-ASCII encoding, the manual is no longer 
accessable to all terminals.  This is bad.  Furthermore, -Tps will throw 
away your input.  This is more bad.  In fact, only -Thtml will be ok 
with what you do, which is only by dint of it using the same output 
encoding.

groff promises Unicode support in "the next major version".  According 
to their mailing lists, they plan on using \[uNNN] for a Unicode escape 
and on-the-fly translate input UTF-8 into Unicode (effectively using 
"int" instead of "char" for characters).

     http://www.mail-archive.com/groff@gnu.org/msg01378.html

I think it's best for the time being to lift the input warnings and 
document that non-ASCII characters will Balkanise the manual.  I'm 
flapping between warning about it and not warning.

What, by the way, are the reasons you have against using the mandoc_char 
escapes?
--
 To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv

  reply	other threads:[~2010-07-07  9:33 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 [this message]
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
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=4C3449D5.7020106@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).