fix opendocument mime config

This commit is contained in:
Jean-Francois Dockes 2012-10-17 11:44:53 +02:00
parent 5a68774b8d
commit 6dc77e0476
2 changed files with 23 additions and 10 deletions

View File

@ -55,7 +55,9 @@ application/pdf = exec rclpdf
application/postscript = exec pstotext;charset=iso-8859-1;mimetype=text/plain
application/vnd.ms-excel = exec xls2csv -c " " -d utf-8;mimetype=text/plain
application/vnd.ms-powerpoint = exec catppt -d utf-8;mimetype=text/plain
application/vn.oasis.opendocument.txt = exec rclsoff
application/vnd.oasis.opendocument.text = exec rclsoff
application/vnd.oasis.opendocument.presentation = exec rclsoff
application/vnd.oasis.opendocument.spreadsheet = exec rclsoff
application/vnd.openxmlformats-officedocument.wordprocessingml.document = \
exec rclopxml
application/vnd.openxmlformats-officedocument.wordprocessingml.template = \
@ -151,7 +153,9 @@ application/pdf = pdf
application/postscript = postscript
application/vnd.ms-excel = spreadsheet
application/vnd.ms-powerpoint = presentation
application/vn.oasis.opendocument.txt = wordprocessing
application/vnd.oasis.opendocument.text = wordprocessing
application/vnd.oasis.opendocument.presentation = presentation
application/vnd.oasis.opendocument.spreadsheet = spreadsheet
application/vnd.openxmlformats-officedocument.presentationml.presentation = presentation
application/vnd.openxmlformats-officedocument.presentationml.template = presentation
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet = spreadsheet
@ -239,7 +243,7 @@ text = \
application/msword \
application/pdf \
application/postscript \
application/vn.oasis.opendocument.txt \
application/vnd.oasis.opendocument.text \
application/vnd.openxmlformats-officedocument.wordprocessingml.document \
application/vnd.openxmlformats-officedocument.wordprocessingml.template \
application/vnd.sun.xml.writer \
@ -282,15 +286,18 @@ text = \
spreadsheet = \
application/vnd.ms-excel \
application/vnd.oasis.opendocument.spreadsheet \
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet \
application/vnd.openxmlformats-officedocument.spreadsheetml.template \
application/vnd.sun.xml.calc \
application/vnd.sun.xml.calc.template \
application/x-gnumeric
presentation = application/vnd.ms-powerpoint \
application/vnd.openxmlformats-officedocument.presentationml.template \
presentation = \
application/vnd.ms-powerpoint \
application/vnd.oasis.opendocument.presentation \
application/vnd.openxmlformats-officedocument.presentationml.presentation \
application/vnd.openxmlformats-officedocument.presentationml.template \
application/vnd.sun.xml.impress \
application/vnd.sun.xml.impress.template

View File

@ -9,10 +9,10 @@
# exceptions and the list is normally empty
#nouncompforviewmts =
# Exceptions when using the x-all entry: these types will use their local
# definition. This is useful, e.g. for pdf, where we can pass additional
# parameters like page to open and search string when using the local
# definition
# For releases 1.18 and later: exceptions when using the x-all entry: these
# types will use their local definition. This is useful, e.g. for pdf,
# where we can pass additional parameters like page to open and search
# string when using the local definition
xallexcepts = application/pdf application/postscript application/x-dvi \
text/html|gnuinfo text/html|chm
[view]
@ -20,6 +20,10 @@ xallexcepts = application/pdf application/postscript application/x-dvi \
application/x-all = xdg-open %f
application/epub+zip = ebook-viewer %f
# If you want to open the parent epub document for epub parts instead of
# opening them as html documents:
#text/html|epub = ebook-viewer %F;ignoreipath=1
application/x-mobipocket-ebook = ebook-viewer %f
application/x-kword = kword %f
@ -36,7 +40,9 @@ application/msword = libreoffice %f
application/vnd.ms-excel = libreoffice %f
application/vnd.ms-powerpoint = libreoffice %f
application/vn.oasis.opendocument.txt = libreoffice %f
application/vnd.oasis.opendocument.text = libreoffice %f
application/vnd.oasis.opendocument.presentation = libreoffice %f
application/vnd.oasis.opendocument.spreadsheet = libreoffice %f
application/vnd.openxmlformats-officedocument.wordprocessingml.document = \
libreoffice %f