def  make_html_word( self, word ):
<EOL>m = re_crossref.match( word )<EOL>if m:<EOL><INDENT>try:<EOL><INDENT>name = m.group( <NUM_LIT:1> )<EOL>rest = m.group( <NUM_LIT:2> )<EOL>block = self.identifiers[name]<EOL>url   = self.make_block_url( block )<EOL>return '<STR_LIT>' + url + '<STR_LIT>' + name + '<STR_LIT>' + rest<EOL><DEDENT>except:<EOL><INDENT>sys.stderr.write("<STR_LIT>" + name + "<STR_LIT>" )<EOL>return '<STR_LIT:?>' + name + '<STR_LIT:?>' + rest<EOL><DEDENT><DEDENT>m = re_italic.match( word )<EOL>if m:<EOL><INDENT>name = m.group( <NUM_LIT:1> )<EOL>rest = m.group( <NUM_LIT:3> )<EOL>return '<STR_LIT>' + name + '<STR_LIT>' + rest<EOL><DEDENT>m = re_bold.match( word )<EOL>if m:<EOL><INDENT>name = m.group( <NUM_LIT:1> )<EOL>rest = m.group( <NUM_LIT:3> )<EOL>return '<STR_LIT>' + name + '<STR_LIT>' + rest<EOL><DEDENT>return html_quote( word )<EOL>
analyze a simple word to detect cross-references and styling