From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,31d66583c4dcae69 X-Google-Attributes: gid1164f8,public From: fairfield@sldb6.slac.stanford.edu Subject: Re: VMS Help libraries Date: 1995/04/23 Message-ID: <1995Apr22.193733.1@sldb6.slac.stanford.edu>#1/1 X-Deja-AN: 101360629 sender: news@unixhub.SLAC.Stanford.EDU references: <3nbk79$bka@bingnet1.cc.binghamton.edu> organization: Stanford Linear Accelerator Center newsgroups: comp.sys.dec 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...