most of adv search working. Still need subtree/filename filters

This commit is contained in:
dockes
2005-10-19 10:21:48 +00:00
parent 04a926456a
commit ce740a26ad
15 changed files with 410 additions and 151 deletions
+26 -1
View File
@@ -1,5 +1,5 @@
#!/bin/sh
# @(#$Id: rcldoc,v 1.1 2005-02-09 12:07:30 dockes Exp $ (C) 2004 J.F.Dockes
# @(#$Id: rcldoc,v 1.2 2005-10-19 10:21:48 dockes Exp $ (C) 2004 J.F.Dockes
# Parts taken from Estraier:
#================================================================
# Estraier: a personal full-text search system
@@ -35,6 +35,31 @@ fi
infile="$1"
iscmd()
{
cmd=$1
case $cmd in
*/*)
if test -x $cmd ; then return 0; else return 1; fi ;;
*)
IFS=: ; set -- $PATH; unset IFS
for d in $* ; do test -x $d/$cmd && return 0; done
return 1 ;;
esac
}
checkcmds()
{
for cmd in $*;do
if iscmd $cmd
then
else
echo $cmd not found 1>&2
exit 1
fi
done
}
checkcmds awk antiword iconv
# check the input file existence
if test ! -f "$infile"
then
+26 -3
View File
@@ -1,5 +1,5 @@
#!/bin/sh
# @(#$Id: rclpdf,v 1.1 2005-02-01 17:20:05 dockes Exp $ (C) 2004 J.F.Dockes
# @(#$Id: rclpdf,v 1.2 2005-10-19 10:21:48 dockes Exp $ (C) 2004 J.F.Dockes
# This is copied almost verbatim from Estraier:
#================================================================
# Estraier: a personal full-text search system
@@ -33,6 +33,31 @@ then
exit 1
fi
iscmd()
{
cmd=$1
case $cmd in
*/*)
if test -x $cmd ; then return 0; else return 1; fi ;;
*)
IFS=: ; set -- $PATH; unset IFS
for d in $* ; do test -x $d/$cmd && return 0; done
return 1 ;;
esac
}
checkcmds()
{
for cmd in $*;do
if iscmd $cmd
then
else
echo $cmd not found 1>&2
exit 1
fi
done
}
checkcmds pdftotext iconv awk
# output the result
pdftotext -raw -htmlmeta -enc UTF-8 -eol unix -q "$infile" - |
iconv -f UTF-8 -t UTF-8 -c -s |
@@ -80,5 +105,3 @@ BEGIN {
# didn't really understand its use as iconv -c is supposed to fix the
# encoding anyway
# exit normally
exit 0
+26 -3
View File
@@ -1,5 +1,5 @@
#!/bin/sh
# @(#$Id: rclps,v 1.1 2005-02-02 17:57:08 dockes Exp $ (C) 2004 J.F.Dockes
# @(#$Id: rclps,v 1.2 2005-10-19 10:21:48 dockes Exp $ (C) 2004 J.F.Dockes
# Parts taken from Estraier:
#================================================================
# Estraier: a personal full-text search system
@@ -34,6 +34,31 @@ fi
infile="$1"
iscmd()
{
cmd=$1
case $cmd in
*/*)
if test -x $cmd ; then return 0; else return 1; fi ;;
*)
IFS=: ; set -- $PATH; unset IFS
for d in $* ; do test -x $d/$cmd && return 0; done
return 1 ;;
esac
}
checkcmds()
{
for cmd in $*;do
if iscmd $cmd
then
else
echo $cmd not found 1>&2
exit 1
fi
done
}
checkcmds $decoder iconv awk
# check the input file existence
if test ! -f "$infile"
then
@@ -69,5 +94,3 @@ END {
printf("</p></body></html>\n");
}' | iconv -f iso-8859-1 -t UTF-8 -c -s
# exit normally
exit 0
+26 -1
View File
@@ -1,5 +1,5 @@
#!/bin/sh
# @(#$Id: rclsoff,v 1.1 2005-02-09 12:07:30 dockes Exp $ (C) 2004 J.F.Dockes
# @(#$Id: rclsoff,v 1.2 2005-10-19 10:21:48 dockes Exp $ (C) 2004 J.F.Dockes
# Parts taken from Estraier:
#================================================================
# Estraier: a personal full-text search system
@@ -28,6 +28,31 @@ fi
infile="$1"
iscmd()
{
cmd=$1
case $cmd in
*/*)
if test -x $cmd ; then return 0; else return 1; fi ;;
*)
IFS=: ; set -- $PATH; unset IFS
for d in $* ; do test -x $d/$cmd && return 0; done
return 1 ;;
esac
}
checkcmds()
{
for cmd in $*;do
if iscmd $cmd
then
else
echo $cmd not found 1>&2
exit 1
fi
done
}
checkcmds awk iconv unzip
# check the input file existence
if test ! -f "$infile"
then