From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lewis Perin Newsgroups: gmane.emacs.help Subject: Re: diacritic-fold-search? Date: Thu, 29 Nov 2012 13:59:06 -0500 Organization: PANIX Public Access Internet and UNIX, NYC Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1354215621 15058 80.91.229.3 (29 Nov 2012 19:00:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Nov 2012 19:00:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 29 20:00:33 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Te9Lc-0002mt-1D for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Nov 2012 20:00:32 +0100 Original-Received: from localhost ([::1]:39271 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Te9LN-0007r0-L4 for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Nov 2012 14:00:17 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!news-xxxfer.readnews.com!news-out.readnews.com!transit3.readnews.com!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: panix1.panix.com Original-X-Trace: reader1.panix.com 1354215546 10916 166.84.1.1 (29 Nov 2012 18:59:06 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Thu, 29 Nov 2012 18:59:06 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (berkeley-unix) Cancel-Lock: sha1:V1kWA5lF0E5do5M2PaFZKaWSW58= Original-Xref: usenet.stanford.edu gnu.emacs.help:195630 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87951 Archived-At: "Drew Adams" writes: >> Is there a way to search ignoring diacritics, e.g. capturing "apres" >> both with and without an accent grave over the "e"? > >Great question. I don't think so, but I'm guessing that lots of users could >make good use of such a feature! > >Unless someone points out here that this is already possible, why don't >you submit an enhancement request for this feature (`M-x >report-emacs-bug' is also for enhancement requests): be able to toggle >Isearch distinguishing certain sets of similar chars (diacritics). > >There could be predefined sets of equivalence classes of chars (e.g., >the same letter, modulo diacritical marks). And users could be able to >customize these classes. > >Likewise, for punctuation chars that are very similar (in >purpose/visually), such as straight quotes and curly quotes, and >no-break hyphen, hyphen, and the various dashes. > >Likewise, for whitespace chars other than the standard SPC, TAB, etc. >For whitespace, I believe there might be some handling of additional >chars such as no-break space, but what's needed, here too, is a simple >way to toggle distinguishing them on/off. > >But your use case is the best one: be able to optionally ignore diacritical >marks when searching. It may not be totally irrelevant to note that search engines make diacritic-agnostic search the default. And some Web browsers (Chrome but not Firefox) do this for searches of a page they’re displaying. /Lew --- Lew Perin / perin@acm.org http://babelcarp.org