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

Class ja

source code

   object --+    
            |    
common.Common --+
                |
               ja

This class represents Japanese.

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 = 'ja'
The ISO 639 language code, possibly with a country specifier or other modifier.
  fullname = 'Japanese'
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...
  puncdict = {...
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]

sentencere

Value:
re.compile(r'(?sx).*?[\u3002\uff01\uff1f!\?\u2026]\s*')

puncdict

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

Value:
{u''',
''': u'''
''',
 u', ': u'',
 u'''.
''': u'''
''',
 u'. ': u''}