Back to index

plone3  3.1.7
Public Member Functions
plone.i18n.normalizer.ru.Normalizer Class Reference

List of all members.

Public Member Functions

def normalize

Detailed Description

This normalizer can normalize any unicode string and returns a version
that only contains of ASCII characters.

Let's make sure that this implementation actually fulfills the API.

  >>> from zope.interface.verify import verifyClass
  >>> verifyClass(INormalizer, Normalizer)
  True

  >>> norm = Normalizer()
  >>> norm.normalize(u'\u0429')
  'SCH'

Definition at line 28 of file ru.py.


Member Function Documentation

def plone.i18n.normalizer.ru.Normalizer.normalize (   self,
  text,
  locale = None,
  max_length = None 
)
Returns a normalized text. text has to be a unicode string.

Definition at line 45 of file ru.py.

00045 
00046     def normalize(self, text, locale=None, max_length=None):
00047         """
00048         Returns a normalized text. text has to be a unicode string.
00049         """
00050         return mapUnicode(text, mapping=mapping)

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: