def shortened_character_name(self_or_cls, c, eliminations=[], substitutions={}, transforms=[]):
        """
        Given a unicode character c, return the shortened unicode name
        (as a list of tokens) by applying the eliminations,
        substitutions and transforms.
        """
        name = unicodedata.name(c).lower()
        # Filtering
        for elim in eliminations:
            name = name.replace(elim, '')
        # Substitution
        for i,o in substitutions.items():
            name = name.replace(i, o)
        for transform in transforms:
            name = transform(name)
        return ' '.join(name.strip().split()).replace(' ','_').replace('-','_')
def shortened_character_name ( self_or_cls , c , eliminations = [ ] , substitutions = { } , transforms = [ ] ) : name = unicodedata . name ( c ) . lower ( ) for elim in eliminations : name = name . replace ( elim , '' ) for i , o in substitutions . items ( ) : name = name . replace ( i , o ) for transform in transforms : name = transform ( name ) return ' ' . join ( name . strip ( ) . split ( ) ) . replace ( ' ' , '_' ) . replace ( '-' , '_' )
Given a unicode character c, return the shortened unicode name
        (as a list of tokens) by applying the eliminations,
        substitutions and transforms.