pology.lang.fr.patternAccents

Package pology :: Package lang :: Package fr :: Module patternAccents |

# Module patternAccents

Accent equivalence in regular expression patterns.

Author: Sébastien Renard <sebastien.renard@digitalfox.org>

License: GPLv3

Functions
patternAccents(pattern) Replace every `@x` in the pattern by the value `accents["x"]`. |

Variables
| accents = ``{``u'``a``'``:` `u'``[a|à|â|A|À|Â]``'``,` `u'``e``'``:` `u'``[e|é|è|ê|E|É|È|Ê]``'``,``...``
| accentPattern = `re.compile(r'@`(``[`a\|\xe0\|\xe2\|e\|\xe9\|\xe8\|`...``
| __package__ = ``'``pology.lang.fr``'``

Variables Details

  ### accents Value:
      {u'a': u'[a|à|â|A|À|Â]',
       u'e': u'[e|é|è|ê|E|É|È|Ê]',
       u'u': u'[u|ù|û|U|Ù|Û]',
       u'à': u'[à|â|À|Â]',
       u'â': u'[à|â|À|Â]',
       u'è': u'[é|è|ê|É|È|Ê]',
       u'é': u'[é|è|ê|É|È|Ê]',
       u'ê': u'[é|è|ê|É|È|Ê]',
      ...

  ### accentPattern Value:
      re.compile(r'@([a\|\xe0\|\xe2\|e\|\xe9\|\xe8\|\xea\|u\|\xf9\|\xfb])')