Methods
|
|
|
|
__init__
|
__init__ (
self,
fh,
progname,
form,
options={},
)
form - dictionary of form values that are for the translated site (and it must still include the option_url)
options - additional options for the translator only
|
|
absolute_url
|
absolute_url ( self, url )
sometimes on URLs like
http://www.webmasterwork.com/forum/thread/threadid=17770/
there are documents containing links like
images/top_faq.gif
but what is meant is not
http://www.webmasterwork.com/forum/thread/threadid=17770/images/top_faq.gif
but
http://www.webmasterwork.com/images/top_faq.gif
It's almost impossible to work-around this.
|
|
close
|
close ( self )
|
|
do_area
|
do_area ( self, attrs )
|
|
do_bgsound
|
do_bgsound ( self, attrs )
|
|
do_hr
|
do_hr ( self, attrs )
|
|
do_img
|
do_img ( self, attrs )
|
|
do_input
|
do_input ( self, attrs )
|
|
do_link
|
do_link ( self, attrs )
|
|
do_overlay
|
do_overlay ( self, attrs )
|
|
do_range
|
do_range ( self, attrs )
|
|
end_a
|
end_a ( self )
|
|
end_applet
|
end_applet ( self )
|
|
end_body
|
end_body ( self )
|
|
end_embed
|
end_embed ( self )
|
|
end_fig
|
end_fig ( self )
|
|
end_form
|
end_form ( self )
|
|
end_frame
|
end_frame ( self )
|
|
end_meta
|
end_meta ( self )
|
|
end_script
|
end_script ( self )
|
|
end_td
|
end_td ( self )
|
|
flush
|
flush ( self )
|
|
googleimage_url
|
googleimage_url ( self, url )
|
|
handle_comment
|
handle_comment ( self, data )
|
|
handle_data
|
handle_data ( self, data )
|
|
handle_plaintext
|
handle_plaintext ( self, text )
|
|
map_attribute
|
map_attribute (
self,
asgns,
attr,
func,
)
|
|
process
|
process ( self )
for ln in fileinput.input (sys.argv[1]):
p.feed(ln)
|
|
process_completely
|
process_completely ( self )
|
|
relink_href
|
relink_href ( self, src )
|
|
replace_formurl
|
replace_formurl ( self, asgn )
|
|
replace_refresh_url
|
replace_refresh_url ( self, src )
|
|
replace_refresh_urlpart
|
replace_refresh_urlpart ( self, mt )
|
|
start_a
|
start_a ( self, attrs )
|
|
start_applet
|
start_applet ( self, attrs )
|
|
start_body
|
start_body ( self, attrs )
|
|
start_embed
|
start_embed ( self, attrs )
|
|
start_fig
|
start_fig ( self, attrs )
|
|
start_form
|
start_form ( self, attrs )
|
|
start_frame
|
start_frame ( self, attrs )
|
|
start_meta
|
start_meta ( self, attrs )
|
|
start_script
|
start_script ( self, attrs )
|
|
start_td
|
start_td ( self, attrs )
|
|
unknown_charref
|
unknown_charref ( self, ref )
|
|
unknown_endtag
|
unknown_endtag ( self, tag )
|
|
unknown_entityref
|
unknown_entityref ( self, ref )
|
|
unknown_starttag
|
unknown_starttag (
self,
tag,
attrs,
)
|