home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
104.lha
/
wp-ps.doc
< prev
next >
Wrap
Text File
|
1980-07-10
|
4KB
|
89 lines
WP-PS version 2
Enhancements added 12/3/87
WP-PS is copyright -,1987 by John Steiner
You may distribute the program freely, as long as any doc files
are also included. If you use this program regularly, any
contribution you may make would be appreciated.
Improvements to this version include program requesters that warn
of errors, and provide a more Amiga-tized interface. In
addition, several additional Word Perfect commands are trapped.
Page centering, margin set commands, and other special Word
Perfect codes are trapped, so that fewer changes have to be made
to Word Perfect files, once they are transferred into PageSetter.
WP-PS is a file conversion program that enables Word Perfect
users to transfer files more easily into PageSetter textfile
format. Since PageSetter does not read W-P files, they must be
saved in ASCII format, which loses all special text markings, and
puts a carriage return at the end of each line.
WP-PS reads a standard W-P file, converts bold, italic and
underline text to the proper PageSetter textfile code (\b, \i,
\u), and converts W-P end of line characters to a space. End of
paragraph markers are preserved for inclusion into the PageSetter
textfile.
To use, first copy all files to be converted into RAM:. WP-PS
only works with files in ram: to make the conversion process as
fast as possible. Once files are in ram:, execute WP-PS from the
workbench with its icon, or from the CLI by typing WP-PS. A
program requester will let you know your files must be in RAM:,
and let you exit, if you forgot to copy the files to ram:. If
you elect to continue, a RAM directory will be displayed. Type
the filename of the file to be converted at the prompt. The
screen will clear and processing will begin. The numbers on the
screen represent each character being processed. If you know the
file size, you will have an indication of how long processing
will take by watching the numbers.
If the file is not a Word Perfect document, you will be warned
before processing starts. Since I am not sure if the routine
that checks for document type is valid for all possible Word
Perfect files, the program will let you convert the file anyway,
if you wish. If you experience the program telling you a valid
W-P file is not valid, let me know.
Once the program has completed processing, the RAM: directory
will reappear. Converted files retain the same filename and a
.ps suffix. (e.g. A WP file called filename will convert to
filename.ps). To continue converting files, just enter the new
filename. Entering a non-existant filename will bring up an
error requester, and let you reenter.
To use the converted PageSetter files, transfer them to a
PageSetter data disk, and they may then be loaded into the
PageSetter text editor.
PROGRAM LIMITATIONS
In addition to working only from RAM:, there are two other
limitations.
1. Be careful about using any other than the W-P character set,
WP-PS has not been tested with any but the default character set.
2. Some extended characters have had to be modified, due to the
way that WP handles them. For example, Character value 225 is
ignored by WP- PS, as Word Perfect uses it to surround all Amiga
extended characters. The copyright symbol, - (Alt-E or character
value 169) is the value WP uses to store a soft hyphen, therefore
Alt-E characters are replaced with a hyphen. If your document
uses these characters, you will have to mark them differently and
convert them from within PageSetter. Extended characters not
specifically trapped in WP-PS are passed to PageSetter without
modification.
WP-PS was written in Amiga BASIC and compiled with AC-BASIC. I
would like to eventually incorporate a standard mouse requester
to select files to convert from any directory. Anyone who has an
example file requester written in Amiga BASIC is requested to
share the code so I might improve the user interface of WP-PS.
Publisher
John Steiner
Box 683
West Fargo, ND 58078