Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 29492 invoked from network); 19 Apr 2010 08:53:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Apr 2010 08:53:42 -0000 Received: (qmail 40181 invoked by uid 500); 19 Apr 2010 08:53:41 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 39934 invoked by uid 500); 19 Apr 2010 08:53:39 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 39927 invoked by uid 500); 19 Apr 2010 08:53:38 -0000 Delivered-To: apmail-lucene-java-dev@lucene.apache.org Received: (qmail 39924 invoked by uid 99); 19 Apr 2010 08:53:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Apr 2010 08:53:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Apr 2010 08:53:35 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3J8rDGR010209 for ; Mon, 19 Apr 2010 04:53:13 -0400 (EDT) Message-ID: <24225562.7361271667193341.JavaMail.jira@thor> Date: Mon, 19 Apr 2010 04:53:13 -0400 (EDT) From: "Robert Muir (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-1343) A replacement for AsciiFoldingFilter that does a more thorough job of removing diacritical marks or non-spacing modifiers. In-Reply-To: <1377397447.1216754971753.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-1343?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Muir updated LUCENE-1343: -------------------------------- Summary: A replacement for AsciiFoldingFilter that does a mor= e thorough job of removing diacritical marks or non-spacing modifiers. (wa= s: A replacement for ISOLatin1AccentFilter that does a more thorough job of= removing diacritical marks or non-spacing modifiers.) Fix Version/s: 3.1 Affects Version/s: 3.1 Lucene Fields: [New, Patch Available] (was: [New]) Description:=20 The ISOLatin1AccentFilter takes Unicode characters that have diacritical ma= rks and replaces them with a version of that character with the diacritical= mark removed. For example =C3=A9 becomes e. However another equally vali= d way of representing an accented character in Unicode is to have the unacc= ented character followed by a non-spacing modifier character (like this: = =C3=A9 ) The ISOLatin1AccentFilter doesn't handle the accents in decomp= osed unicode characters at all. Additionally there are some instances wh= ere a word will contain what looks like an accented character, that is actu= ally considered to be a separate unaccented character such as =C5=81 but= which to make searching easier you want to fold onto the latin1 lookalike= version L . =20 The UnicodeNormalizationFilter can filter out accents and diacritical marks= whether they occur as composed characters or decomposed characters, it can= also handle cases where as described above characters that look like they = have diacritics (but don't) are to be folded onto the letter that they look= like ( =C5=81 -> L ) was: The ISOLatin1AccentFilter takes Unicode characters that have diacritical ma= rks and replaces them with a version of that character with the diacritical= mark removed. For example =C3=A9 becomes e. However another equally vali= d way of representing an accented character in Unicode is to have the unacc= ented character followed by a non-spacing modifier character (like this: e= =CC=81 ) The ISOLatin1AccentFilter doesn't handle the accents in decomp= osed unicode characters at all. Additionally there are some instances wh= ere a word will contain what looks like an accented character, that is actu= ally considered to be a separate unaccented character such as =C5=81 but= which to make searching easier you want to fold onto the latin1 lookalike= version L . =20 The UnicodeNormalizationFilter can filter out accents and diacritical marks= whether they occur as composed characters or decomposed characters, it can= also handle cases where as described above characters that look like they = have diacritics (but don't) are to be folded onto the letter that they look= like ( =C5=81 -> L ) > A replacement for AsciiFoldingFilter that does a more thorough job of rem= oving diacritical marks or non-spacing modifiers. > -------------------------------------------------------------------------= ------------------------------------------------- > > Key: LUCENE-1343 > URL: https://issues.apache.org/jira/browse/LUCENE-1343 > Project: Lucene - Java > Issue Type: Improvement > Components: Analysis > Affects Versions: 3.1 > Reporter: Robert Haschart > Assignee: Robert Muir > Priority: Minor > Fix For: 3.1 > > Attachments: LUCENE-1343.patch, normalizer.jar, UnicodeCharUtil.j= ava, UnicodeNormalizationFilter.java, UnicodeNormalizationFilterFactory.jav= a, utr30.nrm > > > The ISOLatin1AccentFilter takes Unicode characters that have diacritical = marks and replaces them with a version of that character with the diacritic= al mark removed. For example =C3=A9 becomes e. However another equally va= lid way of representing an accented character in Unicode is to have the una= ccented character followed by a non-spacing modifier character (like this: = =C3=A9 ) The ISOLatin1AccentFilter doesn't handle the accents in decom= posed unicode characters at all. Additionally there are some instances w= here a word will contain what looks like an accented character, that is act= ually considered to be a separate unaccented character such as =C5=81 bu= t which to make searching easier you want to fold onto the latin1 lookalik= e version L . =20 > The UnicodeNormalizationFilter can filter out accents and diacritical mar= ks whether they occur as composed characters or decomposed characters, it c= an also handle cases where as described above characters that look like the= y have diacritics (but don't) are to be folded onto the letter that they lo= ok like ( =C5=81 -> L ) --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org