home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
wp
/
filt7m.zip
/
FILT7M.DOC
< prev
next >
Wrap
Text File
|
1989-01-01
|
4KB
|
109 lines
FILT7M - Filters ASCII text or .ASM source code files - 12/01/88
by
Dennis Vallianos, based on:
FILT7A, A CP/M Filter Program
by Irv Hoff W6FFC
COPYRIGHT 1984, 1985, 1986
This program filters several types of unwanted characters from various
types of ASCII files, including those written by the Wordstar word pro-
cessor program. These include unwanted control characters, high-bits
set, soft-hyphens, soft-carriage returns, space-breaks, dot commands,
etc. It also removes all tabs, then retabs automatically - since this
involves not adding tabs in DB strings, the user needs to type a "T" for
any sort of ASCII text file, or any other character (including a RETURN)
for any source code .ASM file. It has the following choices:
Note: Although written specifically for handling WordStar ".dot"
commands, this program works equally well on document files
generated by most other word processors, as well.
1) Wordstar, normal files
2) Wordstar, w/dot commands
3) ASCII text files
select:
tabs (y/n):
1) Wordstar files, normal. Insures any file generated
by the Wordstar word processor can be used on any
other system. (Also selected by default with
RETURN.)
2) Wordstar files, retains all dot commands - some
host systems such as Compuserve use "dots"
(periods) in the first column for enabling blank
lines. This selection is primarily for those
users.
3) Normal ASCII text files.
NOTE: Although option 1 removes dot
commands, it changes ".pa" into
FF (form feed) characters.
A comprehensive summary of what the program found and what it did is
presented upon completion. A display is provided showing the progress
of the program. This is controlled by byte 103, which can easily be
changed by DDT. Change to 0F (every 16 lines), 1F (every 32 lines) or
3F (every 64 lines) to match the speed of your equipment. Then save 12
pages. The following is a general description of all the options:
It is a very small program (under 4k) and very fast, as it was written
completely in assembly level code.
NORMAL FEATURES:
---------------
1) counts all current tabs, then removes all tabs
2) removes any unneeded trailing spaces or tabs
2) places tabs every 8 columns wherever possible as long
as there is more than 1 space. (In Text mode,
asks if you want any tabs or not.)
3) optionally selects between ASCII text and .ASM source
code.
a) If .ASM is selected, does not attempt to put new
tabs in quoted DB strings and will replace a
single space with a tab until encountering a
semicolon delimiter.
WHY THE TWO CHOICES:
-------------------
The .ASM source code version will not compress spaces into tabs
between "quotes", in any DB strings. As the ASCII text version
will be processed by a normal display and/or printer routine it
does compress spaces, wherever possible, if tabs are requesed.
DISPLAYS UPON COMPLETION:
------------------------
total lines in the file
original spaces
original tabs
current spaces
current tabs
form feeds present
high-order bits zeroed
imbedded control chars. deleted
orphan LF's fixed
trailing spaces deleted
(For Wordstar:) dot commands deleted
soft CR's fixed
soft hyphens fixed
space breaks fixed
- notes by Irv Hoff W6FFC
-----------------------------------------------------------------------