Subject: Alternative spelling programme.

From: Rosemary Lyndall <[email-masked]>
Date: Sun, 28 May 1995 16:05:54 +0800

The PINE documentation implies that an alternative spell-checking 
programme can be run in PINE.  Unfortunately I cannot find any references 
to how this may he done and the system configuration files suggest that 
the only one available is that attached to PICO.

Can anyone tell me:

a. How can another spell-checker be configured to run under PINE?

b. Which spell checkers are compatible with PINE run under a FreeBSD Unix 
system?

Please reply by e-mail.  Thank you.
  --------------------------------------------------------------------------
  Rosemary Lyndall                Rosemary from DownUnder            _--_|\ 
  Clinical Neuro-psychologist  [email-masked]   Perth /      \
  Perth, Western Australia    [email-masked]     -->\_.--._/
  ------------------------------------------------------------------------v-

---

From: "J. Kelly Cunningham" <[email-masked]>
Date: Sun, 28 May 1995 12:02:22 -0600

-----BEGIN PGP SIGNED MESSAGE-----

On Sun, 28 May 1995, Rosemary Lyndall wrote:

| Date: Sun, 28 MAY 1995 16:05:54 +0800 
| From: Rosemary Lyndall <[email-masked]>
| Newgroups: comp.mail.pine
| Subject: Alternative spelling programme. 
| 
| The PINE documentation implies that an alternative spell-checking 
| programme can be run in PINE.  Unfortunately I cannot find any references 
| to how this may he done and the system configuration files suggest that 
| the only one available is that attached to PICO.
| 
| Can anyone tell me:
| 
| a. How can another spell-checker be configured to run under PINE?
| 

Here's a simple solution:

Save this script as ckspell.
- ---8<---8<---8<---8<---8<---8<--- CUT HERE ---8<---8<---8<---8<---8<---8<---
#!/bin/csh -f
#set QUOTECHAR = "| "
#set ALTEDITOR = "pico -z -n -t"
set ALTSPELL = "ispell -x"
#
# Replace Pine's quote characters if QUOTECHAR is set.
#
if( ${?QUOTECHAR} ) then
	cp $1 $1.$$
	sed s/^"> "/"$QUOTECHAR"/g < $1.$$ > $1
	rm $1.$$
endif
#
# Use an alternate editor if ALTEDITOR is set.
#
if( ${?ALTEDITOR} ) then
	$ALTEDITOR $1
endif
#
# Run the alternate spell checker if ALTSPELL is set.
#
if( ${?ALTSPELL} ) then
	$ALTSPELL $1
endif
#
- ---8<---8<---8<---8<---8<---8<--- CUT HERE ---8<---8<---8<---8<---8<---8<---

Put ckspell in a directory for executables and run the command:
	chmod 700 ckspell ; rehash

Point Pine's alternate editor at ckspell.  Hit <control> _ when you want to
run the spell checker.  Uncomment the "set ALTSPELL" and check the 
"enable-alternate-editor-implicitly" feature for a little tighter
integration.

| b. Which spell checkers are compatible with PINE run under a FreeBSD Unix 
| system?

Anything you want.

| 
| Please reply by e-mail.  Thank you.
| 

I haven't actually tested the script, so let me know if it barfs.

-- kc    finger [email-masked] | pgp -fka 
"The  strongest reason for the people to retain  their
right  to  keep  and  bear  arms is, as a last resort,
to protect themselves against tyranny in  government."  --  Thomas Jefferson

---

From: Rosemary Lyndall <[email-masked]>
Date: Mon, 29 May 1995 02:56:01 +0800

Thanks.  Ispell is now installed :-)