Received: from island.6tems.com ([195.77.213.6]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f2TIGbK68044 for ; Thu, 29 Mar 2001 13:16:38 -0500 (EST) (envelope-from teixi@6tems.com) Received: from thinkpad (teixi@[213.96.36.207]) (authenticated (0 bits)) by island.6tems.com (8.11.1/8.11.1/Islandmail 8.11.0-6) with ESMTP id f2TIBxU30168; Thu, 29 Mar 2001 20:11:59 +0200 X-Authentication-Warning: island.6tems.com: Host teixi@[213.96.36.207] claimed to be thinkpad Date: Thu, 29 Mar 2001 20:18:11 +0200 From: Jaume Teixi To: Peter Eisentraut Cc: pgsql-admin@postgresql.org, patrice.hede@idf.net Subject: Re: search on accents -> Why not include this function Message-Id: <20010329201811.3ea8c501.teixi@6tems.com> In-Reply-To: References: <20010329194435.45990809.teixi@6tems.com> X-Mailer: Sylpheed version 0.4.62 (GTK+ 1.2.9; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Archive-Number: 200103/238 X-Sequence-Number: 1087 But the thing is that you must explicity call this function in order to use it. Also in order to some stetics maybe you should call it accents_iso-8859-1 The thing is that this should be consider a big need for non-english languages. On a major approx also could be possible to modify it in order to accept parameters to include ('å','à') or ('ca_ES','fr_FR').... bests, jaume. > For the reason I cited above: it is a too abstract approach for many > languages and/or applications. For example in Swedish, a search for 'e' > should probably include 'é', since most users will not type that in > explicitly (it's not on the keyboard), but a search for 'a' should > normally not include 'å', since that it a completely separate letter (and > it is on the keyboard). Additionally, this particular implementation > seems to be ISO-8859-1 charset specific. I know a number of accented > letters that are a lot closer "siblings" to 'd' than 'ð' is. > > -- > Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/