def __init__(self, configs,*args, **kwargs):
        Renderer.__init__(self, *args, **kwargs)
        #document title
        self.configs = configs
        self.doc_title = configs['title']
        self.image_extension = configs['images_ext']
        # Load dictionary with methods
        for key in dir(self):
            if key.startswith('do__'):
                self[self.aliases[key[4:]]] = getattr(self, key)
            elif key.startswith('do_'):
                self[key[3:]] = getattr(self, key)

        self['default-layout'] = self['document-layout'] = self.default
        self.footnotes = []
        self.blocks = []
        #tree object
        self.tree = PageTree(self.doc_title,
                configs['output_path'],configs)
        #parameter for list formatting
        self.list_level=u''
        #parameter for theorem handling
        self.in_theorem=False

        ####### TAGS ANALYSY
        #dictionary for tag usage
        self.used_tags = {}
Exemplo n.º 2
0
 def __init__(self, *args, **kwargs):
     Renderer.__init__(self, *args, **kwargs)
     # Load dictionary with methods
     for key in dir(self):
         if key.startswith('do_'):
             self[key[3:]] = getattr(self, key)
     self['default-layout'] = self['document-layout'] = self.default
     self.footnotes = []
     self.blocks = []
Exemplo n.º 3
0
 def __init__(self, *args, **kwargs):
     """Initialize the Renderer
     """
     Renderer.__init__(self, *args, **kwargs)
     
     # Load dictionary with methods
     for key in vars(type(self)):
         if key.startswith('do__'):
             self[self.aliases[key[4:]]] = getattr(self, key)
         elif key.startswith('do_'):
             self[key[3:]] = getattr(self, key)
Exemplo n.º 4
0
    def __init__(self, *args, **kwargs):
        BaseRenderer.__init__(self, *args, **kwargs)

        # Load dictionary with methods
        for key in dir(self):
            if key.startswith('do__'):
                self[self.aliases[key[4:]]] = getattr(self, key)
            elif key.startswith('do_'):
                self[key[3:]] = getattr(self, key)

        self['default-layout'] = self['document-layout'] = self.default

        self.footnotes = []
        self.blocks = []
Exemplo n.º 5
0
    def __init__(self, *args, **kwargs):
        BaseRenderer.__init__(self, *args, **kwargs)
        
        # Load dictionary with methods
        for key in vars(type(self)):
            if key.startswith('do__'):
                self[self.aliases[key[4:]]] = getattr(self, key)
            elif key.startswith('do_'):
                self[key[3:]] = getattr(self, key)

        self['default-layout'] = self['document-layout'] = self.default
        
        self.footnotes = []
        self.blocks = []
Exemplo n.º 6
0
    def __init__(self, *args, **kwargs):
        BaseRenderer.__init__(self, *args, **kwargs)

        # Load dictionary with methods
        for key in vars(type(self)):
            if key.startswith("do__"):
                self[self.aliases[key[4:]]] = getattr(self, key)
            elif key.startswith("do_"):
                self[key[3:]] = getattr(self, key)

        self.indent = 0
        self.in_func = False
        self.in_cvarg = False
        self.descriptions = 0
        self.after_parameters = False
        self.func_short_desc = ""
Exemplo n.º 7
0
    def __init__(self, *args, **kwargs):
        BaseRenderer.__init__(self, *args, **kwargs)

        # Load dictionary with methods
        for key in vars(type(self)):
            if key.startswith('do__'):
                self[self.aliases[key[4:]]] = getattr(self, key)
            elif key.startswith('do_'):
                self[key[3:]] = getattr(self, key)

        self.indent = 0
        self.in_func = False
        self.in_cvarg = False
        self.descriptions = 0
        self.after_parameters = False
        self.func_short_desc = ''
Exemplo n.º 8
0
 def __init__(self, *args, **kwargs):
     BaseRenderer.__init__(self, *args, **kwargs)
     self.engines = {}
     htmlexts = ['.html','.htm','.xhtml','.xhtm','.zpt']
     self.registerEngine('zpt', None, htmlexts, htmltemplate)
     self.registerEngine('zpt', 'xml', '.xml', xmltemplate)
     self.registerEngine('tal', None, htmlexts, htmltemplate)
     self.registerEngine('tal', 'xml', '.xml', xmltemplate)
     self.registerEngine('html', None, htmlexts, htmltemplate)
     self.registerEngine('xml', 'xml', '.xml', xmltemplate)
     self.registerEngine('python', None, '.pyt', pythontemplate)
     self.registerEngine('string', None, '.st', stringtemplate)
     self.registerEngine('kid', None, '.kid', kidtemplate)
     self.registerEngine('cheetah', None, '.che', cheetahtemplate)
     self.registerEngine('genshi', None, '.gen', genshihtmltemplate)
     self.registerEngine('genshi', 'xml', '.genx', genshixmltemplate)
     self.registerEngine('genshi', 'text', '.gent', genshitexttemplate)
Exemplo n.º 9
0
 def __init__(self, *args, **kwargs):
     BaseRenderer.__init__(self, *args, **kwargs)
     self.engines = {}
     htmlexts = [".html", ".htm", ".xhtml", ".xhtm", ".zpt", ".pt"]
     self.registerEngine("pt", None, htmlexts, htmltemplate)
     self.registerEngine("zpt", None, htmlexts, htmltemplate)
     self.registerEngine("zpt", "xml", ".xml", xmltemplate)
     self.registerEngine("tal", None, htmlexts, htmltemplate)
     self.registerEngine("tal", "xml", ".xml", xmltemplate)
     self.registerEngine("html", None, htmlexts, htmltemplate)
     self.registerEngine("xml", "xml", ".xml", xmltemplate)
     self.registerEngine("python", None, ".pyt", pythontemplate)
     self.registerEngine("string", None, ".st", stringtemplate)
     self.registerEngine("kid", None, ".kid", kidtemplate)
     self.registerEngine("cheetah", None, ".che", cheetahtemplate)
     self.registerEngine("genshi", None, ".gen", genshihtmltemplate)
     self.registerEngine("genshi", "xml", ".genx", genshixmltemplate)
     self.registerEngine("genshi", "text", ".gent", genshitexttemplate)
Exemplo n.º 10
0
 def __init__(self, *args, **kwargs):
     BaseRenderer.__init__(self, *args, **kwargs)
Exemplo n.º 11
0
    def __init__(self, *args, **kwargs):
        BaseRenderer.__init__(self, *args, **kwargs)

        htmlexts = ['.html','.htm','.xhtml','.xhtm','.zpt','.pt']