groff
[Top][All Lists]
Advanced

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

Re: [groff] devutf8 on Windows


From: Ralph Corderoy
Subject: Re: [groff] devutf8 on Windows
Date: Mon, 25 Feb 2019 15:51:29 +0000

Hi Jeff,

> Would it then make sense to include a devcp1252, which—though it may
> make purists nauseous—would at least give reasonable, reliable output
> for a high percentage of documents?

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?

    $ printf '%s\n' '.pl 1' '\(oqquote\(cq minus: -\(mi /f/: /\(f/' |
    > groff -Tutf8 |
    > iconv -f utf8 -t ucs-2be |
    > hd
    00000000  20 18 00 71 00 75 00 6f  00 74 00 65 20 19 00 20  | ..q.u.o.t.e 
.. |
    00000010  00 6d 00 69 00 6e 00 75  00 73 00 3a 00 20 20 10  |.m.i.n.u.s.:.  
.|
    00000020  22 12 00 20 00 2f 00 66  00 2f 00 3a 00 20 00 2f  |".. ./.f./.:. 
./|
    00000030  20 44 00 0a                                       | D..|
    00000034
    $

-- 
Cheers, Ralph.



reply via email to

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