Esempio n. 1
0
 def assemble_parts(self):
     # we will add 2 new parts to the writer: 'first_paragraph_as_text' and
     # 'images'
     Writer.assemble_parts(self)
     self.parts['first_paragraph_as_text'] = \
         self.visitor.first_paragraph_as_text
     self.parts['images'] = self.visitor.images
Esempio n. 2
0
 def assemble_parts(self):
     # we will add 2 new parts to the writer: 'first_paragraph_as_text' and
     # 'images'
     Writer.assemble_parts(self)
     self.parts['first_paragraph_as_text'] = \
         self.visitor.first_paragraph_as_text
     self.parts['images'] = self.visitor.images
Esempio n. 3
0
def translate_to_parts(document):
    writer = Writer()
    writer.document = document
    writer.translate()
    writer.assemble_parts()
    return dict(writer.parts)
Esempio n. 4
0
def translate_to_parts(document):
  writer = Writer()
  writer.document = document
  writer.translate()
  writer.assemble_parts()
  return dict(writer.parts)