kword support

This commit is contained in:
dockes 2007-06-08 13:51:09 +00:00
parent 9076303794
commit e4e3b84105
18 changed files with 82 additions and 16 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh #!/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 # 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 # it under the terms of the GNU General Public License as published by
@ -34,6 +34,7 @@ filetype=dejavu
#RECFILTCOMMONCODE #RECFILTCOMMONCODE
############################################################################## ##############################################################################
# !! Leave the previous line unmodified!! Code imported from the # !! Leave the previous line unmodified!! Code imported from the
@ -93,6 +94,9 @@ then
senderror INPUTNOSUCHFILE "$infile" senderror INPUTNOSUCHFILE "$infile"
fi fi
# protect access to our temp files and directories
umask 77
############################################################################## ##############################################################################
# !! Leave the following line unmodified ! # !! Leave the following line unmodified !
#ENDRECFILTCOMMONCODE #ENDRECFILTCOMMONCODE

View File

@ -1,5 +1,5 @@
#!/bin/sh #!/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: # Parts taken from Estraier:
#================================================================ #================================================================
# Estraier: a personal full-text search system # Estraier: a personal full-text search system
@ -29,6 +29,7 @@ decoder="antiword -t -i 1 -m UTF-8"
#RECFILTCOMMONCODE #RECFILTCOMMONCODE
############################################################################## ##############################################################################
# !! Leave the previous line unmodified!! Code imported from the # !! Leave the previous line unmodified!! Code imported from the
@ -88,6 +89,9 @@ then
senderror INPUTNOSUCHFILE "$infile" senderror INPUTNOSUCHFILE "$infile"
fi fi
# protect access to our temp files and directories
umask 77
############################################################################## ##############################################################################
# !! Leave the following line unmodified ! # !! Leave the following line unmodified !
#ENDRECFILTCOMMONCODE #ENDRECFILTCOMMONCODE

View File

@ -1,5 +1,5 @@
#!/bin/sh #!/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 # 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 # it under the terms of the GNU General Public License as published by
@ -31,6 +31,7 @@ filetype=dvi
#RECFILTCOMMONCODE #RECFILTCOMMONCODE
############################################################################## ##############################################################################
# !! Leave the previous line unmodified!! Code imported from the # !! Leave the previous line unmodified!! Code imported from the
@ -90,6 +91,9 @@ then
senderror INPUTNOSUCHFILE "$infile" senderror INPUTNOSUCHFILE "$infile"
fi fi
# protect access to our temp files and directories
umask 77
############################################################################## ##############################################################################
# !! Leave the following line unmodified ! # !! Leave the following line unmodified !
#ENDRECFILTCOMMONCODE #ENDRECFILTCOMMONCODE

View File

@ -1,5 +1,5 @@
#!/bin/sh #!/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: # Parts taken from Estraier:
#================================================================ #================================================================
# Estraier: a personal full-text search system # Estraier: a personal full-text search system
@ -20,6 +20,7 @@ filetype="gaim log"
#RECFILTCOMMONCODE #RECFILTCOMMONCODE
############################################################################## ##############################################################################
# !! Leave the previous line unmodified!! Code imported from the # !! Leave the previous line unmodified!! Code imported from the
@ -79,6 +80,9 @@ then
senderror INPUTNOSUCHFILE "$infile" senderror INPUTNOSUCHFILE "$infile"
fi fi
# protect access to our temp files and directories
umask 77
############################################################################## ##############################################################################
# !! Leave the following line unmodified ! # !! Leave the following line unmodified !
#ENDRECFILTCOMMONCODE #ENDRECFILTCOMMONCODE

View File

@ -8,6 +8,7 @@ decoder=exiftool
#decoder=ps2ascii #decoder=ps2ascii
filetype=jpeg filetype=jpeg
#RECFILTCOMMONCODE #RECFILTCOMMONCODE
############################################################################## ##############################################################################
# !! Leave the previous line unmodified!! Code imported from the # !! Leave the previous line unmodified!! Code imported from the
@ -67,6 +68,9 @@ then
senderror INPUTNOSUCHFILE "$infile" senderror INPUTNOSUCHFILE "$infile"
fi fi
# protect access to our temp files and directories
umask 77
############################################################################## ##############################################################################
# !! Leave the following line unmodified ! # !! Leave the following line unmodified !
#ENDRECFILTCOMMONCODE #ENDRECFILTCOMMONCODE

View File

@ -1,5 +1,5 @@
#!/bin/sh #!/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: # There may still be code from Estraier in here:
#================================================================ #================================================================
# Estraier: a personal full-text search system # Estraier: a personal full-text search system
@ -33,6 +33,7 @@ filetype=lyx
#RECFILTCOMMONCODE #RECFILTCOMMONCODE
############################################################################## ##############################################################################
# !! Leave the previous line unmodified!! Code imported from the # !! Leave the previous line unmodified!! Code imported from the
@ -92,6 +93,9 @@ then
senderror INPUTNOSUCHFILE "$infile" senderror INPUTNOSUCHFILE "$infile"
fi fi
# protect access to our temp files and directories
umask 77
############################################################################## ##############################################################################
# !! Leave the following line unmodified ! # !! Leave the following line unmodified !
#ENDRECFILTCOMMONCODE #ENDRECFILTCOMMONCODE

