Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 11004 invoked from network); 20 Apr 2010 13:53:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Apr 2010 13:53:15 -0000 Received: (qmail 19894 invoked by uid 500); 20 Apr 2010 13:53:14 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 19747 invoked by uid 500); 20 Apr 2010 13:53:14 -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 19740 invoked by uid 500); 20 Apr 2010 13:53:14 -0000 Delivered-To: apmail-lucene-java-dev@lucene.apache.org Received: (qmail 19737 invoked by uid 99); 20 Apr 2010 13:53:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Apr 2010 13:53:14 +0000 X-ASF-Spam-Status: No, hits=-1316.8 required=10.0 tests=ALL_TRUSTED,AWL 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; Tue, 20 Apr 2010 13:53:13 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3KDqqd9012685 for ; Tue, 20 Apr 2010 13:52:53 GMT Message-ID: <20286139.88191271771572592.JavaMail.jira@thor> Date: Tue, 20 Apr 2010 09:52:52 -0400 (EDT) From: "Robert Muir (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (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 [ https://issues.apache.org/jira/browse/LUCENE-1343?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D128= 58891#action_12858891 ]=20 Robert Muir commented on LUCENE-1343: ------------------------------------- By the way, I have been running this with the ASCIIFoldingFilter tests and = ensuring its a superset (e.g. we have at least all their mappings). But there are some bugs in ASCIIFoldingFilter that should be fixed: For example, U+1E9B (LATIN SMALL LETTER LONG S WITH DOT ABOVE) But in unicode. this is canonically equivalent to U+017F (LONG S) U+0307 (C= OMBINING DOT ABOVE) AsciiFoldingFilter folds U+1E9B (LONG S WITH DOT) to an F but it folds U+017F (LONG S) to an S Unicode defines this character as a compatibility equivalent to S anyway, b= ut its worse that ASCIIFoldingFilter is canonically inconsistent with itsel= f. > 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