code: def _lookup_attributes(glyph_name, data):
      
      attributes = (
          data.names.get(glyph_name)
          or data.alternative_names.get(glyph_name)
          or data.production_names.get(glyph_name)
          or {}
      )
      return attributes
docs: Look up glyph attributes in data by glyph name, alternative name or
      production name in order or return empty dictionary.
  
      Look up by alternative and production names for legacy projects and
      because of issue #232.