[horde] Problem with aspell and Portuguese dictionary

Jan Schneider jan at horde.org
Thu Jun 20 08:22:08 UTC 2013


Please don't top post.

Zitat von Nuno Carrilho <nuno at znunix.com>:

> Hello Michael,
>
> It's wierd that aspell is broken. It's installed using Fedora's 18  
> repository as you can see:
> # rpm -qa |grep aspell
> aspell-pt_PT-20070510-3.fc18.x86_64
> aspell-es-1.11-4.fc18.x86_64
> aspell-0.60.6.1-5.fc18.x86_64
> aspell-devel-0.60.6.1-5.fc18.x86_64
> aspell-en-7.1-4.fc18.x86_64
> aspell-nl-0.50-1.fc18.x86_64
>
> If I run the normal command manualy the output:
> # aspell -a --encoding=UTF-8 --sug-mode=fast --lang='pt' --ignore='2' -H
> Error: No word lists can be found for the language "pt".
>
> And if I run the command with the flag fast --lang='pt_PT', the output is:
> # aspell -a --encoding=UTF-8 --sug-mode=fast --lang='pt_PT' --ignore='2' -H
> @(#) International Ispell Version 3.1.20 (but really Aspell 0.60.6.1)
>
> If there is a way to change it on horde's configuration ...
>
> Thanks for you help,
>
> Com os melhores Cumprimentos,
> ___________
> Nuno Carrilho
>
>
> -----Original Message-----
> From: horde-bounces at lists.horde.org  
> [mailto:horde-bounces at lists.horde.org] On Behalf Of Michael M Slusarz
> Sent: quinta-feira, 20 de Junho de 2013 06:34
> To: horde at lists.horde.org
> Subject: Re: [horde] Problem with aspell and Portuguese dictionary
>
> Quoting Nuno Carrilho <nuno at znunix.com>:
>
>> I'm having some problems using aspell with portuguese dictionary's
>> with horde-5.1.x and imp-6.1.x.
>>
>> When I send a message in Portuguese, I get the following error:
>>
>> HORDE: [imp] Spellcheck failed. Command line: /usr/bin/aspell -a
>> --encoding=UTF-8 --sug-mode=fast --lang='pt' --ignore='2' -H [pid
>> 24434 on line 91 of "/usr/share/pear/Horde/SpellChecker/Aspell.php"]
>>
>> The problem is with the flag --lang='pt'. It should be --lang='pt_PT'.
>
> No.  Your aspell is broken if this doesn't work.  From the aspell man page:
>
>         --lang=<string>, -l <string>
>                Language to use.  It follows the same format of the   
> LANG  envi‐
>                ronmental  variable on most systems. It consists of  
> the two let‐
>                ter ISO 639 language code and an optional two  letter  
>  ISO  3166
>                country  code  after  a dash or underscore. The  
> default value is
>                based on the value of the LC_MESSAGES locale.
>
> So --lang=PT is perfectly acceptable according to the man page.
>
> michael
>
> ___________________________________
> Michael Slusarz [slusarz at horde.org]
>
> --
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/ To unsubscribe,  
> mail: horde-unsubscribe at lists.horde.org

You probably need to install the aspell-pt dictionary.
-- 
Jan Schneider
The Horde Project
http://www.horde.org/



More information about the horde mailing list