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

Class fr

source code

   object --+    
            |    
common.Common --+
                |
               fr

This class represents French.

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]
 
punctranslate(cls, text)
Implement some extra features for quotation marks.
source code

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

Class Variables [hide private]
  code = 'fr'
The ISO 639 language code, possibly with a country specifier or other modifier.
  fullname = 'French'
The full (English) name of this language.
  nplurals = 2
The number of plural forms of this language.
  pluralequation = '(n > 1)'
The plural equation for selection of plural forms.
  puncdict = {u'!': u' !', u'#': u' #', u':': u' :', u';': u' ;'...
A dictionary of punctuation transformation rules that can be used by punctranslate().
  c = u'#'

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

punctranslate(cls, text)
Class Method

source code 

Implement some extra features for quotation marks.

Known shortcomings:

  • % and $ are not touched yet for fear of variables
  • Double spaces might be introduced
Overrides: common.Common.punctranslate

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' ?'}