X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Mon, 19 Jan 2004 22:55:16 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp AT delorie DOT com Message-Id: <2914-Mon19Jan2004225515+0200-eliz@elta.co.il> X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: (RadSurfer AT yahoo DOT com) Subject: Re: Linux Man-Pages References: <4008B4FF DOT 27D15456 AT yahoo DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: RadSurfer AT yahoo DOT com (Radical NetSurfer) > Newsgroups: comp.os.msdos.djgpp > Date: 19 Jan 2004 02:52:34 -0800 > > No need for all that additional overhead What overhead? > My goal of creating a simple viewer of Linux Man-Pages has been > obtained however! Totally self-contained, and without any > fancy-smancy non-sense either! I don't know how the entire troff language with Groff extensions can be handled in a small self-contained utility: it is a very large language. I'm guessing that you only support a small subset of the features; try some of the unformatted man pages in the Groff distribution to feel what I'm talking about. Or just page through the Groff manual which describes all the features, and see how many of them are there. And then there are pages that need preprocessing with `soelim', `tbl', `pic', `refer', etc., and gobs of macro packages routinely relied upon by many man pages. It sounds like a gross waste of energy to reinvent all that stuff just to make a single program that doesn't rely on other programs. As for viewing already formatted pages, Less does it already and gives you lots of additional features of a decent pager, like emulation of fonts with colors; again, no need to reinvent the wheel. So about all the `man' clone from man13b.zip does is to search the MANPATH, figure out what command needs to be run to format a given page (by reading its first line), supports semi-fancy searches of man directory hierarchies, and gives some graceful treatment to man pages whose file names were truncated to the DOS 8+3 limits.