Re: Ispell


Subject: Re: Ispell
From: Dom Lachowicz (dominicl@seas.upenn.edu)
Date: Wed Jun 13 2001 - 12:36:03 CDT


Quoting Mike Nordell <tamlin@algonet.se>:

> Dom wrote:
> [...]
> > Not at all. I'm seriously deprecating that key in system.profile - we
> need
> > something more advanced than what it offers - I want to support more
> than
> one
> > dictionary/language per document.
>
> Agreed. Though I think the _major_ language (used throughout the
> document
> unless paragraphs/sections/whatever override it) should be either the
> already set language for an existing doc, or the current language for a
> new
> doc (unless changed of course).
>
> I personally think this should also be a _user_ property. I live in
> Sweden,
> but at least 90% of the stuff I write is in English, mostly US english
> to
> make it even worse. :-)
> That's why I think my user profile should be able to override the system
> profile.

Hiya Mike,

We actually do support this on Unix, and I figure that it's *trivial* to do on
Win32 or whatever your preferred platform is.

On Unix, we getenv("LANG"), which can be en-US, de-DE, etc... My impl probably
isn't the best, but it sure does work. See src/wp/ap/unix/ap_UnixFrame.cpp
around line 130.

Since we spell-check based on our "lang" property now in *both* the ispell and
pspell builds, setting "lang" to sv-SE will give you the desired effect.

Please implement something like this for Win32 if at all possible.

Dom



This archive was generated by hypermail 2b25 : Wed Jun 13 2001 - 12:36:20 CDT