Re: [Groff] utf8 to groff_char filter

2012-10-11 Thread Werner LEMBERG
> Much appreciated, Ralph. What I'm hoping to find, for some value of > $FOO, is > > $ printf '\xe2\x80\x93' | $FOO -f utf-8 > \[en] The groff glyph list (GGL) is fixed; all entity names can be found in the source code files src/libs/libgroff/glyphuni.cpp src/libs/libgroff/un

Re: [Groff] utf8 to groff_char filter

2012-10-10 Thread James K. Lowden
On Tue, 09 Oct 2012 15:36:34 +0100 Ralph Corderoy 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-2b

Re: [Groff] utf8 to groff_char filter

2012-10-09 Thread Ralph Corderoy
Hi jkl, > \[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 20 13

[Groff] utf8 to groff_char filter

2012-10-08 Thread James K. Lowden
I'm doing something that's got to be rare if it's been done before: I'm dictating a groff document. The dictation program lets me say things like "mdash", and the output is UTF-8 (so says file(1)). I prefer to work in ASCII. preconv doesn't do what I think I want. It produces outputs that aren