home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / openloo / 4908 < prev    next >
Encoding:
Text File  |  1992-12-23  |  1.4 KB  |  41 lines

  1. Path: sparky!uunet!gatech!darwin.sura.net!spool.mu.edu!olivea!gossip.pyramid.com!pyramid!infmx!helios!mdelaney
  2. From: mdelaney@informix.com (Dr. SPARC)
  3. Newsgroups: comp.windows.open-look
  4. Subject: Re: Spell Checker
  5. Message-ID: <mdelaney.724966194@helios>
  6. Date: 21 Dec 92 19:29:54 GMT
  7. References: <1992Dec17.172112.4750@cas.org> <1992Dec18.145301.15098@crd.ge.com>
  8. Sender: news@informix.com (Usenet News)
  9. Organization: Informix Software, Inc.
  10. Lines: 29
  11.  
  12. In <1992Dec18.145301.15098@crd.ge.com> howie@sunny.dab.ge.com (J. Bruce Howie) writes:
  13.  
  14. >So, I have a limited implimentation of a spell checker. I select ONLY one word.
  15. >and send it off to ispell. If I am quick, I can beat the timer and return the 
  16. >corrected word back to the text window before the timer times out.
  17.  
  18. To deal with the timeout, I added a "Swap" menu entry into my 
  19. .text_extras_menu that looks like this:
  20.  
  21. "Swap"            cat /tmp/X_filter_file
  22. "Ispell"          filter ispell
  23.  
  24. And the filter script looks like:
  25.  
  26. TEMP=/tmp/X_filter_file
  27. export TEMP
  28. cat > $TEMP
  29. shelltool $* $TEMP
  30. cat $TEMP
  31.  
  32. This way, if I am not fast enough and the selected region times out, I
  33. can just reselect the region and choose "Swap" from my menu.  OK, so
  34. it's a hack... so what, it works!
  35.  
  36.                         - Mark
  37. -- 
  38. Mark A. Delaney                  mdelaney@informix.com
  39.                                  [pyramid|uucp]!infmx!mdelaney
  40. #include <disclaimer>            (415) 926-6369
  41.