home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.open-look
- Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!nott!bnrgate!bcars267!bcars6f4!webster
- From: webster@bnr.ca (Brent Webster)
- Subject: Re: Spell Checker
- Message-ID: <1992Dec21.183728.19494@bnr.ca>
- Sender: news@bnr.ca (usenet)
- Nntp-Posting-Host: bcars6f4
- Reply-To: webster@bnr.ca
- Organization: Bell Northern Research Ltd
- References: <1h4oppINNdh3@msuinfo.cl.msu.edu>
- Date: Mon, 21 Dec 1992 18:37:28 GMT
- Lines: 73
-
- Here's how I do it under OW3.0. It requires to 2 files
- You make a selection then under the Extras menu of the textpane pulldown
- menu, you invoke the "spell" command. Another cmdtool shell window is opened
- with your spelling mistakes listed in it.
-
-
- **** cut here **** file: $HOME/.text_extras_menu *************************
- # @(#)text_extras_menu 1.6 88/02/08 SMI
- #
- # Copyright (c) 1987 by Sun Microsystems, Inc.
- #
- # Text "Extras" menu
- #
- "spell" myspell
-
- "Format" fmt
-
- "Capitalize" MENU
- "abcd -> ABCD" capitalize -u
- "ABCD -> abcd" capitalize -l
- "abcd -> Abcd" capitalize -c
- "Capitalize" END
-
- "Shift Lines" MENU
- "Right" shift_lines -t 1
- "Left" shift_lines -t -1
- "Shift Lines" END
-
- "Pretty-print C" indent -st
-
- "Insert Brackets" MENU
- " ( )" insert_brackets ( )
- " [ ]" insert_brackets \[ \]
- " { }" insert_brackets { }
- "`` ''" insert_brackets \" \"
- "Insert Brackets" END
-
- "Remove Brackets" MENU
- " ( )" remove_brackets ( )
- " [ ]" remove_brackets \[ \]
- " { }" remove_brackets { }
- "`` ''" remove_brackets \" \"
- "Remove Brackets" END
- *** cut here **************************************************************
-
-
-
- *** cut here Note: directory location of myspell must be in
- *** cut here your search path *****
- **** cut here **** file: myspell **********************************
- #!/bin/csh
- #
- # ispell-stdin - spell corrects stdin using ispell. Corrected
- # result goes to stdout.
- #
- set tmpFn = /tmp/ispell-stdin.$$
- cat >$tmpFn
- cmdtool -I "spell -v $tmpFn"
- onintr cleanup
- cleanup:
- /bin/rm $tmpFn
-
- ---
- *************************************************************
- Brent Webster (CoDesign Tools & Modelling)
-
- Bell-Northern Research Ltd * Ph : (613) 763-4962
- P.O. Box 3511, Station C * Fax: (613) 763-7742 or 2626
- Dept 9R12, MS103 * InterNet/NetNorth: webster@bnr.ca
- OTTAWA,Ont,Canada K1Y 4H7 * Bitnet: webster@bnr.ca.bitnet
- *************************************************************
- #include <std.disclaimer>
-
-