view MoinMoin/filter/application_vnd_ms_powerpoint.py @ 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
children
line wrap: on
line source
# -*- 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