Re: Man and UTF-8.
- To: email@example.com
- Subject: Re: Man and UTF-8.
- From: Nicolas Alvarez <firstname.lastname@example.org>
- Date: Sat, 09 Jan 2010 21:16:48 -0300
- Message-id: <email@example.com>
- References: <20091117042649.GB24330@kunpuu.plessy.org> <20091117073129.GA18285@ime.usp.br> <20091117135352.GB6832@kunpuu.plessy.org> <20091117142417.GA7147@jwilk.net> <firstname.lastname@example.org> <20091117183426.GA4323@jwilk.net>
Jakub Wilk wrote:
> * Nicolas Alvarez <email@example.com>, 2009-11-17, 13:45:
>>>>In the manpage I wrote, I wanted to use English guillemets (‘’). This
>>>>lead to errors and I gave up, replacing them by `'. Guess what? Groff
>>>>understood what I wanted and put nice Unicode guillemets in the ouptut!
>>>>I am quite amazed, even if it looks like a strange hack to me.
>>> It's not a hack, it's an old, documented behaviour.
>>And sometimes annoying. I have seen command examples in manpages that used
>>fancy Unicode quotes, and didn't work when copied and pasted into a shell.
> Blame the one who wrote a buggy manpage, not groff. Here's a quick guide
> to groff's apostrophe-like characters:
What about double quotes?
quilt's manpage renders like this in the man viewer: ``pushed on the stack''
I looked at the source and the .1 file has exactly those characters too. So
what should it have to get them converted into nice-looking Unicode quotes?
(I read mailing lists through Gmane. Please don't Cc me on replies; it makes
me get one message on my newsreader and another on email.)