Office Open XML to CALS converter¶
- class benker.converters.ooxml2cals.Ooxml2CalsConverter¶
Bases:
benker.converters.base_converter.BaseConverter
Office Open XML to CALS converter
- builder_cls¶
alias of
benker.builders.cals.CalsBuilder
- parser_cls¶
alias of
benker.parsers.ooxml.OoxmlParser
- benker.converters.ooxml2cals.convert_ooxml2cals(src_xml, dst_xml, **options)¶
Convert Office Open XML (OOXML) tables to CALS tables.
- Parameters
src_xml (str) –
Source path of the XML file to convert.
This must be an XML file, for instance, if you want to convert a Word document (
.docx
), you first need to unzip the.docx
file, and then, run this function on the fileword/document.xml
. You can also use the styles_path option to parse and use the table styles defined in the fileword/styles.xml
.dst_xml (str) – Destination path of the XML file to produce.
options – Extra conversion options. See
convert_file()
to have a list of all possible options.