home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
-
-
-
-
-
-
- WPMPRT
- WordPerfect 5.1 Macro Printing Utility
- User Documentation
- version 1.1
-
- (c) Copyright 1991, Les Dunn
- Micro Management Systems
- All Rights Reserved
-
-
-
-
-
-
-
-
-
- CONTENTS
-
-
- CONTENTS . . . . . . . . . . . . . . . . . . . . . . . . . . . i
-
- INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . 1
-
- TRADEMARKS . . . . . . . . . . . . . . . . . . . . . . . . . . 1
-
- FILES INCLUDED IN THE 'WPMPRT11.ZIP' PACKAGE . . . . . . . . . 1
-
- ENHANCEMENTS/BUG REPORTS . . . . . . . . . . . . . . . . . . . 2
-
- THE WPMPRT.EXE COMMAND LINE. . . . . . . . . . . . . . . . . . 2
-
- ARGUMENTS. . . . . . . . . . . . . . . . . . . . . . . . . . . 2
-
- OUTPUT FILE SPECIFICATION. . . . . . . . . . . . . . . . . . . 2
-
- INPUT FILE SPECIFICATION . . . . . . . . . . . . . . . . . . . 3
-
- SYNTAX EXAMPLES. . . . . . . . . . . . . . . . . . . . . . . . 3
-
- STATUS MESSAGES. . . . . . . . . . . . . . . . . . . . . . . . 4
-
- ERROR/WARNING MESSAGES . . . . . . . . . . . . . . . . . . . . 4
-
- CONTENTS OF OUTPUT FILES . . . . . . . . . . . . . . . . . . . 5
-
- WORDPERFECT COMPOSED CHARACTERS IN MACROS. . . . . . . . . . . 5
-
- RETRIEVING THE OUTPUT FILE INTO WORDPERFECT. . . . . . . . . . 6
-
- CONTACTING THE AUTHOR. . . . . . . . . . . . . . . . . . . . . 8
- WPMPRT.EXE
- WordPerfect 5.1 Macro Printing program
- (c) Copyright 1991, Les Dunn
- Micro Management Systems
- All Rights Reserved
-
- INTRODUCTION
-
- WPMPRT is a utility program written to translate the contents of
- WordPerfect 5.1 macro files (*.wpm) to their ASCII representations
- so that they may be printed, displayed on the screen, incorporated
- into word processing files or treated in a manner that any ASCII
- text file may be used.
-
- This program was written as shareware, and as such, registration is
- required in order to ensure that you receive support, information
- pertaining to future updates and (heaven forbid!) bug reports and
- corrections. The enclosed README.DOC file contains information
- regarding copyrights and registration information. PLEASE READ THIS
- "README.DOC" FILE FIRST.
-
-
- TRADEMARKS
-
- "WordPerfect" is a registered trademark of WordPerfect Corporation,
- 1555 N. Technology Way, Orem, Utah 84057 U.S.A. The author of the
- WPMPRT utility program has no affiliation with the WordPerfect
- Corporation.
-
-
- FILES INCLUDED IN THE 'WPMPRT11.ZIP' PACKAGE
-
- The following files are included in the WPMPRT11.ZIP package:
-
- HISTORY.DOC - version history
- README.DOC - copyright and registration information
- README.WP - the WordPerfect version of README.DOC
- WPMPRT.EXE - the WPMPRT program
- WPMPRT.DOC - documentation for the WPMPRT program
- WPMPRT.WP - the WordPerfect version of WPMPRT.DOC
- WPMPRT.WPM - WordPerfect macro to re-compose characters
- WPMPRT.TXT - sample text file produced from WPMPRT-ing the
- WPMPRT.WPM WordPerfect macro file.
- T1.WPM - sample WordPerfect macro to create an ASCII
- character table
- T1.TXT - sample text file produced from WPMPRT-ing the
- T1.WPM WordPerfect macro file
-
-
- ENHANCEMENTS/BUG REPORTS
-
- If you encounter problems or errors, or have any suggestions for
- enhancements, please forward pertinent details to the author. Every
- attempt will be made to rectify and/or implement all of these
- submissions in a timely manner.
-
-
- THE WPMPRT.EXE COMMAND LINE
-
- C:> WPMPRT [-q] [-sNN] [-mNN] [-o filename] filelist
-
- ARGUMENTS
-
- The following options may be entered in either upper or lower
- case letters.
-
- -q Quiet mode. Suppresses printing of the
- activity report on the screen.
-
- -sNN Inter-listing spacing. Omit for page breaks.
- NN>0 to suppress page breaks and leave NN
- spaces between listings in a single output
- file.
-
- -mNN Left Margin spacing. NN is the number of
- spaces that are desired for a left margin. The
- default is 8.
-
- -o filename directs listings of all input files to the
- single specified output file.
-
- filelist a single input file name or list of input file
- names.
-
-
-
- OUTPUT FILE SPECIFICATION
-
- If an output file is not specified with the -o option, a separate
- output file will be created for each input file specified in the
- filelist. Each created output file will have a file extension of
- .TXT.
-
- If an output filename is provided, ALL input file listings will be
- printed to this one output file. By default, listings in this file
- are separated from each other by page breaks. You may suppress
- these page breaks by setting the -s option where NN will be the
- number of blank lines that will be left between listings within the
- output file.
- A fully qualified output file name may be provided if the output
- file is to be written to a directory other than the current default
- directory.
-
- If the output file is to be printed and stored in a binder,
- you may specify a margin setting. This margin setting is an integer
- number stating the number of spaces that are to be entered at the
- beginning of each output line as a margin. The default is 8 spaces.
-
- INPUT FILE SPECIFICATION
-
- You may specify a single input file name or a list of file names as
- the filelist argument. Each input file will be processed
- sequentially. You may use wildcard names to specify the list of
- input files. A fully qualified file name should be specified if the
- input file resides in a directory other than the current directory.
- You need not specify an extension on the input file name since the
- WPMPRT program will assume that all input files have an extension
- of .WPM. File extensions will be ignored for input files.
-
-
- SYNTAX EXAMPLES
-
- WPMPRT c:\wp51\altx.wpm
- will create an output ASCII text file named
- 'C:\WP51\ALTX.TXT' (default output file name) from the
- specified input file name 'C:\WP51\ALTX.WPM'.
-
- WPMPRT -ob:macro.asc c:\wp51\altr.wpm
- will create the specified output ASCII text file named
- 'MACRO.ASC' on the B: drive. The specified input file
- 'c:\WP51\ALTR.WPM' will be processed.
-
- WPMPRT -o c:\mac_asc\example.xxx c:\wp51\proof1
- will create an output ASCII text file named 'EXAMPLE.XXX'
- in the pre-created 'MAC_ASC' directory on the C: drive.
- The input file is the C:\WP51\PROOF1.WPM file.
-
- WPMPRT -omacros.txt c:\macros\*.wpm
- will create a single output ASCII text file named
- 'MACROS.TXT' in the current directory. All .WPM macros
- files in the 'C:\MACROS\' directory will be printed in
- this output file.
-
- WPMPRT c:\macros\*.*
- will print ALL WordPerfect macro files in the 'C:\MACROS'
- directory. Non-macro files will not be printed. Each file
- will be printed to a separate, corresponding output file.
- Each output file will default to the same file name as
- the input file with the extension of .TXT.
-
- WPMPRT -q -o a:\wp51\macros\output.asc *.wpm
- will print ALL WordPerfect macro files in the current
- directory to the specified output file on drive A:. All
- status messages will be suppressed.
-
- WPMPRT -s3 c:\macros\*.
- will print ALL WordPerfect macro files in the 'C:\MACROS'
- directory to multiple output files. Page breaks between
- listings will be replaced by 3 blank lines.
-
- WPMPRT -m 5
- will print ALL WordPerfect macro files in the current
- default directory to a multiple output file. The left
- margin will be set to 3 spaces (instead of the default of
- 8).
- STATUS MESSAGES
-
- As each WordPerfect macro file is translated and printed, a status
- message is printed on stdout (usually the screen) indicating the
- name of the input file and the name of the output file to which the
- translated output is written. The printing of these status messages
- may be suppressed by specifying the -q option (Quiet mode) on the
- command line.
-
-
- ERROR/WARNING MESSAGES
-
- The following error or warning messages may appear during the
- execution of the WPMPRT program. Distinct return codes are set for
- each error. Errors will terminate the execution of the WPMPRT
- program immediately. Warnings will allow the program to continue
- but the warning message will print along with Status Messages on
- the standard output device.
-
- Return Code Message
-
- 201 [Usage:] ...
- no arguments are provided in the call to the
- WPMPRT program. You must provide at least the
- input file name.
-
- 202 ERROR: Output file name not specified.
- the -o option was specified but no file name
- was provided.
-
- 203 ERROR: Can't open output file <filename.ext>.
- the program tried to open the output file.
- Check for sufficient disk space or a non-
- existent/invalid path name.
-
- 204 ERROR: Can't find or open input file <filename.ext>.
- the specified input file does not exist.
-
- 205 ERROR: Input file not specified.
- at least one input file name has not been
- provided as an argument to the program.
-
- 206 ERROR: Unknown code in macro file.
- the WPMPRT program detected an unknown code in
- the specified macro file. Ensure that the
- macro file is a valid WordPerfect macro file.
-
- 100 WARNING: Invalid option <-*>. Option ignored.
- an option other than o, s or q has been
- entered as an argument for the WPMPRT program.
-
- 100 WARNING: Invalid line spacing number specified.
- Using page breaks.
- the number entered for the -s option as an
- argument was invalid.
-
- 100 WARNING: No files found for <filename.ext>.
- usually seen if the file name specified uses
- the wildcard feature and no files were found
- when the wildcard was expanded.
-
- 100 WARNING: Unknown KEY MACRO code. Noted as {*KEY*}.
- during macro translation, a KEY macro command
- was detected but the exact command was not
- known.
-
- 100 WARNING: Unknown ALT MACRO code. Noted as {*ALT*}.
- during macro translation, an ALT macro command
- was detected but the exact command was not
- known.
-
- 100 WARNING: Unknown VAR MACRO code. Noted as {*VAR*}.
- during macro translation, a VAR macro command
- was detected but the exact command was not
- known.
-
-
- CONTENTS OF OUTPUT FILES
-
- Each output file contains the following information:
-
- FILE : path/filename.extension of the input file as it
- appears in the argument list.
-
- HEADING: the WordPerfect macro heading.
-
- a single blank line spacer
-
- the translated macro codes formatted with the same format as
- displayed in the macro editor.
-
- inter-listing blank lines (specified with the -s option) or a
- form-feed character (if no -s option specified). Inter-
- listing spacing is ignored if individual output files are
- created for each input file (ie. no -o option specified).
-
-
- WORDPERFECT COMPOSED CHARACTERS IN MACROS
-
- WordPerfect provides the ability to create a user-defined character
- set in which you assign the characters with the Printer Definition
- Program (see the Appendix - Printer Program in the WordPerfect
- documentation). Other character sets are also available (13 in
- total) from which you may select specific characters (see the
- Appendix - WordPerfect Characters in the WordPerfect
- documentation). These characters are selected using the 'Compose'
- command of WordPerfect (see the Compose command in the WordPerfect
- documentation).
-
- The Compose command specifies the character set number (0 to 12)
- and a character number from within that character set. WordPerfect
- indicates the composed character within a macro using the following
- representation:
-
- [char:charset,charnum]
-
- where:
- char - is a representation of the character selected.
- charset - is the character set number from which the
- character has been selected.
- charnum - is the character number of the character in the
- character set.
-
- In order to correctly document these composed characters, WPMPRT
- represents any composed character using this notation in the output
- file. The character represented is displayed as a blank in the
- output file. This is done since the video character set used by DOS
- may display differently than the one being used in WordPerfect
- which may be different than the one used by your printer. Using
- this convention, WPMPRT will produce an output file which displays
- the WordPerfect composition of special characters rather that the
- character itself. Another consideration is the use of characters
- which are displayable on the video screen but which may mean
- something totally different if found within a disk file. For
- example, ASCII character 26 (composed character [:6,21]) displays
- as a right-pointing arrow when the macro is edited within the
- WordPerfect macro editor. When stored in a file, however, ASCII
- character 26 represents the ctrl-Z character which is an EOF
- character in DOS. It is evident that this character should not be
- stored in the output file.
-
-
- RETRIEVING THE OUTPUT FILE INTO WORDPERFECT
-
- The created ASCII output files can be retrieved into WordPerfect in
- order to include the macro listing as part of a WordPerfect
- document. As a result, you will be able to use the printer
- definitions within WordPerfect to allow you to print the macro
- listing on your attached printer. This is especially valuable for
- output to either a postscript printer or to a printer which
- supports the character set(s) required to display any 'composed'
- characters which you may have used within you macro.
-
- For example, your macro may prompt the user with:
-
- Enter your name
-
- where 'name' is followed by the composed character [:6,21] which
- is displayed on your monitor in WordPerfect as the right-pointing
- arrow. When WPMPRT produces the output file, this character is
- represented as '{[ :6,21]}' (with a blank in place of the actual
- character). If your copy of WordPerfect has been set up to use an
- attached printer which will display this character, you may start
- WordPerfect and retrieve the output file into the current document.
- At this point, the character is still represented by '{[ :6,21]}'.
- In order to convert the character back and display it as a right-
- pointing arrow you should run the WPMPRT.WPM macro. This macro will
- convert all composed characters represented in this form back to
- the proper composed character. This macro allows you to employ and
- display user-defined characters (character set 12) that are used
- within your WordPerfect macro. Assuming that your printer will
- print such composed characters, you may then print the document
- (macro listing) on your printer and the correct characters will be
- displayed.CONTACTING THE AUTHOR
-
- The author may be contacted at the following address:
-
- Les Dunn
- Micro Management Systems
- 348 Scottsdale Drive
- Guelph, Ontario. N1G 2Z8
- CANADA
-
- phone: (519) 836-6605
-
- BITNET address: SOSDUNN@vm.uoguelph.ca
- (until April 30, 1991.)
-