From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Case mapping of sharp s Date: Mon, 16 Nov 2009 21:06:38 +0900 Message-ID: References: <19200.4158.380820.761685@a1i15.kph.uni-mainz.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1258373232 14250 80.91.229.12 (16 Nov 2009 12:07:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Nov 2009 12:07:12 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ulrich Mueller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 16 13:07:04 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NA0MK-0007Ig-BX for ged-emacs-devel@m.gmane.org; Mon, 16 Nov 2009 13:07:04 +0100 Original-Received: from localhost ([127.0.0.1]:35537 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NA0MJ-0007xU-QT for ged-emacs-devel@m.gmane.org; Mon, 16 Nov 2009 07:07:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NA0MC-0007w3-UC for emacs-devel@gnu.org; Mon, 16 Nov 2009 07:06:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NA0M7-0007sU-Vp for emacs-devel@gnu.org; Mon, 16 Nov 2009 07:06:56 -0500 Original-Received: from [199.232.76.173] (port=51454 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NA0M7-0007sK-PI for emacs-devel@gnu.org; Mon, 16 Nov 2009 07:06:51 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:64615) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NA0M6-0004bs-R8 for emacs-devel@gnu.org; Mon, 16 Nov 2009 07:06:51 -0500 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id nAGC6eTo003416; Mon, 16 Nov 2009 21:06:40 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id nAGC6eCw011551; Mon, 16 Nov 2009 21:06:40 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id nAGC6dRk004874; Mon, 16 Nov 2009 21:06:39 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1NA0Lv-0003aM-5w; Mon, 16 Nov 2009 21:06:39 +0900 In-Reply-To: <19200.4158.380820.761685@a1i15.kph.uni-mainz.de> (message from Ulrich Mueller on Sun, 15 Nov 2009 15:29:18 +0100) X-detected-operating-system: by monty-python.gnu.org: Solaris 9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:117033 Archived-At: In article <19200.4158.380820.761685@a1i15.kph.uni-mainz.de>, Ulrich Muelle= r writes: > In Unicode since version 5.1.0 the U+1E9E code point is assigned to > "LATIN CAPITAL LETTER SHARP S". Would it be possible to add a mapping > from this to the lower case =C3=9F, as in the patch below? > However, I've noticed that similar mappings for Turkish =C4=B1 (dotless i) > and =C4=B0 (I with dot) were commented out [1]. Is it still so that such a > change would "make searches slow", as stated in the comment? That kind of setting surely makes the searching of =C3=9F and =E1=BA=9E slow because we can't use BM search when case-fold-search is non-nil. BM search is possible only when all case-equivalent characters are represented by the same byte length, and differ only in the last byte. So, if you are sure that searching of =C3=9F is very rare (I have no idea), please install it. By the way, I think it's possible to improve the current BM-search for such a case. For instance, to search "stra=C3=9Fe", we at first do BM-search for "stra" part and then check the remaining "=C3=9Fe" part. Aren't there any challenger? --- Kenichi Handa handa@m17n.org