groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] utf8 to groff_char filter


From: James K. Lowden
Subject: Re: [Groff] utf8 to groff_char filter
Date: Thu, 11 Oct 2012 00:52:05 -0400

On Tue, 09 Oct 2012 15:36:34 +0100
Ralph Corderoy <address@hidden> wrote:

> >     \[u00E2]\[u0080]\[u0093]
> >
> > I'm not sure what that's supposed to be, but what I'd like to see is
> >
> >     \[em]
> 
> It's UTF-8 for U+2013, EN DASH, not M for Mike.
> 
>     $ printf '\xe2\x80\x93' | iconv -f utf-8 -t ucs-2be | hd
>     00000000  20 13                                             | .|
>     00000002

Much appreciated, Ralph.  What I'm hoping to find, for some value of
$FOO, is

        $ printf '\xe2\x80\x93' | $FOO -f utf-8  
        \[en]

I think it could be done, with perfect fidelity.  I wonder if it has
been, or if anyone else would want such a thing.  

--jkl




reply via email to

[Prev in Thread] Current Thread [Next in Thread]