Re: Re[2]: ISO language codes
- From: Sven Neumann <sven gimp org>
- To: Phil Krylov <phil mail ru>
- Cc: gtk-list gnome org
- Subject: Re: Re[2]: ISO language codes
- Date: 16 Jun 2002 14:42:53 +0200
Hi,
Phil Krylov <phil mail ru> writes:
> SN> In what way would Pango use ISO language codes ?
>
> The documentation for GtkTextTag "language" property says:
> > "language" (gchararray : Read / Write)
> >
> > The language this text is in, as an ISO code. Pango can use this as a
> > hint when rendering the text. If you don't understand this argument,
> > you probably don't need it.
>
> If Pango doesn't really use those codes (at the moment), I would still
> like to set this property to be able to generate the appropriate RTF
> keywords when exporting text from GtkTextBuffer to RTF.
I didn't say it wouldn't use the language code. I was just trying to
assure that we speak about the same thing before I answer.
As described in the documentation for pango_language_from_string(),
the language codes are in the format described in RFC 3066:
http://rfc.sunsite.dk/rfc/rfc3066.html
the ISO 639 language codes can be found for example here:
http://www.w3.org/WAI/ER/IG/ert/iso639.htm
Perhaps the GtkTextTag documentation should mention which ISO standard
it refers to. IIRC, there's at least one different ISO standard that
refers to languages (but I can't remember which one it was) and this
could lead to confusion. Perhaps you should file a bug-report asking
for improvements to the documentation?
Salut, Sven
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]