From: fairfield@sldb6.slac.stanford.edu
Subject: Re: VMS Help libraries
Date: 1995/04/23 [thread overview]
Message-ID: <1995Apr22.193733.1@sldb6.slac.stanford.edu> (raw)
In-Reply-To: 3nbk79$bka@bingnet1.cc.binghamton.edu
In article <3nbk79$bka@bingnet1.cc.binghamton.edu>,
consp01@bingsuns.cc.binghamton.edu (Lars Kellogg-Stedman) writes:
> I want to take a VMS help library and decompile it back into its
> text-only representation.
>
> How do I do this? The eventual goal is to convert a small help file into
> a series of web pages.
There's no "decompile" required. Simply use the LIBRARY command
with the /EXTRACT qualifer to extract individual "modules" into
plain ASCII text files. Start with a /LIST of the library, as in,
$ LIB/LIST SYS$HELP:HELPLIB.HLB
or
$ LIB/HELP/LIS SYS$HELP:HELPLIB
to see the names of the modules in the library. Next, extract the
one you want:
$ LIB/HELP/EXTR=COPY/OUT=COPY.HLP HELPLIB
This example produces the text file COPY.HLP.
Formatting the result for useful WEB pages may be another
matter. Note only that the implicit hierarchy of the help topics,
subtopics, sub-subtopics, etc., is signified by a character 1, 2, 3,
etc., in column 1 of the text file.
Having said all that (prompted mainly by the word "decomplie"),
you may find it easier to use the HELP command's /OUTPUT qualifer.
For example, to get the full text of COPY and its subtopics, etc.,
you could do the following (note that the ellipses are required, as
shown, to get the main topic and its subtopics):
$ HELP/OUT=COPY.TXT COPY...
In this case, each topic and subtopic is formatted with the topic
header, subtopic header, sub-subtopic header, etc., in the output
file. That may or may not be easier to deal with than the .HLP file
itself.
Finally, in case the point has otherwise been missed, you can
specify your user-written help library to the HELP command by using
the /LIBRARY qualifier (not to be confused with the /LIBLIST
qualifier):
$ HELP/LIBR=MY_DIR:MY_HELP/OUT=NEATO.TXT NEATO...
-Ken
--
Kenneth H. Fairfield | Internet: Fairfield@Slac.Stanford.Edu
SLAC, P.O.Box 4349, MS 46 | DECnet: 45537::FAIRFIELD (45537=SLACVX)
Stanford, CA 94309 | Voice: 415-926-2924 FAX: 415-926-3515
-------------------------------------------------------------------------
These opinions are mine, not SLAC's, Stanford's, nor the DOE's...
next prev parent reply other threads:[~1995-04-23 4:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-04-22 4:00 VMS Help libraries Lars Kellogg-Stedman
1995-04-23 4:00 ` fairfield [this message]
1995-04-24 4:00 ` mathog
1995-04-25 4:00 ` Brian Tillman
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox