|
Message-ID: <20130701211249.GA4877@newbook>
Date: Mon, 1 Jul 2013 14:12:49 -0700
From: Isaac <idunham@...abit.com>
To: musl@...ts.openwall.com
Subject: Re: Request for volunteers
On Mon, Jul 01, 2013 at 10:42:45AM -0700, Isaac wrote:
>
> I think it should be simple to convert the text to a man page once it's
> in plain text format, and plan to write a shell script to do that for
> my own use shortly; I could provide the script to others, though I'm
> not sure about distributing the output myself.
I have a shell script using mksh that does part of the work.
Currently, the useage would be like this:
for m in *.html
do
lynx -dump $m | posix2nroff $m > `basename $m .html`.3posix
done
(I intend to change it to call lynx and add the extension, plus
symlink where the HTML pages do so.)
IF YOU CHANGE THE SHELL, YOU WILL NEED TO DEBUG IT!
Quotes and escaping can vary subtly in ways that break the output (I know
because I tested...); additionally, bash resulted in several places where
the output of printf was something like "N^HNA^HAM^HME^HE" (not sure why).
HTH,
Isaac Dunham
View attachment "posix2nroff" of type "text/plain" (1256 bytes)
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.