View File

@ -1,5 +1,5 @@
#!/bin/sh #!/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: # Parts taken from Estraier:
#================================================================ #================================================================
# Estraier: a personal full-text search system # Estraier: a personal full-text search system
@ -22,6 +22,7 @@ filetype=man
#RECFILTCOMMONCODE #RECFILTCOMMONCODE
############################################################################## ##############################################################################
# !! Leave the previous line unmodified!! Code imported from the # !! Leave the previous line unmodified!! Code imported from the
@ -81,6 +82,9 @@ then
senderror INPUTNOSUCHFILE "$infile" senderror INPUTNOSUCHFILE "$infile"
fi fi
# protect access to our temp files and directories
umask 77
############################################################################## ##############################################################################
# !! Leave the following line unmodified ! # !! Leave the following line unmodified !
#ENDRECFILTCOMMONCODE #ENDRECFILTCOMMONCODE

View File

@ -1,5 +1,5 @@
#!/bin/sh #!/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 # rclmedia
# Handle media files for recoll. This currently returns an empty # Handle media files for recoll. This currently returns an empty
@ -13,6 +13,7 @@ progname="rclmedia"
filetype=media filetype=media
#RECFILTCOMMONCODE #RECFILTCOMMONCODE
############################################################################## ##############################################################################
# !! Leave the previous line unmodified!! Code imported from the # !! Leave the previous line unmodified!! Code imported from the
@ -72,6 +73,9 @@ then
senderror INPUTNOSUCHFILE "$infile" senderror INPUTNOSUCHFILE "$infile"
fi fi
# protect access to our temp files and directories
umask 77
############################################################################## ##############################################################################
# !! Leave the following line unmodified ! # !! Leave the following line unmodified !
#ENDRECFILTCOMMONCODE #ENDRECFILTCOMMONCODE

View File

@ -1,5 +1,5 @@
#!/bin/sh #!/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: # This is copied almost verbatim from Estraier:
#================================================================ #================================================================
# Estraier: a personal full-text search system # Estraier: a personal full-text search system
@ -35,6 +35,7 @@ filetype=pdf
#RECFILTCOMMONCODE #RECFILTCOMMONCODE
############################################################################## ##############################################################################
# !! Leave the previous line unmodified!! Code imported from the # !! Leave the previous line unmodified!! Code imported from the
@ -94,6 +95,9 @@ then
senderror INPUTNOSUCHFILE "$infile" senderror INPUTNOSUCHFILE "$infile"
fi fi
# protect access to our temp files and directories
umask 77
############################################################################## ##############################################################################
# !! Leave the following line unmodified ! # !! Leave the following line unmodified !
#ENDRECFILTCOMMONCODE #ENDRECFILTCOMMONCODE

View File

@ -1,5 +1,5 @@
#!/bin/sh #!/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 # 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 # it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or # the Free Software Foundation; either version 2 of the License, or
@ -32,6 +32,7 @@ filetype=powerpoint
#RECFILTCOMMONCODE #RECFILTCOMMONCODE
############################################################################## ##############################################################################
# !! Leave the previous line unmodified!! Code imported from the # !! Leave the previous line unmodified!! Code imported from the
@ -91,6 +92,9 @@ then
senderror INPUTNOSUCHFILE "$infile" senderror INPUTNOSUCHFILE "$infile"
fi fi
# protect access to our temp files and directories
umask 77
############################################################################## ##############################################################################
# !! Leave the following line unmodified ! # !! Leave the following line unmodified !
#ENDRECFILTCOMMONCODE #ENDRECFILTCOMMONCODE

View File

@ -1,5 +1,5 @@
#!/bin/sh #!/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: # Parts taken from Estraier:
#================================================================ #================================================================
# Estraier: a personal full-text search system # Estraier: a personal full-text search system
@ -29,6 +29,7 @@ filetype=postscript
#RECFILTCOMMONCODE #RECFILTCOMMONCODE
############################################################################## ##############################################################################
# !! Leave the previous line unmodified!! Code imported from the # !! Leave the previous line unmodified!! Code imported from the
@ -88,6 +89,9 @@ then
senderror INPUTNOSUCHFILE "$infile" senderror INPUTNOSUCHFILE "$infile"
fi fi
# protect access to our temp files and directories
umask 77
############################################################################## ##############################################################################
# !! Leave the following line unmodified ! # !! Leave the following line unmodified !
#ENDRECFILTCOMMONCODE #ENDRECFILTCOMMONCODE

View File

