Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 51588 invoked from network); 29 Oct 2009 17:38:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Oct 2009 17:38:24 -0000 Received: (qmail 93201 invoked by uid 500); 29 Oct 2009 17:38:23 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 93136 invoked by uid 500); 29 Oct 2009 17:38:23 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 93119 invoked by uid 99); 29 Oct 2009 17:38:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Oct 2009 17:38:23 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Oct 2009 17:38:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6DB02234C045 for ; Thu, 29 Oct 2009 10:37:59 -0700 (PDT) Message-ID: <1495700079.1256837879447.JavaMail.jira@brutus> Date: Thu, 29 Oct 2009 17:37:59 +0000 (UTC) From: =?utf-8?Q?C=C3=A9drik_LIME_=28JIRA=29?= To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-2015) ASCIIFoldingFilter: expose folding logic + small improvements to ISOLatin1AccentFilter In-Reply-To: <1166542840.1256835779760.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-2015?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D127= 71496#action_12771496 ]=20 C=C3=A9drik LIME commented on LUCENE-2015: ------------------------------------- Robert, All I did is refactor the big switch(c) into its own method: public static final int foldToASCII(char c, char[] output, int outputPos) and change the caller (public void foldToASCII(char[] input, int length)) a= ccordingly. I can submit a patch without formatting changes, but that means the source = won't be nicely indented... Please advise. As for the ISOLatin1AccentFilter patch, it really is to enable us to remove= a workaround for an issue we had with some special (yet frequent) chars. F= eel free to ignore it should you think this part is not relevant. > ASCIIFoldingFilter: expose folding logic + small improvements to ISOLatin= 1AccentFilter > -------------------------------------------------------------------------= ------------- > > Key: LUCENE-2015 > URL: https://issues.apache.org/jira/browse/LUCENE-2015 > Project: Lucene - Java > Issue Type: Improvement > Components: Analysis > Reporter: C=C3=A9drik LIME > Priority: Minor > Attachments: Filters.patch > > > This patch adds a couple of non-ascii chars to ISOLatin1AccentFilter (nam= ely: left & right single quotation marks, en dash, em dash) which we very f= requently encounter in our projects. I know that this class is now deprecat= ed; this improvement is for legacy code that hasn't migrated yet. > It also enables easy access to the ascii folding technique use in ASCIIFo= ldingFilter for potential re-use in non-Lucene-related code. --=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: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org