Package translate :: Package lang :: Module zh :: Class zh
[hide private]
[frames] | no frames]

Class zh

source code

   object --+    
            |    
common.Common --+
                |
               zh

This class represents Chinese.

Instance Methods [hide private]

Inherited from common.Common: __init__, __repr__

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Class Methods [hide private]

Inherited from common.Common: capsstart, character_iter, characters, punctranslate, sentence_iter, sentences, word_iter, words

Class Variables [hide private]
  code = 'zh'
The ISO 639 language code, possibly with a country specifier or other modifier.
  fullname = 'Chinese'
The full (English) name of this language.
  nplurals = 1
The number of plural forms of this language.
  pluralequation = "0"
The plural equation for selection of plural forms.
  listseperator = u''
This string is used to seperate lists of textual elements.
  sentenceend = u'。!?…'
These marks can indicate a sentence end.
  sentencere = re.compile(r'(?sx).*?[\u3002\uff01\uff1f\u2026]\s*')
  puncdict = {u' (': u'(', ...
A dictionary of punctuation transformation rules that can be used by punctranslate().
  ignoretests = ['startcaps', 'simplecaps']
List of pofilter tests for this language that must be ignored.

Inherited from common.Common: CJKpunc, checker, commonpunc, ethiopicpunc, indicpunc, invertedpunc, miscpunc, punctuation, quotes, rtlpunc

Properties [hide private]

Inherited from object: __class__

Class Variable Details [hide private]

puncdict

A dictionary of punctuation transformation rules that can be used by punctranslate().

Value:
{u' (': u'(',
 u'''!
''': u'''
''',
 u'! ': u'',
 u'% ': u'%',
 u') ': u')',
 u'''.
...