Skip to main content.
home | support | download

Back to List Archive

Re: swish

From: Philip Mak <pmak(at)not-real.aaanime.net>
Date: Thu May 31 2001 - 13:31:08 GMT
On Thu, 31 May 2001, Bill Moseley wrote:

> Yes.  There will be an example CGI script in the source distribution
> that will provide some form of term highlighting, and context output
> (showing a few words on either side of the matched term(s)).
>
> Don't get too excited, as there are some open issues.

A suggestion for the script: Instead of just using SWISH-E's
StoreDescription feature, how about allowing a user-defined function to be
provided that takes the matched document name as the input, and returns
the contents of the document (converted to plain text if necessary) to the
script, which then hilights the right places?

This way, people can use your example script no matter how the original
document is stored (text file, Berkeley DB, MySQL, etc.).

-Philip Mak (pmak@aaanime.net)
Received on Thu May 31 13:32:05 2001