Greetings PK, I seem to recall that linux man pages are kept initially in a gzip format and as invoked get converted to an unpacked format.
You might try removing the redirection of stderr to stdout in the man command, in fact you might even redirect it to /dev/null and see if that helps. I sorta like the bookshelf idea. I think you would have to do a tough job of parsing to try to pick out the man page references. It seems like I wrote some perl code a long time ago that stepped through the man directories and generated a html clickable index by section. Regrettably when I retired from the University all I got to keep was my email address, I lost a ton of interesting programs... --Jerry > Greetings Jerry. > > Last night I downloaded your wonderful little man page viewer. I have > modified the code a tad bit so it now primarily -- > - runs in a frameset so a search field is always visible at the top; > - added code to remember visited man pages -- > - visited man pages are added to a "bookshelf" on the left. > - duplicate entries to the bookshelf are removed. > > I also zipped up the files for the viewer and put a link on the top > frame for downloading the entire thing. > > The whole thing can be viewed at and downloaded from > http://209.83.8.226/perlman/ > > three things -- > 1. I am not sure what the protocol is... should I have sent all the > mods to you so you could have decided to put it up on your website (or > not). You didn't have any such instructions in your code, so I didn't. > If yes, just let me know and I will remove it from my website. Of > course, all your original attributions and acknowledgements are there. > > 2. I get a "gunzip: stdout: Broken pipe" message at the top of the > manpage displayed. I dunno what is causing this since this doesn't > occur on my iBook (the above website is no an old beat-up Red Hat box. > > 3. I would like to be able to convert links within manpages to actual > links that can be clicked. For example, if I view the perldsc manpage, > it says at the end, "SEE ALSO perlref(1), etc..." I would like to > click on perlref, perllol, etc. and view those manpages as well. Any > ideas? > > 4. I would also (probably this weekend) clean up the script, use strict > and all that nonsense. Would you mind if I (or you) put this up on > VersionTracker? You will be amazed at how many folks might find it > useful. > > Why? I loved the little tool ManThor... a cocoa manpage viewer. That > got Jagwired and doesn't work anymore. This little perlman viewer is a > perfect replacement, and I can use it on my Linux box at work as well. > > Many thanks, > > Puneet. > > On Monday, September 30, 2002, at 03:26 PM, Jerry LeVan wrote: > >> Hi, >> >> I dusted off my old man page viewer and it seems to work in Jaguar. > The >> program is cgi that displays man pages in a not unpleasing format. >> >> The cgi collects a set of parameters and feeds them to the man > command. >> I try to do a reasonable job of preventing evil input, please let me >> know if >> you find a hole :) >> >> The code is located at : http://homepage.mac.com/levanj/Perl >> >> Enjoy, >> >> Jerry >