From abdf4c12b50dd863e856d215558d4db4606752e5 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Thu, 11 Oct 2012 14:04:54 +0200 Subject: [PATCH] added epub + chm/info rclaptg --- src/sampleconf/mimeconf | 5 ++++- src/sampleconf/mimemap | 2 ++ src/sampleconf/mimeview | 12 +++++++----- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/sampleconf/mimeconf b/src/sampleconf/mimeconf index b9b536e5..e3007185 100644 --- a/src/sampleconf/mimeconf +++ b/src/sampleconf/mimeconf @@ -32,6 +32,7 @@ application/x-lzma = uncompress rcluncomp unxz %f %t # A different format (ie text/plain), and a character set can be defined for # each filter, see the exemples below (ie: msword) [index] +application/epub+zip = execm rclepub # MSWORD: the rcldoc script handles a number of marginal case that raw # antiword won't: @@ -142,6 +143,7 @@ text/xml = exec rclxml ## ############################################# # Icons to be used in the result list if required by gui config [icons] +application/epub+zip = document application/msword = wordprocessing application/ogg = sownd application/pdf = pdf @@ -231,6 +233,7 @@ text/xml = document # If you add/remove categories, you may also want to change the # "guifilters" section below. text = \ + application/epub+zip \ application/msword \ application/pdf \ application/postscript \ @@ -245,12 +248,12 @@ text = \ application/x-awk \ application/x-chm \ application/x-dvi \ + application/x-gnuinfo \ application/x-kword \ application/x-lyx \ application/x-okular-notes \ application/x-perl \ application/x-scribus \ - application/x-gnuinfo \ application/x-shellscript \ application/x-tex \ application/xml \ diff --git a/src/sampleconf/mimemap b/src/sampleconf/mimemap index db2fae51..54fb4272 100644 --- a/src/sampleconf/mimemap +++ b/src/sampleconf/mimemap @@ -70,6 +70,8 @@ .xls = application/vnd.ms-excel .chm = application/x-chm +.epub = application/epub+zip + # OpenOffice / opendocument. We handle opendocument as old openoffice files # for now .sxc = application/vnd.sun.xml.calc diff --git a/src/sampleconf/mimeview b/src/sampleconf/mimeview index a5aa6c91..a017da7b 100644 --- a/src/sampleconf/mimeview +++ b/src/sampleconf/mimeview @@ -13,12 +13,14 @@ # 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 - +xallexcepts = application/pdf application/postscript application/x-dvi \ + text/html|gnuinfo text/html|chm [view] # Pseudo entry used if the 'use desktop' preference is set in the GUI application/x-all = xdg-open %f +application/epub+zip = ebook-viewer %f + application/x-kword = kword %f application/x-abiword = abiword %f @@ -102,10 +104,10 @@ text/x-shellscript = emacsclient %f # Or firefox -remote "openFile(%u)" text/html = firefox %u -text/html|gnuinfo = rclshowinfo %F %(title) +text/html|gnuinfo = rclshowinfo %F %(title);ignoreipath=1 application/x-webarchive = konqueror %f -text/x-fictionbook = calibre %f +text/x-fictionbook = ebook-viewer %f application/x-tex = emacsclient %f application/xml = emacsclient %f @@ -119,7 +121,7 @@ text/x-c++ = emacsclient %f text/x-csv = libreoffice %f text/x-html-sidux-man = konqueror %f text/x-html-aptosid-man = iceweasel %f -text/x-chm-html = openchm %f %i +text/html|chm = rclshowchm %f %i text/x-ini = emacsclient %f text/x-man = xterm -u8 -e "groff -T ascii -man %f | more" text/x-python = idle %f