[Alpine-info] Set language for spelling

Carlos E. R. robin.listas at telefonica.net
Fri May 18 15:49:33 PDT 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On Friday, 2012-05-18 at 13:11 -0000, David Bonde wrote:


> I use hunspell for spellchecking in Alpine. The problem is that I write

> e-mails in several different languages and as far as I can tell, I can't

> change the language for the spell checking unless I chnage how hunspell

> is invoked in Alipne's configuration screen.


I do it with a script.

First I define the setting in alpine:

Speller = alpine_aspell


Then I have the script "/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

You just have to edit the script to add languages.


This was done with help from people in this mail list:


Date: Thu, 23 Oct 2008 21:53:26 +0200 (CEST)
From: Carlos E. R. <>
To: Alpine-alpha <alpine-alpha at u.washington.edu>
Subject: [Alpine-alpha] feature request: choose language for spell-check, dynamically.

or

Date: Mon, 1 Dec 2008 00:42:32 +0200 (EET)
From: Iosif Fettich <>
To: Alpine Forum List <alpine-info at u.washington.edu>
Subject: [Alpine-info] Managing a few different spell-checkers



- --
Cheers,
Carlos E. R.
(from 11.4 x86_64 "Celadon" at Telcontar)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)

iEYEARECAAYFAk+20f0ACgkQtTMYHG2NR9XisACePmsOL2aPR5B5FQNo7kzGCDzz
dkUAn2ztd/Biz3poonhCBn+g/KSuUqfW
=KH26
-----END PGP SIGNATURE-----


More information about the Alpine-info mailing list