From: Kristaps Dzonsons <kristaps@bsd.lv>
To: discuss@mdocml.bsd.lv
Subject: Re: Full mandoc locale support committed.
Date: Wed, 18 May 2011 11:53:56 +0200 [thread overview]
Message-ID: <4DD39734.70004@bsd.lv> (raw)
In-Reply-To: <20110518062137.GD1321@procyon.xvoid.org>
>> With this last commit, initial [full] locale support has been fitted
>> into mandoc! Attached is eye-candy: a manual full of random Unicode
>> input (\[uNNNN]) first with -Tascii, then with -Tlocale.
>
> Unicode escapes work for me, but does that mean that existing localized
> manpages can't be used? Tried several ja and ru from debian 6, all of
> them make mandoc die with "FATAL: line scope broken, syntax violated"
> (-Tlint talks a lot about "ERROR: skipping bad character: ignoring
> byte").
Yuri,
Groff doesn't actually accept multi-byte input: it translates with
preconv from the localised form to the Unicode escapes. This is hidden
away with the `-k' groff option. See:
http://manpages.ubuntu.com/manpages/lucid/man1/groff.1.html
http://manpages.ubuntu.com/manpages/lucid/man1/preconv.1.html
(Why doesn't groff have its own manuals online instead of just the
texinfo? I bet it's cause grohtml doesn't look so good... ;))
We'll worry about doing preconv-style translation later. For this
release, the push is for the Unicode support itself.
>> The check-ins:
>>
>> (1) http://mdocml.bsd.lv/archives/source/0920.html
>
> A small typo here in Makefile's comment - USE_CHAR.
Fixed---thanks.
> Checked on Solaris 11 and Illumos - both do not export the symbol,
> though commenting out #undef USE_WCHAR in term_ascii.c makes -Tlocale
> work.
Great news! (The Internet agrees, as there are bug reports regarding
Solaris and 10646.) I'm still trying to figure out a good way to let
the lack of this symbol be ignored when it's supported anyway (as in
Solaris' case). For the release itself, I'll probably let USE_WCHAR be
authoritative and set or unset by downstream.
Thanks again,
Kristaps
--
To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv
next prev parent reply other threads:[~2011-05-18 9:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-17 23:07 Kristaps Dzonsons
2011-05-18 6:21 ` Yuri Pankov
2011-05-18 9:53 ` Kristaps Dzonsons [this message]
2011-05-19 20:28 ` Ulrich Spörlein
2011-05-19 22:49 ` Kristaps Dzonsons
2011-05-20 7:26 ` Ulrich Spörlein
2011-05-20 7:59 ` Yuri Pankov
2011-05-20 15:52 ` 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=4DD39734.70004@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).