MCPcopy Create free account
hub / github.com/PageBot/PageBot / typeset

Method typeset

Lib/pagebot/base/article.py:64–73  ·  view source on GitHub ↗

Take the composition descriptor of the Article and apply it to the document, by interpreting key words in the "free language" design talk and finding the related functions to call.

(self)

Source from the content-addressed store, hash-verified

62 self.startPage = startPage
63
64 def typeset(self):
65 """Take the composition descriptor of the Article and apply it to the
66 document, by interpreting key words in the "free language" design talk
67 and finding the related functions to call."""
68 if self.mdText:
69 t = Typesetter(self.doc.context)
70 tmpPath = '/tmp/PageBot-Article.xml'
71 path = t.markDown2XmlFile(tmpPath, self.mdText)
72 galley = t.typesetFile(path)
73 os.remove(tmpPath)
74
75if __name__ == "__main__":
76 import doctest

Callers

nothing calls this directly

Calls 3

markDown2XmlFileMethod · 0.95
typesetFileMethod · 0.95
TypesetterClass · 0.90

Tested by

no test coverage detected