Home | Trees | Indices | Help |
|
---|
|
This class is the common parent class for all language classes.
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
a new object with type S, a subtype of T |
|
|
|||
code =
The ISO 639 language code, possibly with a country specifier or other modifier. |
|||
fullname =
The full (English) name of this language. |
|||
nplurals = 0 The number of plural forms of this language. |
|||
pluralequation =
The plural equation for selection of plural forms. |
|||
listseperator =
This string is used to separate lists of textual elements. |
|||
commonpunc =
These punctuation marks are common in English and most languages that use latin script. |
|||
quotes =
These are different quotation marks used by various languages. |
|||
invertedpunc =
Inveted punctuation sometimes used at the beginning of sentences in Spanish, Asturian, Galician, and Catalan. |
|||
rtlpunc =
These punctuation marks are used by Arabic and Persian, for example. |
|||
CJKpunc =
These punctuation marks are used in certain circumstances with CJK languages. |
|||
indicpunc =
These punctuation marks are used by several Indic languages. |
|||
ethiopicpunc =
These punctuation marks are used by several Ethiopic languages. |
|||
miscpunc =
The middle dot (·) is used by Greek and Georgian. |
|||
punctuation =
We include many types of punctuation here, simply since this is only meant to determine if something is punctuation. |
|||
sentenceend =
These marks can indicate a sentence end. |
|||
sentencere = re.compile(r'
|
|||
puncdict =
A dictionary of punctuation transformation rules that can be used by punctranslate(). |
|||
ignoretests =
List of pofilter tests for this language that must be ignored. |
|||
checker = None A language specific checker (see filters.checks). |
|||
_languages =
|
|||
validaccel = None Characters that can be used as accelerators (access keys) i.e. |
|||
validdoublewords =
Some languages allow double words in certain cases. |
|
|||
Inherited from |
|
This returns the language class for the given code, following a singleton like approach (only one object per language).
|
Give a simple string representation without address information to be able to store it in text for comparison later.
|
|
codeThe ISO 639 language code, possibly with a country specifier or other modifier. Examples: km pt_BR sr_YU@Latn
|
fullnameThe full (English) name of this language. Dialect codes should have the form of
|
npluralsThe number of plural forms of this language. 0 is not a valid value - it must be overridden. Any positive integer is valid (it should probably be between 1 and 6) See Also: data
|
pluralequationThe plural equation for selection of plural forms. This is used for PO files to fill into the header.
|
listseperatorThis string is used to separate lists of textual elements. Most languages probably can stick with the default comma, but Arabic and some Asian languages might want to override this.
|
punctuationWe include many types of punctuation here, simply since this is only meant to determine if something is punctuation. Hopefully we catch some languages which might not be represented with modules. Most languages won't need to override this.
|
sentenceendThese marks can indicate a sentence end. Once again we try to account for many languages. Most langauges won't need to override this.
|
sentencere
|
checkerA language specific checker (see filters.checks). This doesn't need to be supplied, but will be used if it exists.
|
validaccelCharacters that can be used as accelerators (access keys) i.e. Alt+X where X is the accelerator. These can include combining diacritics as long as they are accessible from the users keyboard in a single keystroke, but normally they would be at least precomposed characters. All characters, lower and upper, are included in the list.
|
validdoublewordsSome languages allow double words in certain cases. This is a dictionary of such words.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Mar 3 16:36:13 2010 | http://epydoc.sourceforge.net |