Using Quill for ASCII Files

See all articles from Update April 1992
Author(s): Robert Hartung
Publication: Update Magazine
Pub Details: Update April 1992
Date: April 1992
Pages: 23-24

Bob Hartung, [address omitted]

One of the features of QUILL (WP) that somehow got lost in the translation of the v.12/84 QLUG is that ASCII files may be saved and loaded using the PRINT and IMPORT modes, respectively. By using XOVER or a similar program, files may be translated to DOS in this format, which a DOS line-editor and most wordprocessors will accept.

This facility may also be used to create DO files and source code for compilers, as well as a means of providing full-screen editing for those who do not have the TOOLKIT ED capability.

Since the process re-directs to storage media the output that ordinarily would go to the printer, the printer_dat which is used must first be amended for this purpose. An easy way of doing this is to CLONE QUILL and its data files to a new disk or mdv cartridge. The _HOB file may then be deleted to make more room if desired.

Enter LRUN flp1_INSTALL_BAS (or mdv1_) and key ENTER to accept the SER1 and flp1_ or mdv1_ prompts. At the menu move the cursor to OTHER and key F2 for EDIT. Rename OTHER to PROGRAM (key the right-cursor to go to entry mode), set LINEFEED to LF only, and toggle CONTINUOUS FORMS to YES. When done, key F5 to install this driver. Key ESC or RESET to return to Basic.

If you want to access the printer_dat file from RAM1 instead of drive one each time PRINT is called, it will be necessary to run the CONFIG_BAS program and reset the location of SYSTEM files to RAM1_ so the program will look there for the printer data. (Refer to CONVERT_BAS to reconfigure v. 2.35.) After doing this, load the BOOT routine and insert this command in a line preceding the EXEC call: COPY flp1_printer_dat TO RAM1_printer_dat (or use COPY mdv1_ ….) Use this copy of BOOT, QUILL, and data whenever you load in or save ASCII files.

To simplify creating new files, set up a dummy file on this disk or mdv with LEFT margin, INDENT, UPPER and BOTTOM margins, PAGE size, and line GAP all set to zero, and RIGHT margin set to 80. Source code files require this, and files in a DOS wordprocessor may then be re-formatted more easily. Page headers and footers will also be output with ASCII text files unless turned off or the page size is pre-set to zero.

Load this dummy file whenever creating a QUILL file that will be output as ASCII data. Keep in mind that F4 and other command-codes will be stripped from the text data when it is saved as ASCII code. Some imbedded TRANSLATE characters may remain but will not be recognized by a DOS wordprocessor, and of course should not be used in Basic, or DO, or source code files. Set JUSTIFY to left margin and do not use wrap-around lines in source code files, Basic or DO listings.

Having done all this, to save a file in ASCII from this QUILL format simply key F3, P for PRINT, ENTER for current file, ENTER for whole file, and when the “to printer” prompt appears, enter the filename of eight characters or less. Note that _lis is appended to files saved in this manner, which you probably would want to omit for DO and Basic files by renaming them after they have been saved. (A RESET must be done before calling a DO routine if QUILL or another EXEC program has been used previously.)

To IMPORT (load in) an ASCII file or Basic or DO listing it must also have or be renamed to a filename with the _lis suffix. Key F3 twice for COMMAND II then F for Files and I for Import. Enter the filename, including _lis, then at the prompt for type of input, select Line.

To use the XOVER program supplied with PC Conqueror, first use RESET, then execute the program with EXEC flp1_XOVER. Place a pre-formatted DOS disk in drive 1 and your QDOS ASCII file disk in drive 2. Key CTRL C to activate XOVER and follow the menu prompts for “Export files (QDOS -> DOS)”. Since it is accepted practice to give DOS text files the suffix .TXT you may want to use the DOS REN command to rename files for easier recognition.

I did not have a PC or clone to test these ASCII files in a DOS wordprocessor like Word, WordPerfect, or WordStar but they worked fine for me under PC Conqueror, using Spinnaker EZ-Writer with spellcheck and the Disk-Count EDIT line-editor, as well as the DOS EDLIN routine.