예제 #1
0
 def do_maketitle(self, node):
     output = []
     metadata = node.ownerDocument.userdata
     if 'publishers' in metadata:
         output.append(self.center(metadata['publishers']).rstrip())
     if 'uppertitleback' in metadata or 'lowertitleback' in metadata:
         output.append(u'\n\n')
     if 'uppertitleback' in metadata:
         output.append(self.fill(unicode(metadata['uppertitleback'])))
     if 'lowertitleback' in metadata:
         output.append(u'\n%s' % self.fill(unicode(metadata['lowertitleback'])))
     if 'dedication' in metadata:
         output.append(u'\n\n\n')
         output.append(self.center(metadata['dedication']).rstrip())
     return BaseRenderer.do_maketitle(self, node) + u'\n'.join(output)
예제 #2
0
    def __init__(self, *args, **kwargs):
        BaseRenderer.__init__(self, *args, **kwargs)
        
        # Load dictionary with methods
#       Right now broken FIXME,TODO 
	self.Footnotes = []