[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [groff] devutf8 on Windows
From: |
Jeff Conrad |
Subject: |
Re: [groff] devutf8 on Windows |
Date: |
Tue, 26 Feb 2019 02:31:19 +0000 |
On Monday, February 25, 2019 7:51 AM, Ralph Corderoy wrote:
Hi Ralph,
> > Would it then make sense to include a devcp1252
>
> I don't have any valid input to that, but to wonder if there's an
> recode(1) or iconv(1) available to you for translating to CP 1252 or
> transliterating to UCS-2BE with the idea that the latter especially
> works for all Windows versions?
The MKS version of iconv(1) doesn’t support UTF-8; the GnuWin version at
https://sourceforge.net/projects/gnuwin32/files/libiconv/1.9.2-1/ does.
I get
printf '%s\n' '.pl 1' '\(oqquote\(cq minus: -\(mi /f/: /\(f/' |
groff -Tutf8 |
iconv -f utf-8 -t ucs-2le | hd
0000000000 2018 0071 0075 006F 0074 0065 2019 0020
0000000010 006D 0069 006E 0075 0073 003A 0020 2010
0000000020 2212 0020 002F 0066 002F 003A 0020 002F
0000000030 2044 000D 000A
0000000036
The codes look right, but I can’t seem to find a way to set UCS-2 (code
page 1200) on my system, so the output to the console isn’t rendered
properly.
Anyway, this seems pretty complicated compared with just using a cp1252
device, even if it’s theoretically more universal. The best thing about
devcp1252 is that it’s already done ...
You’d think this sort of nonsense would have been fixed long ago. You
would be wrong ...
Thanks for the ideas.
Regards,
Jeff
- Re: [groff] devutf8 on Windows, (continued)
- Re: [groff] devutf8 on Windows, Eli Zaretskii, 2019/02/24
- Re: [groff] devutf8 on Windows, Jeff Conrad, 2019/02/25
- Re: [groff] devutf8 on Windows, Eli Zaretskii, 2019/02/25
- Re: [groff] devutf8 on Windows, Jeff Conrad, 2019/02/25
- Re: [groff] devutf8 on Windows, Eli Zaretskii, 2019/02/25
- Re: [groff] devutf8 on Windows, Jeff Conrad, 2019/02/25
- Re: [groff] devutf8 on Windows, Eli Zaretskii, 2019/02/25
- Re: [groff] devutf8 on Windows, Jeff Conrad, 2019/02/25
- Re: [groff] devutf8 on Windows, Ralph Corderoy, 2019/02/25
- Re: [groff] devutf8 on Windows,
Jeff Conrad <=
- Re: [groff] devutf8 on Windows, Eli Zaretskii, 2019/02/25
- Re: [groff] devutf8 on Windows, Jeff Conrad, 2019/02/25
- Re: [groff] devutf8 on Windows, Eli Zaretskii, 2019/02/26
- Re: [groff] devutf8 on Windows, Jeff Conrad, 2019/02/26
- Re: [groff] devutf8 on Windows, Eli Zaretskii, 2019/02/26
Re: [groff] devutf8 on Windows, Keith Marshall, 2019/02/24