discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: Kristaps Dzonsons <kristaps@bsd.lv>
To: hrs@ec.ss.titech.ac.jp, discuss@mdocml.bsd.lv
Subject: mandoc and UTF-8 support.
Date: Wed, 11 May 2011 16:42:59 -0400	[thread overview]
Message-ID: <4DCAF4D3.5000207@bsd.lv> (raw)

[-- Attachment #1: Type: text/plain, Size: 877 bytes --]

Hiroki (note CC'd to the mdocml mailing list),

This regards today's conversation about mdocml and Japanese characters 
at the FreeBSD summit.

Enclosed is a screenshot of a locally-modified mandoc producing 
on-terminal UTF-8 glyphs for kanji (I have NO IDEA what these characters 
mean, I just picked them from the Unicode reference).  I hacked this in 
as a demonstrandum that it's possible to have UTF-8 output without much 
effort.

I used the groff \U'xxxx' input escape sequence to specify Unicode 
input.  Unfortunately, this doesn't seem to be officially supported by 
groff.

   http://lists.gnu.org/archive/html/groff/2000-04/msg00036.html

My question is this: do you know of the most reliable to feed groff 
Unicode codepoints?  I'm not sure when a -Tutf8 will exist for mandoc, 
but the screenshot demonstrates that it's in principle possible.

Thanks,

Kristaps

[-- Attachment #2: screen.png --]
[-- Type: image/png, Size: 24546 bytes --]

             reply	other threads:[~2011-05-11 20:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-11 20:42 Kristaps Dzonsons [this message]
     [not found] ` <20110515.194157.759326979137963596.hrs@ec.ss.titech.ac.jp>
2011-05-15 15:31   ` 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=4DCAF4D3.5000207@bsd.lv \
    --to=kristaps@bsd.lv \
    --cc=discuss@mdocml.bsd.lv \
    --cc=hrs@ec.ss.titech.ac.jp \
    /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).