1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>pango.Language</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="pango-class-reference.html" title="The pango Class Reference"><link rel="prev" href="class-pangoglyphstring.html" title="pango.GlyphString"><link rel="next" href="class-pangolayout.html" title="pango.Layout"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">pango.Language</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-pangoglyphstring.html">Prev</a> </td><th width="60%" align="center">The pango Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-pangolayout.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-pangolanguage"></a><div class="titlepage"></div><div class="refnamediv"><h2>pango.Language</h2><p>pango.Language — an object that represents a language tag.</p></div><div class="refsect1" lang="en"><a name="id2898438"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">pango.Language</span></span>(<span class="ooclass"><span class="classname">gobject.GBoxed</span></span>):
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>pango.Language</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="pango-class-reference.html" title="The pango Class Reference"><link rel="prev" href="class-pangoglyphstring.html" title="pango.GlyphString"><link rel="next" href="class-pangolayout.html" title="pango.Layout"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">pango.Language</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-pangoglyphstring.html">Prev</a> </td><th width="60%" align="center">The pango Class Reference</th><td width="20%" align="right"> <a accesskey="n" href="class-pangolayout.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-pangolanguage"></a><div class="titlepage"></div><div class="refnamediv"><h2>pango.Language</h2><p>pango.Language — an object that represents a language tag.</p></div><div class="refsect1" lang="en"><a name="id3346730"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">pango.Language</span></span>(<span class="ooclass"><span class="classname">gobject.GBoxed</span></span>):
2
2
<code class="constructorsynopsis"> <span class="methodname"><a class="link" href="class-pangolanguage.html#constructor-pangolanguage" title="Constructor">pango.Language</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>language</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-pangolanguage.html#method-pangolanguage--matches" title="pango.Language.matches">matches</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>range_list</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-pangolanguage.html#method-pangolanguage--to-string" title="pango.Language.matches">to_string</a></span>(<span class="methodparam"></span>)</code><br></pre></td></tr></table><pre class="programlisting">
3
3
<span class="bold"><strong>Functions</strong></span>
5
<code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-pangolanguage.html#function-pango--pango-language-from-string" title="pango.pango_language_from_string">pango.pango_language_from_string</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>language</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-pangolanguage.html#function-pango--pango-language-matches" title="pango.pango_language_matches">pango.pango_language_matches</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>language</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>range_list</code></strong></span></span>)</code></pre></div><div class="refsect1" lang="en"><a name="id2898610"></a><h2>Description</h2><p>A <a class="link" href="class-pangolanguage.html" title="pango.Language"><code class="classname">pango.Language</code></a>
5
<code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-pangolanguage.html#function-pango--pango-language-from-string" title="pango.pango_language_from_string">pango.pango_language_from_string</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>language</code></strong></span></span>)</code><br><code class="methodsynopsis"> def <span class="methodname"><a class="link" href="class-pangolanguage.html#function-pango--pango-language-matches" title="pango.pango_language_matches">pango.pango_language_matches</a></span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>language</code></strong></span></span>, <span class="methodparam"><span class="parameter"><strong class="parameter"><code>range_list</code></strong></span></span>)</code></pre></div><div class="refsect1" lang="en"><a name="id3346902"></a><h2>Description</h2><p>A <a class="link" href="class-pangolanguage.html" title="pango.Language"><code class="classname">pango.Language</code></a>
6
6
object represents a language tag meeting the RFC-3066 standard. The <a class="link" href="class-pangolanguage.html" title="pango.Language"><code class="classname">pango.Language</code></a>
7
7
can be retrieved from a <a class="link" href="class-pangocontext.html" title="pango.Context"><code class="classname">pango.Context</code></a> by
8
8
using the <a class="link" href="class-pangocontext.html#method-pangocontext--get-language" title="pango.Context.get_language"><code class="methodname">pango.Context.get_language</code>()</a>