[Alpine-info] Managing a few different spell-checkers
Carlos E. R.
robin.listas at telefonica.net
Mon Dec 1 17:15:56 PST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday, 2008-12-01 at 00:42 +0200, Iosif Fettich wrote:
> Dear alpineers,
>
> I turn to the list with a request for advice and/or help.
>
> I often write messages in more than one language, and as there are a few
> different spell-checkers available (I have aspell and hunspell installed),
> I'd like to be able to use one or another of these.
>
> So basically I'd wish to have a simple way to decide upon one of a few
> different possible ways to spell-check the text of an e-mail.
I asked about the same thing a while ago :-)
Date: Thu, 23 Oct 2008 21:53:26 +0200 (CEST)
From: Carlos E. R. <>
Subject: [Alpine-alpha] feature request: choose language for spell-check, dynamically.
I'll copy what I use:
/usr/local/bin/alpine_aspell
#!/bin/bash
read -p "Aspell: Select language: (US) UK ES FR " -s -n 1
case $REPLY in
2|[Uu]) opts=( -l en_GB.UTF-8 ) ;;
3|[Ee]) opts=( -l es_ES.UTF-8 ) ;;
4|[Ff]) opts=( -l fr_FR.UTF-8 ) ;;
*) opts=( -l en_US.UTF-8 ) ;;
esac
exec aspell ${opts[@]} -e -c $1
Another one that was posted, but that I do't use:
#echo "Aspell options"
#PS3="Select language 1-4: "
#select name in EN UK ES FR ; do
# case $REPLY in
# 2|[Uu]) opts=( -l en_GB.UTF-8 ) ;;
# 3|[Ee]) opts=( -l es_ES.UTF-8 ) ;;
# 4|[Ff]) opts=( -l fr_FR.UTF-8 ) ;;
# *) opts=( -l en_US.UTF-8 ) ;;
# esac
## exec aspell ${opts[@]} -H -c $1
# exec aspell ${opts[@]} -e -c $1
#done
and of course, change the configuration:
Speller = alpine_aspell
- --
Cheers,
Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
iEYEARECAAYFAkk0jE4ACgkQtTMYHG2NR9Uv4gCgi11GsXdcuKGZxj+WevHEHOw8
oxgAnicSJBibaVgTJc8HM9hdPrGb7g4X
=V+/n
-----END PGP SIGNATURE-----
More information about the Alpine-info
mailing list