parameters: (self, shortname, uc_alt)
return_statement: return alt
docstring: Get alt form.
docstring_summary: Get alt form.
docstring_tokens: Get alt form .
function: def _get_alt(self, shortname, uc_alt):
          """Get alt form."""
  
          if uc_alt is None or not self.unicode_alt:
              alt = shortname
          else:
              alt = self._get_unicode_char(uc_alt)
              if self.encoded_alt:
                  alt = ''.join(
                      [md_util.AMP_SUBSTITUTE + ('#x%04x;' % util.get_ord(point)) for point in util.get_code_points(alt)]
                  )
          return alt
function_tokens: def _get_alt ( self , shortname , uc_alt ) : if uc_alt is None or not self . unicode_alt : alt = shortname else : alt = self . _get_unicode_char ( uc_alt ) if self . encoded_alt : alt = '' . join ( [ md_util . AMP_SUBSTITUTE + ( '#x%04x;' % util . get_ord ( point ) ) for point in util . get_code_points ( alt ) ] ) return alt