Cheshire3 Object Model: Class DiacriticNormalizer

Module normalizer :: Class DiacriticNormalizer

Class DiacriticNormalizer
source code

Object Tree:
           object --+            
                    |            
configParser.C3Object --+        
                        |        
   baseObjects.Normalizer --+    
                            |    
             SimpleNormalizer --+
                                |
                               DiacriticNormalizer

Slow implementation of Unicode 4.0 character decomposition. Eg that é -> e

Instance Methods

process_string(self, session, data)
Process a string into an alternative form.

Inherited from SimpleNormalizer: __init__, process_hash

Inherited from configParser.C3Object: auth_function, get_config, get_default, get_object, get_path, get_setting, log_function, unauth_function, unlog_function

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__


Class Variables

map  

Inherited from configParser.C3Object: configStore, defaults, functionLogger, id, name, objectType, objects, parent, paths, permissionHandlers, settings, subConfigs, unresolvedObjects

Inherited from object: __class__


Method Details

process_string(self, session, data)

source code 
Process a string into an alternative form.
Overrides: SimpleNormalizer.process_string

Class Variable Details

map

Value:
{u'\u0106': u'C',
 u'\u0116': u'E',
 u'\u01a1': u'o',
 u'\u020c': u'O',
 u'\u022c': u'O',
 u'\u1e04': u'B',
 u'\u1e14': u'E',
 u'\u1e24': u'H',
...