Parent: [e16ef6] (diff)

Child: [d7f056] (diff)

Download this file

mimeconf    108 lines (102 with data), 4.0 kB

# @(#$Id: mimeconf,v 1.18 2006-10-02 08:26:20 dockes Exp $  (C) 2004 J.F.Dockes

# Recoll : associations of mime types to processing filters.
# There are different sections for decompression, 'interning' for indexing
# and preview, and external viewers

## #######################################
# Decompression: these types need a first pass to create a temp file to
# work with. We use a script because uncompress utilities usually work in
# place, which is not suitable. 
#
# The %t parameter will be substituted to the name of a temporary directory
# by recoll. This directory is guaranteed empty when calling the filter
#
# The %f parameter will be substituted with the input file. 
#
# The script (ie: rcluncomp) must output the uncompressed file name on
# stdout. 
application/x-gzip  =  uncompress rcluncomp gunzip %f %t
application/x-compress = uncompress rcluncomp gunzip %f %t
application/x-bzip2 =  uncompress rcluncomp bunzip2 %f %t

## ###################################
# Filters for indexing and internal preview.
# The external (exec) filters  output the document in simple html format,
# have a look at the scripts.
[index]
application/msword = exec rcldoc
application/pdf = exec rclpdf
application/postscript = exec rclps
application/vnd.ms-powerpoint = exec rclppt
application/vnd.ms-excel = exec rclxls
application/vnd.sun.xml.calc = exec rclsoff
application/vnd.sun.xml.calc.template = exec rclsoff
application/vnd.sun.xml.draw = exec rclsoff
application/vnd.sun.xml.draw.template = exec rclsoff
application/vnd.sun.xml.impress = exec rclsoff
application/vnd.sun.xml.impress.template = exec rclsoff
application/vnd.sun.xml.math = exec rclsoff
application/vnd.sun.xml.writer = exec rclsoff
application/vnd.sun.xml.writer.global = exec rclsoff
application/vnd.sun.xml.writer.template = exec rclsoff
application/x-dvi = exec rcldvi
audio/mpeg = exec rclmedia
image/vnd.djvu = exec rcldjvu
message/rfc822 = internal
text/html  = internal 
text/plain = internal 
text/rtf = exec rclrtf
text/x-gaim-log = exec rclgaim
text/x-mail = internal

## ##########################################
# External viewers, launched when you on a result entry 'edit' link
[view]
application/msword = openoffice %f
application/pdf  = xpdf %f
application/postscript = gv %f
application/vnd.ms-excel = openoffice %f
application/vnd.ms-powerpoint = openoffice %f
application/vnd.sun.xml.calc = openoffice %f
application/vnd.sun.xml.calc.template = openoffice %f
application/vnd.sun.xml.draw = openoffice %f
application/vnd.sun.xml.draw.template = openoffice %f
application/vnd.sun.xml.impress = openoffice %f
application/vnd.sun.xml.impress.template = openoffice %f
application/vnd.sun.xml.math = openoffice %f
application/vnd.sun.xml.writer = openoffice %f
application/vnd.sun.xml.writer.global = openoffice %f
application/vnd.sun.xml.writer.template = openoffice %f
application/x-dvi = xdvi %f
audio/mpeg = xmms %f
image/jpeg = xv %f
image/png = xv %f
image/vnd.djvu = djview %f
# Or firefox -remote "openFile(%u)"
text/html = firefox %u
text/plain = gnuclient -q %f
text/x-c = gnuclient -q %f

## #############################################
# Icons to be used in the result list if required by gui config
[icons]
application/msword = wordprocessing
application/pdf = pdf
application/postscript = postscript
application/vnd.ms-excel = spreadsheet
application/vnd.ms-powerpoint = presentation
application/vnd.sun.xml.calc = spreadsheet
application/vnd.sun.xml.calc.template = spreadsheet
application/vnd.sun.xml.draw = drawing
application/vnd.sun.xml.draw.template = drawing
application/vnd.sun.xml.impress = presentation
application/vnd.sun.xml.impress.template = presentation
application/vnd.sun.xml.writer = wordprocessing
application/vnd.sun.xml.writer.global = wordprocessing
application/vnd.sun.xml.writer.template = wordprocessing
application/x-dvi = document
audio/mpeg = sownd
image/jpeg = image
image/png = image
image/vnd.djvu = document
message/rfc822 = message
text/html = html
text/plain = txt
text/x-mail = message
text/x-c = source