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

  1. Newsgroups: comp.windows.open-look
  2. Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!nott!bnrgate!bcars267!bcars6f4!webster
  3. From: webster@bnr.ca (Brent Webster)
  4. Subject: Re: Spell Checker
  5. Message-ID: <1992Dec21.183728.19494@bnr.ca>
  6. Sender: news@bnr.ca (usenet)
  7. Nntp-Posting-Host: bcars6f4
  8. Reply-To: webster@bnr.ca
  9. Organization: Bell Northern Research Ltd
  10. References: <1h4oppINNdh3@msuinfo.cl.msu.edu>
  11. Date: Mon, 21 Dec 1992 18:37:28 GMT
  12. Lines: 73
  13.  
  14. Here's how I do it under OW3.0.  It requires to 2 files
  15. You make a selection then under the Extras menu of the textpane pulldown
  16. menu, you invoke the "spell" command.  Another cmdtool shell window is opened
  17. with your spelling mistakes listed in it.
  18.  
  19.  
  20. **** cut here **** file: $HOME/.text_extras_menu *************************
  21. #    @(#)text_extras_menu 1.6 88/02/08 SMI
  22. #
  23. #    Copyright (c) 1987 by Sun Microsystems, Inc.
  24. #
  25. #    Text "Extras" menu
  26. #
  27. "spell"            myspell
  28.  
  29. "Format"        fmt
  30.  
  31. "Capitalize"        MENU
  32.     "abcd -> ABCD"    capitalize -u
  33.     "ABCD -> abcd"    capitalize -l
  34.     "abcd -> Abcd"    capitalize -c
  35. "Capitalize"        END
  36.  
  37. "Shift Lines"        MENU
  38.     "Right"    shift_lines -t 1
  39.     "Left"    shift_lines -t -1
  40. "Shift Lines"        END
  41.  
  42. "Pretty-print C"    indent -st
  43.  
  44. "Insert Brackets"    MENU
  45.     " ( )"    insert_brackets ( )
  46.     " [ ]"    insert_brackets \[ \]
  47.     " { }"    insert_brackets { }
  48.     "`` ''"    insert_brackets \" \"
  49. "Insert Brackets"    END
  50.  
  51. "Remove Brackets"    MENU
  52.     " ( )"    remove_brackets ( )
  53.     " [ ]"    remove_brackets \[ \]
  54.     " { }"    remove_brackets { }
  55.     "`` ''"    remove_brackets \" \"
  56. "Remove Brackets"    END
  57. *** cut here ************************************************************** 
  58.  
  59.  
  60.  
  61. *** cut here Note: directory location of myspell must be in
  62. *** cut here       your search path *****
  63. **** cut here **** file: myspell **********************************
  64. #!/bin/csh
  65. #
  66. # ispell-stdin - spell corrects stdin using ispell.  Corrected
  67. #                result goes to stdout.
  68. #
  69. set tmpFn = /tmp/ispell-stdin.$$
  70. cat >$tmpFn
  71. cmdtool -I "spell -v $tmpFn"
  72. onintr cleanup
  73. cleanup:
  74. /bin/rm $tmpFn
  75.  
  76. ---
  77. *************************************************************
  78. Brent Webster   (CoDesign Tools & Modelling)
  79.  
  80. Bell-Northern Research Ltd * Ph : (613) 763-4962
  81. P.O. Box 3511, Station C   * Fax: (613) 763-7742 or 2626
  82. Dept 9R12, MS103           * InterNet/NetNorth: webster@bnr.ca
  83. OTTAWA,Ont,Canada K1Y 4H7  * Bitnet: webster@bnr.ca.bitnet
  84. *************************************************************
  85. #include <std.disclaimer>
  86.  
  87.