* Spellcheck second language
@ 2012-02-16 16:45 Philippe LeCavalier
2012-02-16 17:47 ` Thomas Jost
0 siblings, 1 reply; 2+ messages in thread
From: Philippe LeCavalier @ 2012-02-16 16:45 UTC (permalink / raw)
To: notmuch
Hi.
I get this[1] when envoking keybindings to a second language
flyspell. Any ideas? I've already tried alternate titles to reference
the dictionary in question ie french, francais and français to no avail.
Also, how would I apply a variation to the dictionary ie. fr_ca?
ref.
[1] ispell-change-dictionary: Undefined dictionary: français
rel sys details:
emacs 23.3-9.fc16
hunspell 1.3.2-1.fc16
hunspell-en 0.20110318-1.fc16
hunspell-fr 4.1-1.fc16
Please ask if you need more info.
--
Thanks,
Phil
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Spellcheck second language
2012-02-16 16:45 Spellcheck second language Philippe LeCavalier
@ 2012-02-16 17:47 ` Thomas Jost
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Jost @ 2012-02-16 17:47 UTC (permalink / raw)
To: Philippe LeCavalier, notmuch
[-- Attachment #1: Type: text/plain, Size: 2224 bytes --]
On Thu, 16 Feb 2012 11:45:10 -0500, Philippe LeCavalier <support@plecavalier.com> wrote:
> Hi.
>
> I get this[1] when envoking keybindings to a second language
> flyspell. Any ideas? I've already tried alternate titles to reference
> the dictionary in question ie french, francais and français to no avail.
>
> Also, how would I apply a variation to the dictionary ie. fr_ca?
>
> ref.
> [1] ispell-change-dictionary: Undefined dictionary: français
>
> rel sys details:
> emacs 23.3-9.fc16
> hunspell 1.3.2-1.fc16
> hunspell-en 0.20110318-1.fc16
> hunspell-fr 4.1-1.fc16
>
> Please ask if you need more info.
Hi Philippe,
Do you have aspell? If you do, do you also have aspell-fr? I don't know
ispell.el very well, but apparently it will try to use aspell, then
ispell, then hunspell in that order. So if you have /usr/bin/aspell but
not the French aspell dictionary, that may explain your problem.
Now for fr_CA... I don't use it myself (only fr_FR) and apparently
there's no specific file for fr_CA (nor fr_BE btw) in aspell-fr. So I
guess you should try to stick with "francais".
If you *really* want to use fr_CA, you may have to switch to hunspell,
since hunspell-fr *has* a dictionary for fr_CA. The problem is then to
tell emacs about this dictionary. Here's something that almost works:
(setq ispell-program-name "/usr/bin/hunspell"
ispell-extra-args '("-i" "latin1"))
(add-to-list 'ispell-local-dictionary-alist
(cons "fr_CA" (cdr (assoc "francais" ispell-dictionary-base-alist))))
(it copies settings from the fr_FR dictionary but names it fr_CA).
Problems:
- you need to enter the encoding manually to avoid getting such errors:
UTF-8 encoding error. Missing continuation byte in 0. [...]
but of course this means that this won't work in UTF-8 buffers...
- using these settings, I get another error when changing the dictionary
to american and running flyspell-buffer ("Can't check region"). I have
to revert to aspell for it to work again.
So even if it's not a perfect solution, you should probably keep on
using "francais" with aspell.
Hope this helps.
Best regards
--
Thomas/Schnouki
[-- Attachment #2: Type: application/pgp-signature, Size: 489 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-02-16 17:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-16 16:45 Spellcheck second language Philippe LeCavalier
2012-02-16 17:47 ` Thomas Jost
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).