598: #line 656 "html_weaver.ipk" 599: def prolog(self): 600: kwds = self.keywords 601: w = self._writeline 602: w('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">') 603: w( '<HTML>') 604: w( '<HEAD>') 605: 606: self.write_tagged('TITLE', self.title) 607: 608: w( '<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">') 609: if kwds.has_key('author'): 610: author =kwds['author'] 611: w( '<META NAME="Author" CONTENT="'+author+'">') 612: w( '<META NAME="Generator" CONTENT="Interscript">') 613: extra = kwds.get('head_extra',''); 614: w('<LINK REL=STYLESHEET TYPE="text/css" HREF="interscript.css" TITLE="Interscript Standard">') 615: w(extra); 616: w('<LINK REL=STYLESHEET TYPE="text/css" HREF="user.css" TITLE="User Overrride">') 617: w( '</HEAD>') 618: w( '<BODY LANG="'+self.language+'">') 619: if kwds.has_key('pagehead'): 620: self._write(kwds['pagehead']) 621: if kwds.has_key('title'): 622: if kwds.has_key('anchor') and kwds['anchor']!='': 623: atag = ' ID="'+kwds['anchor']+'" TITLE="'+kwds['anchor']+'" ' 624: else: atag= '' 625: self._writeline('<H1 '+atag+'ALIGN="CENTER">'+self.title+'</H1>') 626: if kwds.has_key('heading_level_offset'): 627: self.heading_level_offset = kwds['heading_level_offset'] 628: 629: def epilog(self): 630: kwds = self.keywords 631: self._endmode() 632: if kwds.has_key('pagefoot'): 633: self._write(kwds['pagefoot']) 634: self._writeline('</BODY>') 635: self._writeline('</HTML>') 636: 637: