According to Gasmi Salim:
> I have wrote a quick patch for htdig 3.1.3 to add French accent support.
>
> You can see the result at :
>
> http://www.gasmi.net (link 'Search in my Site') or
> http://www.lvo.com/INDEX.html
>
> You can try, french words with or without accents, it works.
>
> I know a lot of people were searching for a possible solution.
> If you are insterested with this patch a howto is available at
> http://www.gasmi.net/htdig-patch
Yikes! I have a hard time believing that your patch_accents program would
not start clobbering all sorts of data in db.docdb that it shouldn't.
I'm assuming the whole point of this is to strip out the accents from
the document excerpts, so that excerpt highlighting works for unaccented
search words.
If so, why not just strip out the accents on the fly in
htsearch/Display.cc, before doing any searches on the excerpt, or
better yet, just poke in some entries in the translate table, set in
StringMatch::IgnoreCase() (in htlib/StringMatch.cc), to map accented
letters to equivalent lower-case unaccented letters? The letter mapping
in String.cc could also be done much more efficiently with a mapping
table.
The best approach, though, would be to define a new "accent" fuzzy match
algorithm, which, when given a word, would search the word database
for all accented and unaccented equivalents. The main engine of this
would be very much like the current htfuzzy/Substring.cc algorithm.
It would be more work, but you'd have something that would be selectable
by the search_algorithm config attribute, and would fit in well with
the existing code.
--
Gilles R. Detillieux E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba Phone: (204)789-3766
Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930
------------------------------------
To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED] containing the single word unsubscribe in
the SUBJECT of the message.