@ -1,5 +1,5 @@
#!/bin/sh #!/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 # Some inspiration from estraier
#================================================================ #================================================================
# rclrtf # rclrtf
@ -15,6 +15,7 @@ filetype=rtf
#RECFILTCOMMONCODE #RECFILTCOMMONCODE
############################################################################## ##############################################################################
# !! Leave the previous line unmodified!! Code imported from the # !! Leave the previous line unmodified!! Code imported from the
@ -74,6 +75,9 @@ then
senderror INPUTNOSUCHFILE "$infile" senderror INPUTNOSUCHFILE "$infile"
fi fi
# protect access to our temp files and directories
umask 77
############################################################################## ##############################################################################
# !! Leave the following line unmodified ! # !! Leave the following line unmodified !
#ENDRECFILTCOMMONCODE #ENDRECFILTCOMMONCODE

View File

@ -1,5 +1,5 @@
#!/bin/sh #!/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: # There may still be code from Estraier in here:
#================================================================ #================================================================
# Estraier: a personal full-text search system # Estraier: a personal full-text search system
@ -22,6 +22,7 @@ filetype=Scribus
#RECFILTCOMMONCODE #RECFILTCOMMONCODE
############################################################################## ##############################################################################
# !! Leave the previous line unmodified!! Code imported from the # !! Leave the previous line unmodified!! Code imported from the
@ -81,6 +82,9 @@ then
senderror INPUTNOSUCHFILE "$infile" senderror INPUTNOSUCHFILE "$infile"
fi fi
# protect access to our temp files and directories
umask 77
############################################################################## ##############################################################################
# !! Leave the following line unmodified ! # !! Leave the following line unmodified !
#ENDRECFILTCOMMONCODE #ENDRECFILTCOMMONCODE

View File

@ -1,5 +1,5 @@
#!/bin/sh #!/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: # Parts taken from Estraier:
#================================================================ #================================================================
# Estraier: a personal full-text search system # Estraier: a personal full-text search system
@ -20,6 +20,7 @@ filetype=openoffice
#RECFILTCOMMONCODE #RECFILTCOMMONCODE
############################################################################## ##############################################################################
# !! Leave the previous line unmodified!! Code imported from the # !! Leave the previous line unmodified!! Code imported from the
@ -79,6 +80,9 @@ then
senderror INPUTNOSUCHFILE "$infile" senderror INPUTNOSUCHFILE "$infile"
fi fi
# protect access to our temp files and directories
umask 77
############################################################################## ##############################################################################
# !! Leave the following line unmodified ! # !! Leave the following line unmodified !
#ENDRECFILTCOMMONCODE #ENDRECFILTCOMMONCODE

View File

@ -1,5 +1,5 @@
#!/bin/sh #!/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 # 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 # it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or # the Free Software Foundation; either version 2 of the License, or
@ -33,6 +33,7 @@ filetype=excel
#RECFILTCOMMONCODE #RECFILTCOMMONCODE
############################################################################## ##############################################################################
# !! Leave the previous line unmodified!! Code imported from the # !! Leave the previous line unmodified!! Code imported from the
@ -92,6 +93,9 @@ then
senderror INPUTNOSUCHFILE "$infile" senderror INPUTNOSUCHFILE "$infile"
fi fi
# protect access to our temp files and directories
umask 77
############################################################################## ##############################################################################
# !! Leave the following line unmodified ! # !! Leave the following line unmodified !
#ENDRECFILTCOMMONCODE #ENDRECFILTCOMMONCODE

View File

@ -58,6 +58,9 @@ then
senderror INPUTNOSUCHFILE "$infile" senderror INPUTNOSUCHFILE "$infile"
fi fi
# protect access to our temp files and directories
umask 77
############################################################################## ##############################################################################
# !! Leave the following line unmodified ! # !! Leave the following line unmodified !
#ENDRECFILTCOMMONCODE #ENDRECFILTCOMMONCODE

View File

@ -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. # Recoll : associations of mime types to processing filters.
# There are different sections for decompression, 'interning' for indexing # 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/vnd.sun.xml.writer.template = exec rclsoff
application/x-dvi = exec rcldvi application/x-dvi = exec rcldvi
application/x-lyx = exec rcllyx application/x-lyx = exec rcllyx
application/x-kword = exec rclkwd
application/x-scribus = exec rclscribus application/x-scribus = exec rclscribus
audio/mpeg = exec rclmedia audio/mpeg = exec rclmedia
image/vnd.djvu = exec rcldjvu image/vnd.djvu = exec rcldjvu

View File

@ -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 # Recoll: associations of file name extensions to mime types
.txt = text/plain .txt = text/plain
@ -58,6 +58,8 @@
.sla = application/x-scribus .sla = application/x-scribus
.scd = application/x-scribus .scd = application/x-scribus
.kwd = application/x-kword
.wpd = application/vnd.wordperfect .wpd = application/vnd.wordperfect
.rtf = text/rtf .rtf = text/rtf