Module prechm :: Class HelpHtmlParser
[hide private]
[frames] | no frames]

Class HelpHtmlParser

markupbase.ParserBase --+        
                        |        
       sgmllib.SGMLParser --+    
                            |    
           htmllib.HTMLParser --+
                                |
                               HelpHtmlParser
Known Subclasses:

Instance Methods [hide private]
 
__init__(self, formatter, path, output)
Creates an instance of the HTMLParser class.
 
begin_group(self)
 
finish_group(self)
 
anchor_bgn(self, href, name, type)
This method is called at the start of an anchor region.
 
anchor_end(self)
This method is called at the end of an anchor region.
 
start_dl(self, atr_val)
 
end_dl(self)
 
do_dt(self, atr_val)
 
write(self, text)
 
tab(self, text='')
 
saved_clear(self)
 
saved_get(self)

Inherited from htmllib.HTMLParser: ddpop, do_base, do_br, do_dd, do_hr, do_img, do_isindex, do_li, do_link, do_meta, do_nextid, do_p, do_plaintext, end_a, end_address, end_b, end_blockquote, end_body, end_cite, end_code, end_dir, end_em, end_h1, end_h2, end_h3, end_h4, end_h5, end_h6, end_head, end_html, end_i, end_kbd, end_listing, end_menu, end_ol, end_pre, end_samp, end_strong, end_title, end_tt, end_ul, end_var, end_xmp, error, handle_data, handle_image, reset, save_bgn, save_end, start_a, start_address, start_b, start_blockquote, start_body, start_cite, start_code, start_dir, start_em, start_h1, start_h2, start_h3, start_h4, start_h5, start_h6, start_head, start_html, start_i, start_kbd, start_listing, start_menu, start_ol, start_pre, start_samp, start_strong, start_title, start_tt, start_ul, start_var, start_xmp, unknown_endtag, unknown_starttag

Inherited from sgmllib.SGMLParser: close, convert_charref, convert_codepoint, convert_entityref, feed, finish_endtag, finish_shorttag, finish_starttag, get_starttag_text, goahead, handle_charref, handle_comment, handle_decl, handle_endtag, handle_entityref, handle_pi, handle_starttag, parse_endtag, parse_pi, parse_starttag, report_unbalanced, setliteral, setnomoretags, unknown_charref, unknown_entityref

Inherited from sgmllib.SGMLParser (private): _convert_ref

Inherited from markupbase.ParserBase: getpos, parse_comment, parse_declaration, parse_marked_section, unknown_decl, updatepos

Class Variables [hide private]

Inherited from sgmllib.SGMLParser: entity_or_charref

Inherited from sgmllib.SGMLParser (private): _decl_otherchars

Imports: entitydefs


Method Details [hide private]

__init__(self, formatter, path, output)
(Constructor)

 

Creates an instance of the HTMLParser class.

The formatter parameter is the formatter instance associated with the parser.

Overrides: markupbase.ParserBase.__init__

anchor_bgn(self, href, name, type)

 

This method is called at the start of an anchor region.

The arguments correspond to the attributes of the <A> tag with the same names. The default implementation maintains a list of hyperlinks (defined by the HREF attribute for <A> tags) within the document. The list of hyperlinks is available as the data attribute anchorlist.

Overrides: htmllib.HTMLParser.anchor_bgn
(inherited documentation)

anchor_end(self)

 

This method is called at the end of an anchor region.

The default implementation adds a textual footnote marker using an index into the list of hyperlinks created by the anchor_bgn()method.

Overrides: htmllib.HTMLParser.anchor_end
(inherited documentation)

start_dl(self, atr_val)

 
Overrides: htmllib.HTMLParser.start_dl

end_dl(self)

 
Overrides: htmllib.HTMLParser.end_dl

do_dt(self, atr_val)

 
Overrides: htmllib.HTMLParser.do_dt