From e4e3b84105762a3e080dc3cff7cf4cec30ab74d2 Mon Sep 17 00:00:00 2001 From: dockes Date: Fri, 8 Jun 2007 13:51:09 +0000 Subject: [PATCH] kword support --- src/filters/rcldjvu | 6 +++++- src/filters/rcldoc | 6 +++++- src/filters/rcldvi | 6 +++++- src/filters/rclgaim | 6 +++++- src/filters/rcljpeg | 4 ++++ src/filters/rcllyx | 6 +++++- src/filters/rclman | 6 +++++- src/filters/rclmedia | 6 +++++- src/filters/rclpdf | 6 +++++- src/filters/rclppt | 6 +++++- src/filters/rclps | 6 +++++- src/filters/rclrtf | 6 +++++- src/filters/rclscribus | 6 +++++- src/filters/rclsoff | 6 +++++- src/filters/rclxls | 6 +++++- src/filters/recfiltcommon | 3 +++ src/sampleconf/mimeconf | 3 ++- src/sampleconf/mimemap | 4 +++- 18 files changed, 82 insertions(+), 16 deletions(-) diff --git a/src/filters/rcldjvu b/src/filters/rcldjvu index a380db9d..5af0a7a1 100755 --- a/src/filters/rcldjvu +++ b/src/filters/rcldjvu @@ -1,5 +1,5 @@ #!/bin/sh -# @(#$Id: rcldjvu,v 1.4 2007-02-06 15:08:22 dockes Exp $ (C) 2005 J.F.Dockes +# @(#$Id: rcldjvu,v 1.5 2007-06-08 13:51:08 dockes Exp $ (C) 2005 J.F.Dockes # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -34,6 +34,7 @@ filetype=dejavu + #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the @@ -93,6 +94,9 @@ then senderror INPUTNOSUCHFILE "$infile" fi +# protect access to our temp files and directories +umask 77 + ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE diff --git a/src/filters/rcldoc b/src/filters/rcldoc index c07c4620..c74a1dc4 100755 --- a/src/filters/rcldoc +++ b/src/filters/rcldoc @@ -1,5 +1,5 @@ #!/bin/sh -# @(#$Id: rcldoc,v 1.7 2007-02-06 15:08:22 dockes Exp $ (C) 2004 J.F.Dockes +# @(#$Id: rcldoc,v 1.8 2007-06-08 13:51:08 dockes Exp $ (C) 2004 J.F.Dockes # Parts taken from Estraier: #================================================================ # Estraier: a personal full-text search system @@ -29,6 +29,7 @@ decoder="antiword -t -i 1 -m UTF-8" + #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the @@ -88,6 +89,9 @@ then senderror INPUTNOSUCHFILE "$infile" fi +# protect access to our temp files and directories +umask 77 + ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE diff --git a/src/filters/rcldvi b/src/filters/rcldvi index 27d550da..d696c4ad 100755 --- a/src/filters/rcldvi +++ b/src/filters/rcldvi @@ -1,5 +1,5 @@ #!/bin/sh -# @(#$Id: rcldvi,v 1.5 2007-02-08 17:03:12 dockes Exp $ (C) 2006 J.F.Dockes +# @(#$Id: rcldvi,v 1.6 2007-06-08 13:51:08 dockes Exp $ (C) 2006 J.F.Dockes # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -31,6 +31,7 @@ filetype=dvi + #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the @@ -90,6 +91,9 @@ then senderror INPUTNOSUCHFILE "$infile" fi +# protect access to our temp files and directories +umask 77 + ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE diff --git a/src/filters/rclgaim b/src/filters/rclgaim index d122deaf..029dc5cd 100755 --- a/src/filters/rclgaim +++ b/src/filters/rclgaim @@ -1,5 +1,5 @@ #!/bin/sh -# @(#$Id: rclgaim,v 1.3 2007-02-06 15:08:22 dockes Exp $ (C) 2004 J.F.Dockes +# @(#$Id: rclgaim,v 1.4 2007-06-08 13:51:08 dockes Exp $ (C) 2004 J.F.Dockes # Parts taken from Estraier: #================================================================ # Estraier: a personal full-text search system @@ -20,6 +20,7 @@ filetype="gaim log" + #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the @@ -79,6 +80,9 @@ then senderror INPUTNOSUCHFILE "$infile" fi +# protect access to our temp files and directories +umask 77 + ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE diff --git a/src/filters/rcljpeg b/src/filters/rcljpeg index b03effa0..0e4bea16 100755 --- a/src/filters/rcljpeg +++ b/src/filters/rcljpeg @@ -8,6 +8,7 @@ decoder=exiftool #decoder=ps2ascii filetype=jpeg + #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the @@ -67,6 +68,9 @@ then senderror INPUTNOSUCHFILE "$infile" fi +# protect access to our temp files and directories +umask 77 + ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE diff --git a/src/filters/rcllyx b/src/filters/rcllyx index b8f38cd4..359b946d 100755 --- a/src/filters/rcllyx +++ b/src/filters/rcllyx @@ -1,5 +1,5 @@ #!/bin/sh -# @(#$Id: rcllyx,v 1.5 2007-02-06 15:08:22 dockes Exp $ (C) 2004 J.F.Dockes +# @(#$Id: rcllyx,v 1.6 2007-06-08 13:51:09 dockes Exp $ (C) 2004 J.F.Dockes # There may still be code from Estraier in here: #================================================================ # Estraier: a personal full-text search system @@ -33,6 +33,7 @@ filetype=lyx + #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the @@ -92,6 +93,9 @@ then senderror INPUTNOSUCHFILE "$infile" fi +# protect access to our temp files and directories +umask 77 + ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE diff --git a/src/filters/rclman b/src/filters/rclman index a7632c85..440e6d21 100755 --- a/src/filters/rclman +++ b/src/filters/rclman @@ -1,5 +1,5 @@ #!/bin/sh -# @(#$Id: rclman,v 1.1 2007-02-06 15:08:22 dockes Exp $ (C) 2004 J.F.Dockes +# @(#$Id: rclman,v 1.2 2007-06-08 13:51:09 dockes Exp $ (C) 2004 J.F.Dockes # Parts taken from Estraier: #================================================================ # Estraier: a personal full-text search system @@ -22,6 +22,7 @@ filetype=man + #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the @@ -81,6 +82,9 @@ then senderror INPUTNOSUCHFILE "$infile" fi +# protect access to our temp files and directories +umask 77 + ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE diff --git a/src/filters/rclmedia b/src/filters/rclmedia index 99c30600..83644a09 100755 --- a/src/filters/rclmedia +++ b/src/filters/rclmedia @@ -1,5 +1,5 @@ #!/bin/sh -# @(#$Id: rclmedia,v 1.3 2007-02-06 15:08:22 dockes Exp $ (C) 2004 J.F.Dockes +# @(#$Id: rclmedia,v 1.4 2007-06-08 13:51:09 dockes Exp $ (C) 2004 J.F.Dockes #================================================================ # rclmedia # Handle media files for recoll. This currently returns an empty @@ -13,6 +13,7 @@ progname="rclmedia" filetype=media + #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the @@ -72,6 +73,9 @@ then senderror INPUTNOSUCHFILE "$infile" fi +# protect access to our temp files and directories +umask 77 + ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE diff --git a/src/filters/rclpdf b/src/filters/rclpdf index e60bbac8..bcaa45a4 100755 --- a/src/filters/rclpdf +++ b/src/filters/rclpdf @@ -1,5 +1,5 @@ #!/bin/sh -# @(#$Id: rclpdf,v 1.8 2007-02-06 15:08:22 dockes Exp $ (C) 2004 J.F.Dockes +# @(#$Id: rclpdf,v 1.9 2007-06-08 13:51:09 dockes Exp $ (C) 2004 J.F.Dockes # This is copied almost verbatim from Estraier: #================================================================ # Estraier: a personal full-text search system @@ -35,6 +35,7 @@ filetype=pdf + #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the @@ -94,6 +95,9 @@ then senderror INPUTNOSUCHFILE "$infile" fi +# protect access to our temp files and directories +umask 77 + ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE diff --git a/src/filters/rclppt b/src/filters/rclppt index 538652b5..d6fabf84 100755 --- a/src/filters/rclppt +++ b/src/filters/rclppt @@ -1,5 +1,5 @@ #!/bin/sh -# @(#$Id: rclppt,v 1.2 2007-02-06 15:08:22 dockes Exp $ (C) 2004 J.F.Dockes +# @(#$Id: rclppt,v 1.3 2007-06-08 13:51:09 dockes Exp $ (C) 2004 J.F.Dockes # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or @@ -32,6 +32,7 @@ filetype=powerpoint + #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the @@ -91,6 +92,9 @@ then senderror INPUTNOSUCHFILE "$infile" fi +# protect access to our temp files and directories +umask 77 + ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE diff --git a/src/filters/rclps b/src/filters/rclps index 36043996..a585fcac 100755 --- a/src/filters/rclps +++ b/src/filters/rclps @@ -1,5 +1,5 @@ #!/bin/sh -# @(#$Id: rclps,v 1.9 2007-02-06 15:08:23 dockes Exp $ (C) 2004 J.F.Dockes +# @(#$Id: rclps,v 1.10 2007-06-08 13:51:09 dockes Exp $ (C) 2004 J.F.Dockes # Parts taken from Estraier: #================================================================ # Estraier: a personal full-text search system @@ -29,6 +29,7 @@ filetype=postscript + #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the @@ -88,6 +89,9 @@ then senderror INPUTNOSUCHFILE "$infile" fi +# protect access to our temp files and directories +umask 77 + ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE diff --git a/src/filters/rclrtf b/src/filters/rclrtf index c7ca7fb2..89afd190 100755 --- a/src/filters/rclrtf +++ b/src/filters/rclrtf @@ -1,5 +1,5 @@ #!/bin/sh -# @(#$Id: rclrtf,v 1.4 2007-02-06 15:08:23 dockes Exp $ (C) 2004 J.F.Dockes +# @(#$Id: rclrtf,v 1.5 2007-06-08 13:51:09 dockes Exp $ (C) 2004 J.F.Dockes # Some inspiration from estraier #================================================================ # rclrtf @@ -15,6 +15,7 @@ filetype=rtf + #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the @@ -74,6 +75,9 @@ then senderror INPUTNOSUCHFILE "$infile" fi +# protect access to our temp files and directories +umask 77 + ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE diff --git a/src/filters/rclscribus b/src/filters/rclscribus index 46aa4056..daeac955 100755 --- a/src/filters/rclscribus +++ b/src/filters/rclscribus @@ -1,5 +1,5 @@ #!/bin/sh -# @(#$Id: rclscribus,v 1.3 2007-02-06 15:08:23 dockes Exp $ (C) 2004 J.F.Dockes +# @(#$Id: rclscribus,v 1.4 2007-06-08 13:51:09 dockes Exp $ (C) 2004 J.F.Dockes # There may still be code from Estraier in here: #================================================================ # Estraier: a personal full-text search system @@ -22,6 +22,7 @@ filetype=Scribus + #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the @@ -81,6 +82,9 @@ then senderror INPUTNOSUCHFILE "$infile" fi +# protect access to our temp files and directories +umask 77 + ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE diff --git a/src/filters/rclsoff b/src/filters/rclsoff index 56cdd0b4..e674a50a 100755 --- a/src/filters/rclsoff +++ b/src/filters/rclsoff @@ -1,5 +1,5 @@ #!/bin/sh -# @(#$Id: rclsoff,v 1.9 2007-02-06 15:08:23 dockes Exp $ (C) 2004 J.F.Dockes +# @(#$Id: rclsoff,v 1.10 2007-06-08 13:51:09 dockes Exp $ (C) 2004 J.F.Dockes # Parts taken from Estraier: #================================================================ # Estraier: a personal full-text search system @@ -20,6 +20,7 @@ filetype=openoffice + #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the @@ -79,6 +80,9 @@ then senderror INPUTNOSUCHFILE "$infile" fi +# protect access to our temp files and directories +umask 77 + ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE diff --git a/src/filters/rclxls b/src/filters/rclxls index 3fc0ad4a..6d2c955a 100755 --- a/src/filters/rclxls +++ b/src/filters/rclxls @@ -1,5 +1,5 @@ #!/bin/sh -# @(#$Id: rclxls,v 1.3 2007-02-06 15:08:23 dockes Exp $ (C) 2004 J.F.Dockes +# @(#$Id: rclxls,v 1.4 2007-06-08 13:51:09 dockes Exp $ (C) 2004 J.F.Dockes # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or @@ -33,6 +33,7 @@ filetype=excel + #RECFILTCOMMONCODE ############################################################################## # !! Leave the previous line unmodified!! Code imported from the @@ -92,6 +93,9 @@ then senderror INPUTNOSUCHFILE "$infile" fi +# protect access to our temp files and directories +umask 77 + ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE diff --git a/src/filters/recfiltcommon b/src/filters/recfiltcommon index eb6be5bc..72775568 100755 --- a/src/filters/recfiltcommon +++ b/src/filters/recfiltcommon @@ -58,6 +58,9 @@ then senderror INPUTNOSUCHFILE "$infile" fi +# protect access to our temp files and directories +umask 77 + ############################################################################## # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE diff --git a/src/sampleconf/mimeconf b/src/sampleconf/mimeconf index 94bf24ba..af47d6f6 100644 --- a/src/sampleconf/mimeconf +++ b/src/sampleconf/mimeconf @@ -1,4 +1,4 @@ -# @(#$Id: mimeconf,v 1.26 2007-06-08 12:32:35 dockes Exp $ (C) 2004 J.F.Dockes +# @(#$Id: mimeconf,v 1.27 2007-06-08 13:51:09 dockes Exp $ (C) 2004 J.F.Dockes # Recoll : associations of mime types to processing filters. # There are different sections for decompression, 'interning' for indexing @@ -43,6 +43,7 @@ application/vnd.sun.xml.writer.global = exec rclsoff application/vnd.sun.xml.writer.template = exec rclsoff application/x-dvi = exec rcldvi application/x-lyx = exec rcllyx +application/x-kword = exec rclkwd application/x-scribus = exec rclscribus audio/mpeg = exec rclmedia image/vnd.djvu = exec rcldjvu diff --git a/src/sampleconf/mimemap b/src/sampleconf/mimemap index abd90830..648a97dd 100644 --- a/src/sampleconf/mimemap +++ b/src/sampleconf/mimemap @@ -1,4 +1,4 @@ -# @(#$Id: mimemap,v 1.21 2007-02-06 18:01:16 dockes Exp $ (C) 2004 J.F.Dockes +# @(#$Id: mimemap,v 1.22 2007-06-08 13:51:09 dockes Exp $ (C) 2004 J.F.Dockes # Recoll: associations of file name extensions to mime types .txt = text/plain @@ -58,6 +58,8 @@ .sla = application/x-scribus .scd = application/x-scribus +.kwd = application/x-kword + .wpd = application/vnd.wordperfect .rtf = text/rtf