delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/01/19/15:59:57

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" <eliz AT elta DOT co DOT il>
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: <c9d8c82b.0401190252.8cc9339@posting.google.com>
(RadSurfer AT yahoo DOT com)
Subject: Re: Linux Man-Pages
References: <c9d8c82b DOT 0401161717 DOT b119b50 AT posting DOT google DOT com> <4008B4FF DOT 27D15456 AT yahoo DOT com> <c9d8c82b DOT 0401170530 DOT 2d50008e AT posting DOT google DOT com> <buem5d$sjn$2 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <c9d8c82b DOT 0401190252 DOT 8cc9339 AT posting DOT google 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

> 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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019