From b1b5cb5e5e7531524d5a4ebb13d5c0473d6d8926 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Thu, 27 Dec 2018 17:55:32 +0100 Subject: [PATCH] added openxml word and xl. Cant do ppt because need page looping --- src/Makefile.am | 3 ++ src/filters/openxml-meta.xsl | 49 +++++++++++++++++++++++++++++++ src/filters/openxml-word-body.xsl | 27 +++++++++++++++++ src/filters/openxml-xls-body.xsl | 19 ++++++++++++ src/sampleconf/mimeconf | 8 ++--- 5 files changed, 102 insertions(+), 4 deletions(-) create mode 100644 src/filters/openxml-meta.xsl create mode 100644 src/filters/openxml-word-body.xsl create mode 100644 src/filters/openxml-xls-body.xsl diff --git a/src/Makefile.am b/src/Makefile.am index bd2e44af..d9566b30 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -656,6 +656,9 @@ filters/okular-note.xsl \ filters/opendoc-body.xsl \ filters/opendoc-flat.xsl \ filters/opendoc-meta.xsl \ +filters/openxml-xls-body.xsl \ +filters/openxml-word-body.xsl \ +filters/openxml-meta.xsl \ filters/ppt-dump.py \ filters/rcl7z \ filters/rclabw.py \ diff --git a/src/filters/openxml-meta.xsl b/src/filters/openxml-meta.xsl new file mode 100644 index 00000000..5a4677a4 --- /dev/null +++ b/src/filters/openxml-meta.xsl @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + author + + + + + + + + + + + + date + + + + + + + + + + + + diff --git a/src/filters/openxml-word-body.xsl b/src/filters/openxml-word-body.xsl new file mode 100644 index 00000000..e9962a32 --- /dev/null +++ b/src/filters/openxml-word-body.xsl @@ -0,0 +1,27 @@ + + + + + + +
+ +
+
+ + +

+ +

+
+ +
diff --git a/src/filters/openxml-xls-body.xsl b/src/filters/openxml-xls-body.xsl new file mode 100644 index 00000000..5c0d6c71 --- /dev/null +++ b/src/filters/openxml-xls-body.xsl @@ -0,0 +1,19 @@ + + + + + + +
+ +
+
+ + +

+ +

+
+ +
diff --git a/src/sampleconf/mimeconf b/src/sampleconf/mimeconf index 7a0e8850..103daee2 100644 --- a/src/sampleconf/mimeconf +++ b/src/sampleconf/mimeconf @@ -88,17 +88,17 @@ application/vnd.oasis.opendocument.presentation-flat-xml = internal xsltproc ope application/vnd.oasis.opendocument.text-flat-xml = internal xsltproc opendoc-flat.xsl application/vnd.oasis.opendocument.spreadsheet-flat-xml = internal xsltproc opendoc-flat.xsl application/vnd.openxmlformats-officedocument.wordprocessingml.document = \ - execm rclopxml.py + internal xsltproc docProps/core.xml openxml-meta.xsl word/document.xml openxml-word-body.xsl application/vnd.openxmlformats-officedocument.wordprocessingml.template = \ - execm rclopxml.py + internal xsltproc docProps/core.xml openxml-meta.xsl word/document.xml openxml-word-body.xsl application/vnd.openxmlformats-officedocument.presentationml.template = \ execm rclopxml.py application/vnd.openxmlformats-officedocument.presentationml.presentation = \ execm rclopxml.py application/vnd.openxmlformats-officedocument.spreadsheetml.sheet = \ - execm rclopxml.py + internal xsltproc docProps/core.xml openxml-meta.xsl xl/sharedStrings.xml openxml-xls-body.xsl application/vnd.openxmlformats-officedocument.spreadsheetml.template =\ - execm rclopxml.py + internal xsltproc docProps/core.xml openxml-meta.xsl xl/sharedStrings.xml openxml-xls-body.xsl application/vnd.sun.xml.calc = internal xsltproc meta.xml opendoc-meta.xsl content.xml opendoc-body.xsl application/vnd.sun.xml.calc.template = internal xsltproc meta.xml opendoc-meta.xsl content.xml opendoc-body.xsl application/vnd.sun.xml.draw = internal xsltproc meta.xml opendoc-meta.xsl content.xml opendoc-body.xsl