Gossamer Forum
Home : Products : Links 2.0 : Customization :

Re: Non-English Mod for search.cgi

Quote Reply
Re: Non-English Mod for search.cgi In reply to
Hi everyone,
I've been monitoring this thread and others for some time now, hoping someone would come up with a reasonable solution to the problem. No luck :-)
So, this is the first time I'm posting something in the hope that anyone can solve our problem

First a bit of language knowledge so we can all be tuned to the same frequency.

In latin languages such as French, Spanish, and Portuguese, the only accentuated characters are vowels:
a à à e é, etc.

Apart from these, we have the " ñ " in Spanish and " ç " in Portuguese (don't no if ç is used in Spanish)

So here is what I would try if I was a Perl guru:

Let's concentrate on the English word, CONDUCTION
conducción in ES (and FR if I'm not mistaken)
condução in PT

If someone entered this keyword in a search query, the search script could change all accentuated characters to normal characters by:

$in{'query'} = (s/a/\á/g, $in{'query'});
$in{'query'} = (s/e/\é/g, $in{'query'});
$in{'query'} = (s/i/\í/g, $in{'query'});
$in{'query'} = (s/o/\ó/g, $in{'query'});
$in{'query'} = (s/u/\ú/g, $in{'query'});
etc, etc.

Then, it would do the same thing to the words searched by the script on the database searchable fields so the comparison would be done based on normal ASCII characters, although there are accentuated words inside the database fields.

So searching "conducción or conduccion (without the stress)" would match "conducción - conduccion - CONDUCCION, etc.", because what the script would really be looking for would be lowercase "conduccion", plain and simple.

The results page however, should present the actual stressed words and frases that exist in the database.

Any Perl guru around who is willing to follow this line of thought and give us a solution MOD?

Thanks

Jose
Subject Author Views Date
Thread Non-English Mod for search.cgi Diego 3856 Aug 29, 1999, 2:48 PM
Post Re: Non-English Mod for search.cgi
Diego 3829 Aug 29, 1999, 9:43 PM
Post Re: Non-English Mod for search.cgi
Diego 3827 Aug 30, 1999, 6:10 AM
Post Re: Non-English Mod for search.cgi
Bobsie 3834 Aug 30, 1999, 8:34 AM
Post Re: Non-English Mod for search.cgi
Bobsie 3828 Aug 30, 1999, 6:27 PM
Post Re: Non-English Mod for search.cgi
Diego 3859 Aug 30, 1999, 6:45 PM
Post Re: Non-English Mod for search.cgi
Bobsie 3846 Aug 30, 1999, 7:32 PM
Post Re: Non-English Mod for search.cgi
Diego 3827 Aug 31, 1999, 1:55 AM
Post Re: Non-English Mod for search.cgi
Diego 3834 Aug 31, 1999, 2:18 AM
Post Re: Non-English Mod for search.cgi
Diego 3829 Aug 31, 1999, 9:24 PM
Post Re: Non-English Mod for search.cgi
Diego 3829 Sep 1, 1999, 1:41 AM
Post Re: Non-English Mod for search.cgi
Jesus 3868 Sep 1, 1999, 8:34 AM
Post Re: Non-English Mod for search.cgi
Jesus 3831 Sep 1, 1999, 12:35 PM
Post Re: Non-English Mod for search.cgi
Diego 3832 Sep 1, 1999, 5:08 PM
Post Re: Non-English Mod for search.cgi
Diego 3831 Sep 3, 1999, 8:16 AM
Post Re: Non-English Mod for search.cgi
Diego 3843 Sep 4, 1999, 7:23 AM
Post Re: Non-English Mod for search.cgi
miguel 3839 Oct 17, 1999, 7:12 PM
Post Re: Non-English Mod for search.cgi
Diego 3849 Oct 18, 1999, 1:34 PM
Post Re: Non-English Mod for search.cgi
marcoBR 3832 Mar 25, 2000, 7:38 PM
Post Re: Non-English Mod for search.cgi
JAC 3830 Apr 29, 2000, 3:17 AM
Post Re: Non-English Mod for search.cgi
Stealth 3857 Apr 29, 2000, 8:16 AM