(self, shortname, uc_alt)
return alt
Get alt form.
Get alt form.
Get alt form .
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
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