On Fri, 22 Sep 2000, Juergen Vigna wrote:

> I'll add it to language.[Ch] I don't know how you can use it :),
> but for now you could get a general language code from the init call!
> (I'll change the code so that in the init_spell... call you get as
> lang-string the lang_country code!
> 
> > I also need the country code for languages which you have down such as
> > "american" may I suggest you use the standard syntax which will be 
> >   <language code>_<country code>
> > for example american will be "en_US".
> > 
> 
> Someone has a list of all this?
> I'll fill out the ones I know and leaf the rest to the empty-string!

See http://www.unicode.org/unicode/onlinedat/online.html.  The look to the
left for "Language and Country Codes".

Also the county code should only be used when a particular language string
is specific for a particular country.  You want to use the ISO Code2 for
the country codes when it is needed.

BTW: Pspell will currently ignore the country code so the Canadian
dictionary won't work quite yet.  I will add support for using the country
code in the next release.

> > I also need a way know the encoding that LyX will be sending the TeX
> > in.  The current known encodings are ``utf-8'', ``iso8859-*'', ``koi8-r'',
> > ``viscii'', ``cp1252'', ``machine unsigned 16'', ``machine unsigned
> > 32''. Case does not matter.
> 
> You can also get it from the BufferParams::language_info have a look at
> language.[Ch].

OK you should also, right after the setting the language tag, set the
encoding type.

--- 
Kevin Atkinson
kevina at users sourceforge net
http://metalab.unc.edu/kevina/

Reply via email to