Logo Search packages:      
Sourcecode: khmerconverter version File versions  Download package

def khmerconverter v.1.4::modules::unicodeConvertOdt::unicodeConvertOdt::processContent (   self,
  xmldata 
)
change font name and size, convert data to unicode in xmldata
@param xmldata: xml string to parse.

Definition at line 85 of file unicodeConvertOdt.py.

                                     :
        """change font name and size, convert data to unicode in xmldata
        @param xmldata: xml string to parse."""
        self.xmldoc = minidom.parseString(xmldata)
        officeNode = self.xmldoc.getElementsByTagName('office:text')
        officeDocContentNode = self.xmldoc.getElementsByTagName('office:document-content')
        # go through node, replace font, and convert data to unicode.
        self.goThru(officeDocContentNode, self.replaceFont)
        self.goThru(officeNode, self.convertIfLegacy)
        return self.xmldoc.toxml('utf-8')
    

Generated by  Doxygen 1.6.0   Back to index