~ubuntu-branches/ubuntu/natty/pygtk/natty-proposed

« back to all changes in this revision

Viewing changes to docs/html/class-pangolanguage.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-06-22 16:49:42 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090622164942-19zeltp4z0u5iw72
Tags: 2.15.2-0ubuntu1
* New upstream version:
  - Rename gtk.Statusbar.remove() to gtk.Statusbar.remove_message
  - Allow pango.Context creation 
  - Make gtk.gdk.Pixbuf.add_alpha accept integers, retaining backward
    compatibility accepting also chars 
  - Protect window obj from GC in gtk.window_get_toplevels 
  - Plug huge number of memory leaks in Pango wrappers 
  - Add gtk.gdk.WINDOWING constant 
  - Wrap gdk_pixbuf_apply_embedded_orientation 
  - Modernize constructors of seven more types 
  - Don't free a string we don't own 
  - Some docs tweaking 
* debian/control.in:
  - set vcs location
* debian/patches/02_fix_get_application_info_crash.patch:
  - the change is in the new version

Show diffs side-by-side

added added

removed removed

Lines of Context:
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>
4
4
 
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> 
15
15
<em class="parameter"><code>language</code></em>. This constructor first canonicalizes the
16
16
string in <em class="parameter"><code>language</code></em> by converting it to lowercase,
17
17
mapping '_' to '-', and stripping all characters other than letters and
18
 
'-'.</p></div><div class="refsect1" lang="en"><a name="id3258714"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-pangolanguage--matches"></a><h3>pango.Language.matches</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">matches</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>range_list</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>&gt;range_list</code></strong> :</span></p></td><td>a list of language ranges, separated by ';'
 
18
'-'.</p></div><div class="refsect1" lang="en"><a name="id3347062"></a><h2>Methods</h2><div class="refsect2" lang="en"><a name="method-pangolanguage--matches"></a><h3>pango.Language.matches</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">matches</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>range_list</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>&gt;range_list</code></strong> :</span></p></td><td>a list of language ranges, separated by ';'
19
19
characters.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td><code class="literal">True</code> if a match was
20
20
found.</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.4 and above.</p></div><p>The <code class="methodname">matches</code>() method returns
21
21
<code class="literal">True</code> if the language matches one of the language ranges
26
26
more information).</p></div><div class="refsect2" lang="en"><a name="method-pangolanguage--to-string"></a><h3>pango.Language.matches</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">to_string</span>(<span class="methodparam"></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the string representation of the language
27
27
tag</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This method is available in PyGTK 2.4 and above.</p></div><p>The <code class="methodname">to_string</code>() method returns a string
28
28
representation of the canonicalized language tag. See the <a class="link" href="class-pangolanguage.html#constructor-pangolanguage" title="Constructor">pango.Language</a>() constructor for
29
 
more information.</p></div></div><div class="refsect1" lang="en"><a name="id3258936"></a><h2>Functions</h2><div class="refsect2" lang="en"><a name="function-pango--pango-language-from-string"></a><h3>pango.pango_language_from_string</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">pango.pango_language_from_string</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>language</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>language</code></strong> :</span></p></td><td>a string representing a language
 
29
more information.</p></div></div><div class="refsect1" lang="en"><a name="id3347285"></a><h2>Functions</h2><div class="refsect2" lang="en"><a name="function-pango--pango-language-from-string"></a><h3>pango.pango_language_from_string</h3><pre class="programlisting"><code class="methodsynopsis">    def <span class="methodname">pango.pango_language_from_string</span>(<span class="methodparam"><span class="parameter"><strong class="parameter"><code>language</code></strong></span></span>)</code></pre><table border="0" width="100%" bgcolor="#FFECCE"><col align="left" valign="top" width="0*"><tbody><tr><td><p><span class="term"><strong class="parameter"><code>language</code></strong> :</span></p></td><td>a string representing a language
30
30
          tag</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>a new <a class="link" href="class-pangolanguage.html" title="pango.Language"><code class="classname">pango.Language</code></a>
31
31
          object</td></tr></tbody></table><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This function is deprecated in PyGTK 2.4 and above. Use the
32
32
<a class="link" href="class-pangolanguage.html#constructor-pangolanguage" title="Constructor">pango.Language()</a>