FILT7 - Sets tabs in ASCII text or .ASM souce code files 04/27/85 COPYRIGHT 1984, 1985 Irv Hoff W6FFC 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: 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: 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. 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 --------------------------------------------------------------------- To use: B>FILT HELLO.TXT (1) B>FILT HELLO.DOC NUNAME.DOC (2) B>FILT A:HELLO.TXT (3) B>FILT A:HELLO.ASM B:NUNAME.ASM (4) (1) Sets tabs in a file named HELLO.TXT. When finished the original file is named HELLO.BAK and the new file has the normal name. (2) The original file keeps the original name. The new file is now named NUNAME.DOC. (3) Just shows you can use two disks. The backup file will be on the same disk as the original and assumes the original name.. (4) The original file remains intact, the new file is on another drive and is named NUNAME.ASM. --------------------------------------------------------------------- 04/27/85 Accepts lines up to 255 characters long (vice 128). Insures last line has CR-LF to allow normal processing. - Irv Hoff 03/07/86 Added tab option if in Text mode. Fixed ERXIT so external file is not deleted unless a 'Y' is used. - Irv Hoff 11/20/84 Initial version, similar style to FORM5, NEAT5 and TABS5. - Irv Hoff ---------------------------------------------------------------------