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)
| 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 | |
| 75 | if __name__ == "__main__": |
| 76 | import doctest |
nothing calls this directly
no test coverage detected