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

Class fr

source code


This class represents French.

Instance Methods [hide private]

Inherited from common.Common: __deepcopy__, __repr__, alter_length, length_difference

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __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

Static Methods [hide private]

Inherited from common.Common: __new__

Class Variables [hide private]
  validaccel = u'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTU...
Characters that can be used as accelerators (access keys) i.e.
  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, code, commonpunc, ethiopicpunc, fullname, ignoretests, indicpunc, invertedpunc, listseperator, miscpunc, nplurals, pluralequation, punctuation, quotes, rtlpunc, sentenceend, sentencere, validdoublewords

Inherited from common.Common (private): _languages

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]

validaccel

Characters 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.

Value:
u'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890éÉ'

puncdict

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

Value:
{u'!': u' !', u'#': u' #', u':': u' :', u';': u' ;', u'?': u' ?'}