| 1 |
|
| 2 |
> Subject: htdig: HTDIG: Searching Word files |
| 3 |
> To: [email protected] |
| 4 |
> From: Richard Jones <[email protected]> |
| 5 |
> Date: Tue, 15 Jul 1997 12:44:03 +0100 |
| 6 |
> |
| 7 |
> I'm currently trying to hack together a script to search |
| 8 |
> Word files. I have a little program called `catdoc' (attached) |
| 9 |
> which takes Word files and turns them into passable text files. |
| 10 |
> What I did was write a shell script around this called |
| 11 |
> `htparsedoc' (also attached) and add it as an external |
| 12 |
> parser: |
| 13 |
> |
| 14 |
> --- /usr/local/lib/htdig/conf/htdig.conf --- |
| 15 |
> |
| 16 |
> # External parser for Word documents. |
| 17 |
> external_parsers: "applications/msword" |
| 18 |
> "/usr/local/lib/htdig/bin/htparsedoc" |
| 19 |
> |
| 20 |
> This script produces output like this: |
| 21 |
> |
| 22 |
> t Word document http://annexia.imcl.com/test/comm.doc |
| 23 |
> w INmEDIA 1 - |
| 24 |
> w Investment 2 - |
| 25 |
> w Ltd 3 - |
| 26 |
> w Applications 4 - |
| 27 |
> w Subproject 5 - |
| 28 |
> w Terms 6 - |
| 29 |
> w of 7 - |
| 30 |
> [...] |
| 31 |
> w Needed 994 - |
| 32 |
> w Tbd 995 - |
| 33 |
> w Resources 996 - |
| 34 |
> w Needed 997 - |
| 35 |
> w Tbd 998 - |
| 36 |
> w i 1000 - |
| 37 |
> |
| 38 |
|