changeset 5151:63af53510576

indexing filters: add MS Powerpoint filter (needs catppt from catdoc package)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 18 Sep 2009 13:07:30 +0200
parents b424a3d66cfc
children cf16b1116dde df7d3de0e8cb
files MoinMoin/filter/application_vnd_ms_powerpoint.py
diffstat 1 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/filter/application_vnd_ms_powerpoint.py	Fri Sep 18 13:07:30 2009 +0200
@@ -0,0 +1,16 @@
+# -*- coding: iso-8859-1 -*-
+"""
+    MoinMoin - mspowerpoint filter
+
+    Depends on: "catppt" command from "catdoc" package
+
+    @copyright: 2009 MoinMoin:ThomasWaldmann
+    @license: GNU GPL, see COPYING for details.
+"""
+
+from MoinMoin.filter import execfilter
+
+def execute(indexobj, filename):
+    data = execfilter("catppt -dutf-8 %s", filename)
+    return data
+