[horde] pre-select spellcheck language

Michael M Slusarz slusarz at horde.org
Wed Jul 16 07:28:43 UTC 2014


Quoting Simon B <simon.buongiorno at gmail.com>:

> On 15 Jul 2014 23:23, "Michael M Slusarz" <slusarz at horde.org> wrote:
>>
>> Quoting "A. Schulze" <sca at andreasschulze.de>:
>>
>>> Hello,
>>>
>>> every time I write a message the spellcheck assist me in not writing
> complete non sense.
>>> When *answering* to a message sometime the compose window remember me
>>> "the receiver prefer answers in this language: English"
>>>
>>> I would be nice if the default spell checking language is automatically
> changed to English in this case.
>>>
>>> Otherwise I often
>>>  - check in german first (waste of time of course)
>>>  - notice my mistake
>>>  - switch spell lang to English
>>>  - check again
>>
>>
>> There's no guarantee that you are going to reply in English.
>>
>> And what happens if the receiver perfers answers in multiple languages.
>>
>> Or what happens if the receiver prefers an answer in a language that you
> don't speak.
>>
>> I don't see a way of making this work correctly the majority of the time.
>
> I would have thought two conditions cover the majority of cases...
>
> 1) the language the email was written in...
> 2) the set language horde is in..
>     b) the default language the browser is in.
>
> Or better, a weighting factor of the three.
>
> My sender writes in German, my horde is in English, my browser is in
> Italian..
>   German

How would this work?  It is likely that the German dictionary is not  
installed on your system in this instance.

And how do you know the sender writes in German?  Just because the  
e-mail may contain information on the preferred *reply* language, this  
has nothing to do with the language the message is written in.

There is software that can guess the language, but it is not 100%  
accurate.  Especially when there is mixed languages in the message body.

So you have an e-mail that is written in English, but the reply is  
preferred in German.  How can code make a sane decision about what  
language is going to be used based on just this information.  A: it  
can't.

Code that guesses right 90% of the time is worthless.  It is better to  
know 100% of the time what the default language is for spell check,  
rather than not know what the automatically generated value is and  
have it be wrong 10% of the time.

michael

___________________________________
Michael Slusarz [slusarz at horde.org]



More information about the horde mailing list