Last month we provided a program to generate a double line box. This method is suitable for a screen display but not practical for text to be printed on a large printer. This article deals with a solution for a print-out of text, such as I have here.
I am using MSCRIPT V5.3 on my 2068, and Epson LQ 570 printer. The method will be somewhat similar for Tasword II. Any printer that is Epson compatible with the same graphic symbols, and character codes for them should work, as long as MSCRIPT works with that printer.
The ASCII character codes used for making a double line box are as follows:
ASCII Character Description Assign
Code MSCRIPT
Codes
201 ╔ Top Lt cor 1
187 ╗ Top Rt cor 2
200 ╚ Bot Lt cor 3
188 ╝ Bot Rt cor 4
205 ═ Top & Bot 5
186 ║ Ends 6
IBM compatible computers have these ASCII codes for graphic characters included in the character sets but they are not available in Sinclair Basic so the characters cannot be shown on the screen. They could be designed with the user graphic keys but that is a lot of work and they would not work for word processing. The printer codes would still have to be used.
MSCRIPT has a method of embedding printer codes in the text that uses the copyright symbol, ©, plus a number from 0 thru 9. Note that the © is not the same symbol used in MSCRIPT, which is a larger symbol. I have arbitrarily assigned the MSCRIPT codes as per the table. The screen will not display the printed box but I have used asterisk symbols to make a box of sorts. There will be as many asterisks as there will be ©s along with the necessary printer and computer codes.
The first step is to assign the printer codes as prescribed for MSCRIPT by using %#1=201/1,#2=187/1, etc. Note that the % is only for this text as the character is the right pointing arrow on the T key. If I used the correct symbol here the numbers would not print.
The second step is to generate the text and the box around it. It will look like this:
***************** * BOX THE TITLE * *****************
There are 17 asterisks across and 3 lines down. The box can easily be larger than this but not smaller for this text. Now we know how much space to allow for the box and printed text.
The third step is to replace each asterisk with the corresponding copyright symbol and MSCRIPT code. The top line is 1,(15)5s, and 2. The second line is 6, BOX THE TITLE, 6 and the last line is 3, (15)5s, and 4. Each number is preceeded by ©. With MSCRIPT each time this combination is inserted in the text, the line moves right 2 columns to make room for the input. Just erase the asterisks with the backspace key.
The box and title will look like this, using the $ symbol for the copyright symbol:
$1$5$5$5$5$5$5$5$5$5$5$5$5$5$5$5$2 $6 BOX THE TITLE $6 $3$5$5$5$5$5$5$5$5$5$5$5$5$5$5$5$4
I have made this rather detailed but in normal use it is really quite simple, particularly in that you are using the copyright symbol.
Placement of the box is simple with MSCRIPT. Simply use the left margin command LM followed by the margin desired. This article is written with 64 columns with a left margin of 8. If the reader prints it out, the box will be at LM 26 to be centered. Remember to cancel these commands with LM and 8.
My columns for THE PLOTTER are printed with a left margin of 5 and line length of 36. The title box would then be printed at LM 5+(36-17)/2=14.
I’ll try to accomplish this boxed title thing with the Tasword II word processor and give a report on it.