'Process a document into its final form.
Translate `document` (a Docutils document tree) into the Writer\'s
native format, and write it out to its `destination` (a
`docutils.io.Output` subclass object).
Normally not overridden or extended in subclasses.'

def write(self, document, destination):

    self.document = document
    self.language = languages.get_language(document.settings.language_code)
    self.destination = destination
    self.translate()
    output = self.destination.write(self.output)
    return output
