Re: language guessing
Jean-Marc Desperrier <[email protected]> Thu, 09 Jun 2005 23:33:53 +0200
| Newsgroups | gmane.comp.mozilla.internationalization |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Tomasz Grobelny wrote: > Jean-Marc Desperrier wrote: >>No. If you need it, you need to have set properly a 'lang' attribute. > > For web pages it rarely would be usable (if at all). It is very useful for asian languages encoded in UTF-8. > But I thought such a > mechanism could for example choose appropriate phrases and signatures in > e-mail client when replying. There is the Content-Language header for that. Yes, it certainly would be a good enhancement to both send the Content-Language header in our messages, and use it to select those element when replying. > Ok, thanks. I asked just because I was told mozilla has sth like this. It > must have been a misunderstanding though. It certainly was a reference to the character encoding guessing. >>It would be expensive in term of CPU, and difficult to make > > I doubt it. _Maybe_ I will check if that's the case. Now that I know that you are thinking about email that makes me believe that as we have Spell As You Type, it should be possible to try with a different dictionnary if the percentage of errors is too high and discover the correct one once the error ratio drops. And update the language for the message based on that.