I haven't received any replies to this question, so let me ask something
slightly different.  I need my search_rewrite_rule to contain data
that is only obtainable via an external script.  Is there a way to call
such a script from within the htdig.conf file?

Eric



[EMAIL PROTECTED] sent this on Dec 5:

>
>I am using htdig to index DjVu files.  To do this, I create text dumps
>of each DjVu file (eg. filename.txt for each filename.djvu file), and
>then index these text files.  Then I add a search_rewrite_rule to my
>htdig.conf file so that results point to the djvu files instead of the
>text files.  It works quite nicely.  I know that I can probably dump the
>text on the fly instead of generating separate text files, but this works
>for the time being.
>
>Now I want to try to get htdig to pass variables to the Djvu plugin so
>that search hits will get highlighted.  For those of you who don't use
>DjVu, let me explain a bit about how highlighting works. Since DjVu files
>are really images, with an optional hidden text layer, highlighting is
>done via a series of coordinates.  For instance, if I add
>"?DJVUOPTS&HIGHLIGHT=270,3889,500,225" to the end of the URL, it will
>highlight the word that is at that location.  To see this in action, look
>here:
>
>       
> http://crony.rutgers.edu/letter//RFT-7.10.18-p1.djvu?DJVUOPTS&HIGHLIGHT=270,3889,500,225
>
>I have another text file that lists coordinates for each word as follows:
>
>       (word 270 3889 500 225 "Dear")
>
>So my questions is how to grab those coordinates, and tack them onto the
>returned URL in an automated fashion.  In other words, if a user searches
>for "dear", I need a way to get the coordinates from the file, and then
>add them to the URL using the correct syntax. I suppose this is more of a
>scripting question then an htdig problem, but hopefully list members will
>have some suggestions.
>
>Thanks in advance,
>
>       Eric Luhrs
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: IBM Linux Tutorials.
>Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
>Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
>Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
>_______________________________________________
>ht://Dig general mailing list: <[EMAIL PROTECTED]>
>ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
>List information (subscribe/unsubscribe, etc.)
>https://lists.sourceforge.net/lists/listinfo/htdig-general
>



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
ht://Dig general mailing list: <[EMAIL PROTECTED]>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general

Reply via email to