From: CRDGW2::CRDGW2::MRGATE::"SMTP::CRVAX.SRI.COM::RELAY-INFO-VAX" 4-OCT-1989 23:54 To: MRGATE::"ARISIA::EVERHART" Subj: EVE$$SPELL Message-Id: <8910050343.AA03568@crdgw1.ge.com> Received: From MATH.AMS.COM by CRVAX.SRI.COM with TCP; Wed, 4 OCT 89 13:39:53 PDT Date: Wed 4 Oct 89 16:39:39-EST From: "Rich DeJordy, x295" Subject: EVE$$SPELL To: INFO-VAX@SRI.COM Cc: rad@MATH.AMS.COM As we were looking through the TPU help the other day, one of my collegues was intrigued by the SPELL command. The help explains that this is a TPU interface to DECspell. Believing DEC when they said the first E in EVE stands for Extensible, we set out to modify the SPELL command to work with the SPELL program we got off a DECUS tape. Here are some of the interesting things we learned in doing this. First, to check if DECspell is installed on your system, the procedure checks for the existance of a file LNGSPLCOR, with a default directory of SYS$SYSTEM and a default file type of .EXE. By simply defining LNGSPLCOR as a logical name pointing to the image AMS$SYSTEM:SPELL.EXE, we were able to get by the first check. Then, the EVE$$SPELL routines checks that the region, if selected, contains all full lines (partial lines could mean partial words, which would appear to be misspelled). If no region is selected, the entire buffer will be checked. The command line "SPELL filename/OUTPUT=filename", where "filename" is SYS$SCRATCH:integer-pid.TMP and "integer-pid" is the integer representation of the process TPU created to run the SPELL program. The version of SPELL which we run does not allow for a /OUTPUT qualifier. A quick work-around was to redefine the command in the DCLTABLES to accept a /OUTPUT quallifier. Although this worked, the spell program we use is sensitive to the extension of a file and behaves differently for a .TEX file than for a .RNO than for a .TXT file. In order to take advantage of this feature, we needed to change the EVE$$SPELL routine to keep the same extension as the original file. While doing that, we also removed the /OUTPUT qualifier from the command line and changed the logical name search for a file called AMS$SPELL ins SYS$SYSTEM,. but define AMS$SPELL to point to the actual image on a system wide basis. The EVE_SPELL and EVE$$SPELL routines are in the EVE$EXTRAS.TPU file of the new versionof TPU. If anyone is interested in our version of this file, please feel free to contact me by phone at (401)272-9500 ext. 295 or by electronic mail to RAD@MATH.AMS.COM on the Internet. -------