WORD-11 Goodies Please find enclosed a magtape that contains three Word-11 extras that were developed here. These are currently running on version 4.1 of Word-11. This items have been placed in the public domain and previous versions have been previously submitted to DECUS. They include a VMS access help file, a startup file memo form for the LN03 laser printer (eg. this page), and an index utility that gives a directory of Word-11 documents that includes the revision date and number of disk blocks as well as the document name and number (output can be sorted by any entry). The files in this directory are: Memo Form FIXED.FDL FDL file that is used to convert the LN03_MEMO.TXT file into the Word-11 format of LN03_MEMO.WOR LN03_MEMO.TABLE W11MGR printer table that specifies the Memo startup file. LN03_MEMO.TXT LN03 commands to draw a Memo form converted to long records of up to 512 bytes long. (I used EVE to do this and did some trial and error on the end of record split points). LN03_MEMO.WOR Memo form in Word-11 record format for use as a startup print file. MEMO_FORM.TXT Original LN03 commands to print a memo form. Used in debugging file (ie. copy command to test). UDK1.LIS UDK used to space information into Memo Form blocks. Uses ruler 1. Printer settings 1 are used at print time. Help file W01001.WOR Word-11 source file containing the Help file. WORD11_HELP.COM Command file to include the HLP file into the system wide help facility. WORD11_HELP.HLP Ascii output of W01001.WOR. There should be no extra form feeds in this file. Index program WORD11_INDEX.COM Command file to build the Index program. WORD11_INDEX.EXE Executable of Index program. WORD11_INDEX.FOR Fortran source of Index program. The help system provides the same help files that are available inside of the Word-11 editor, but at the VMS command level. We have found this useful for new users before they actually get onto the system. The memo form has seen extensive use. The LN03 programmers guide is necessary to create or modify this LN03 drawing commands. Once the commands are debugged, then the file must be converted to a fixed block format like a Word-11 document. I used EVE to fill the many lines of code to 512 characters. I tried leave a code sequences unbroken (trial and error), as this produced some errors. I then used the CONVERT/FDL command to convert the variable length EVE output file to the fixed length WORD-11 file. This file is specified in the table file for the LN03MEMO form as the startup characters. All succeeding pages in a users document will be on regular paper. There is an associated UDK (number 1 in these examples) to fit text into the form's boxes, and also an associated ruler and print settings (shown in following samples). There were problems with the attempt to use List Processing and memo forms and and this is not supported. The Index program was required due to the terrible Index command with Word-11. Not only was the listing output double spaced (resulting in long directories), but more importantly, did not include the disk usage. This program reads the INDEX file and the current disk directory and gathers the extra information from the disk directory (disk space and revision date) and produces a listing that can be sorted by any key. I attempted to determine where Word-11 placed the original creation date, but could not find it (this would have been very useful). An example output: -- Document Index -- 24-NOV-88 13:58:26 For Index (DUA3) [TINNEY.WP] Doc# Rev Date Blocks Document name 2 19-NOV-1987 29 WORD-11 CHARACTER SETS 14 24-NOV-1987 14 memo - info for memo form on LN03 in Word-11 10 2-MAR-1988 8 TEST OF SIXEL PRINTING IN WORD-11 96 19-JUL-1988 7 WORD-11 DISTRIBUTION 11 21-NOV-1988 62 COIN data holdings 16 24-NOV-1988 4 test 19 24-NOV-1988 16 memo - DMG goodies for them 7 Documents 140 Blocks There was a requirement to print output from Datatrieve Plots in Word-11 documents. This was easily accomplished using a printer control block. The plot file in REGIS format must first be converted to SIXEL format using the DECUS program SIXEL. The sixel program is then included into the Word-11 document at print time using the Printer Control Include function. Paging would then have to be done by the operator, because Word-11 doesn't know anything about the file that was included. A program called SHIFT was written to shift the Datatrieve plot over to be centred on the page. SAMPLE PRINT MENU USING THE MEMO FORM -- Print Menu -- November 24, 1988 12:21 PM Document: (16) test Form or Direct Output FO/DT HYDROGRAPHY (Form) Printer Type PT LN03MEMO VMS Queue Form name VF Printer Margin Indent PM 6 First page to print FR 1 Lines in top margin TM 6 Last page to print TO 0 Lines in bottom margin BM 6 Bin Select BS 0 Lines per page PS 66 Copies to print CP 1 Automatic page breaking AP NO Stop every page SE NO Initial page number IP 1 Create Index IN NO Characters per inch PI 12 Create Table of Contents TC NO Extra half-line spacing EX 0 Print header PH NO Print extra dark DA NO Delete after printing DE NO Underline spaces US YES Print Priority PR 5 Include change bars CB NO Print Option PO 0 Type the letters and value and press RETURN. Type GO and press RETURN if all settings are correct. SAMPLE EMPTY DOCUMENT AFTER UDK 1 HAS BEEN RUN Scroll: 1 Page: 1 Edit Mode: Insert View Mode: DEFAULT Character Set: (1) STANDARD Entry Attr: None L--------T------------------------------------------T---------------------J..... 1 2 3 4 5 # 1 2 3 November 24, 1988 re: hello Good luck and I hope that these utilities can be of benefit. Brad L. Tinney Canadian Hydrographic Service 867 Lakeshore Road Burlington, Ontario L7R 4A6 (416) 336-4728