home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-02-11 | 73.2 KB | 1,741 lines |
- Copyright (c) 1988 - 1990 by David Seidman
- February 11, 1990
-
- WPTOOLS VERSION 5
-
- INTRODUCTION
-
-
- WPTOOLS Version 5 is a collection of utility programs for use with
- WordPerfect Versions 5.0 and 5.1 (WP50, WP51, or, collectively, WP5).
- Some may also be used with PlanPerfect 5.0 (PP5) and may work with
- files from other recent or forthcoming WordPerfect Corp. products.
- The shareware distribution consists of a what's new file, this
- documentation, and fourteen programs: DISKFONT, FIXPRE, FONTFILE,
- FONTLIST, IS5XDOC, LISTMACS, MAKETABS, MERGESUM, PRINTIT, PRSFONTS,
- STYLIST, WHATPTRS, WP5LOOK, and WPSNOOP. Users who pay the license
- fee also receive Supplemental Tools, now six additional programs:
- COMMENTS, ENDFOOT, MASTER, STYLEUSE, TARGETS, and WPGSIZE. WPDOCS.NB,
- a WordPerfect Library Notebook file written by Barry Zimmerman, and
- WPDOCS2.NB are distributed with WPTOOLS for use with MERGESUM.
-
-
- Briefly, this is what the WPTOOLS and Supplemental Tools programs do:
-
-
- COMMENTS Reads a WP5 document file, extracts the comments, and writes
- them to standard output.
-
- DISKFONT Searches a directory for specified soft font files and,
- optionally, lists descriptive information about the fonts it
- finds.
-
- ENDFOOT Converts all footnotes (endnotes) to endnotes (footnotes),
- changing automatic references appropriately.
-
- FIXPRE Removes deleted (and optionally other) data packets from the
- prefix of WP5 document files and removes deleted data
- packets from WP5 setup files (WP{WP}.SET). For document
- files, this will often facilitate changing the printer
- driver used with the file and shrink the file. Setup files
- grow as you modify your setup; FIXPRE shrinks them again.
- And FIXPRE sometimes helps when WP5 just seems to be acting
- strangely. Optionally deletes styles, initial codes. Also
- works with PP5 set files, and perhaps with set files from
- other forthcoming WPCorp programs.
-
- FONTFILE Lists the file names of the soft font files specified in a
- PRS file.
-
- FONTLIST Lists the names of the fonts used in a WP5 document and the
- PRS file the document calls for.
-
- IS5XDOC Identifies WP5 document files. Useful in batch files.
-
- LISTMACS Lists the names and descriptions of macros in WPM and WPK
- files (and the keys for WPK macros), optionally sorted.
- Also works with PP5 macro and keyboard files.
-
- MAKETABS Converts an ASCII text file to a WP50 document, replacing
- spaces by tabs. Used with columnar material.
-
- MASTER Reads a WP5 master document and lists the unexpanded
- subdocuments it calls for.
-
- MERGESUM Creates (or adds to) a WP50 secondary merge file, each
- record containing the information from a WP5 document
- summary (or, optionally, the first 400 or so characters of a
- document if no summary was created), along with information
- from the DOS file directory. In effect, creates a database
- of document summaries that can be processed using the WP5
- Merge and Sort functions, or WordPerfect's Notebook program.
-
- PRINTIT Paginates and formats an ASCII text file for printing.
-
- PRSFONTS Lists and optionally numbers the names of the fonts
- available in a WP5 PRS file.
-
- STYLIST Lists names and descriptions of styles, optionally sorted.
-
- STYLEUSE Lists the styles used in the text of a document. Lists the
- styles found in the prefix but not used in the document.
- Optionally deletes unused (or all) styles from the prefix.
- Optionally deletes style on and off codes from the text of a
- document, leaving the codes added by the style.
-
- TARGETS Lists the automatic reference targets and references in a
- WP5 document file, indicating unreferenced targets and
- references to nonexistent targets.
-
- WHATPTRS Lists the printers described in ALL files, optionally sorted
- by printer name.
-
- WP5LOOK Displays one or more WP5 document files specified on the
- command line (or piped to the program). Particularly
- because files can be specified with wildcards, WP5LOOK may
- be more convenient than WP5 itself for browsing through WP5
- documents.
-
- WPGSIZE Extracts and lists the dimensions of the image coordinate
- space for WPG files. Useful in getting the aspect ratio
- right.
-
- WPSNOOP Determines, in greater or lesser detail, the file type of
- many, but not all, files associated with recent WordPerfect
- Corporation products. For WP5 document files, lists the
- document summary and the PRS file. For macro files, lists
- the description. Optionally reveals the structure of WP5
- document file prefixes and of set file prefixes.
-
-
- More detail is given below. In most cases, running the program from
- the DOS command line without any parameters specified will produce a
- brief explanation of program usage.
-
- WPCorp has no connection with these programs, except that it provided
- the technical information necessary to write some of them.
-
-
- .......................................................
- Note on Other WPCorp Programs
-
- PP5 uses the same ALL and PRS files as WP50. PP5's setup, macro,
- and keyboard files share a file structure with WP5. The WPTOOLS
- programs that work with such files work with both WP5 and PP5 files.
- WPCorp probably will use similar file structures for other programs,
- so WPTOOLS should work with them too.
-
- This documentation does not always indicate whether a particular
- program works with files from WPCorp programs other than WP5. When in
- doubt, give it a try. But WPTOOLS does not work with early WPCorp
- program files, such as WP4.x, DataPerfect in all versions released so
- far, or the programs in the versions of Library released so far.
-
- .......................................................
-
-
- Notes on Input and Output
-
- You normally supply these programs with one or more input file names
- ("Infile") and sometimes an output file name ("Ofile") on the DOS
- command line. The file name may always include drive and path
- specifications. The individual program descriptions mention where
- wildcards (* and ?) can be used. Several programs supply default
- extensions if you give a filename without an extension. To avoid the
- default extension (for files which really have no extension), end the
- filename with a period.
-
- Many of these programs are intended to read WP5 files, and except in
- the case of IS5XDOC, it does not make any difference which version of
- WP5 produced the files.
-
- Many of these programs by default write their output to "standard
- output," but output will go to a WP50 file instead if you specify an
- output file (usually with a -o switch before the name of the file). A
- WP50 file can, of course, be read in WP51.
-
- By default, standard output means the screen -- the output goes to the
- screen in a continuous flow. This may not be what you want, either
- because more than one screen's worth of output will be generated or
- because you want to keep or otherwise use the output. Instead of
- letting standard output go directly to the screen, you can pipe it to
- another program, or redirect it to either the printer or a file. For
- example, screen display is more useful if you pipe output to the DOS
- filter MORE:
-
-
- WPSNOOP *.* |MORE
-
-
- or, better, to Vernon Buerg's LIST:
-
-
- WPSNOOP *.* |LIST /s
-
-
- You might also pipe to PRINTIT and redirect the output from PRINTIT to
- the printer directly or to a file for later printing:
-
-
- WPSNOOP *.* |PRINTIT >prn
-
- or
-
- WPSNOOP *.*|PRINTIT >outfile
-
-
- Or you can have the program output go directly to an ASCII text file:
-
- WPSNOOP *.*>outfile
-
-
- .......................................................
-
- Notes on WP50 and WP51 Files
-
- Several WPTOOLS programs identify, in their output, input document
- files as either WP50 or WP51, based on version information in the file
- prefix. This information may be less useful than you think. In the
- initial release of WP51, the version information usually identifies
- the version originally used to create the file. Thus if you create a
- file in WP50, save it, read it in to WP51, add codes specific to WP51,
- and save the file again, it will still be identified as a WP50 file,
- even though it contains codes unknown to WP50. We believe this has
- been changed in subsequent releases of 5.1.
-
- .......................................................
-
- I. COMMENTS
-
-
- COMMENTS extracts the comments (if any) in a WP5 document file and
- writes them to standard output. This allows you to read all the
- comments in a document without retrieving the document into WP5 and
- searching for the comments individually. COMMENTS writes the comments
- to standard output, so you can read them on the screen, send them to
- the printer, or capture them in an ASCII text file.
-
-
- Usage:COMMENTS Infile
-
- Infile is a WP5 document file.
-
- Output is written to standard output.
-
- Examples
-
- COMMENTS Myfile
-
- The comments in Myfile are written to the screen.
-
- COMMENTS Myfile |PRINTIT >prn
-
- Comments in Myfile are printed.
-
- COMMENTS Myfile >Comments.out
-
- Comments in Myfile are written to the ASCII text file
- Comments.out on the default drive.
-
-
- II. DISKFONT
-
-
- DISKFONT has two uses:
-
- 1. To provide information about soft fonts by reading the soft
- font disk files.
-
- 2. To examine a list of fonts to determine whether their files
- are on the disk.
-
- DISKFONT reads a list of soft font file names and searches for the
- files in a specified disk directory. By default, it lists information
- about the fonts in the soft font files it finds (if the soft font is
- compatible with the HP LaserJet Series II or the HP DeskJet and
- includes the standard information internally). Optionally, it merely
- reports the names of the font files it fails to find.
-
- FONTFILE (another WPTOOLS program) creates a list of soft font file
- names referenced in a PRS file. This list may be used as input to
- DISKFONT, which can process the list to find whether the files are
- available or to provide more information about them. Note that the
- ALL file from which a PRS file was made may reference more soft fonts
- than the PRS file references. Soft fonts are referenced in a PRS file
- only if you chose to include them in the PRS file, using * or + (or
- both). Therefore, the list generated by FONTFILE may be smaller than
- the list WPerf is capable of displaying.
-
-
- Usage:DISKFONT [-Option] [-Option]
-
- Input is a list of filenames from standard input. The
- filenames may include standard DOS wildcards. FONTFILE
- output is acceptable input to DISKFONT, and may be piped to
- it. If the input is a file containing a list of soft font
- file names, use input redirection (<infile). Input may also
- come from the keyboard; in that case, use ^Z followed by
- Enter to terminate keyboard input. Note that it is an error
- to put an input file on the command line without < before
- it.
-
- Output goes to standard output by default and may be piped
- or redirected. Output may optionally be in WP50 format.
-
-
- Options:
-
- -D directory (Directory where fonts are)
- If no directory is supplied, default directory is
- assumed. If the input filenames include directory
- information, that overrides the command line.
-
- -O OFile For WP50 output.
- Formatting of the WP50 file assumes, but does not set,
- left and right margins of 1" and a 10-pitch monospaced
- font; the tabs set by DISKFONT may seem strange if
- those are not your defaults.
-
- -F Only find fonts--no info given
-
- -? Help message
-
-
-
- Examples:
-
- DISKFONT
-
- Keyboard input, output to standard output (screen).
-
- DISKFONT <myfonts.txt
-
- Input, myfonts.txt, is an ASCII text file containing a list
- of font file names. Output to screen.
-
-
- FONTFILE My.PRS|DISKFONT -Dc:\wp\fonts|PRINTIT >prn
-
-
- Input is list of font files referenced by My.PRS. The list
- is created by FONTFILE and piped to DISKFONT. The font
- files are in subdirectory \wp\fonts on drive C:. DISKFONT
- output is piped to PRINTIT. PRINTIT output is redirected to
- the printer.
-
- Here is an example of DISKFONT output:
-
-
- Report for LJ font file AC0060RH.HPF:
- FontName Swiss
- Typeface 4 (Helvetica)
- Orientation Portrait
- Height 6.0 points
- Style Upright
- Font Weight 2
- Font type 8-bit
- Symbol Set HP Roman-8
- Spacing Proportional. Space width is 1.68 points
-
-
-