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

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

Definition at line 96 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)
        officeDocStylesNode = self.xmldoc.getElementsByTagName('office:document-styles')
        # go through node, replace font, and convert data to unicode.
        self.goThru(officeDocStylesNode, self.replaceFont)
        self.goThru(officeDocStylesNode, self.convertIfLegacy)
        return self.xmldoc.toxml('utf-8')
    

Generated by  Doxygen 1.6.0   Back to index