aspell-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [aspell] Misc comments/suggestions on Aspell


From: Jacob Sparre Andersen
Subject: Re: [aspell] Misc comments/suggestions on Aspell
Date: Fri, 17 Nov 2000 10:55:52 +0100 (MET)

Kevin:

> On Thu, 16 Nov 2000, Kenneth Rohde Christiansen wrote:
> 
> > Hi Kevin et al,
> > 
> > It appears to me that the default dictionary choice of aspell is
> > English, no matter what the environment variable LANG is set
> > to.
> > 
> > I would find it extremely nice if the default dictionary used by
> > aspell depended of the LANG environment variable
> 
> In order to do that I would need a mapping from the
> setting in the LANG to a dictionary.  I have 0
> experience with this sort of thing.  Exactly what format
> can the LANG variable appear in.

ISO_Language_Code { "_" ISO_Country_Code { "." Character_Encoding } }

(iirc)

The ISO language codes are da (Danish) en (English), fr
(French), etc. The ISO country codes are DK (Denmark), AU
(Australia), FR (France), etc. The character encoding can
for example be ISO8859-1 (Latin-1).

So you need to take the first two (or five) letters and map
them to a language name. You can find the ISO standard with
language codes and names somewhere on the web.

Jacob
-- 
"an OS that is almost, but not quite, entirely unlike Windows"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]