def name2unicode(name):
 if (name in glyphname2unicode):
  return glyphname2unicode[name]
 m = STRIP_NAME.search(name)
 if (not m):
  raise KeyError(name)
 return unichr(int(m.group(0)))

def name2unicode ( name ) : if ( name in glyphname2unicode ) : return glyphname2unicode [ name ] m = STRIP_NAME . search ( name ) if ( not m ) : raise KeyError ( name ) return unichr ( int ( m . group ( 0 ) ) )
converts adobe glyph names to unicode numbers .