From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#17130: 24.4.50; Deficient Unicode case folding Date: Sat, 29 Mar 2014 22:50:40 +0300 Message-ID: <83vbuwdbsf.fsf@gnu.org> References: <87txair0g7.fsf@ivytech.edu> <83fvm2fhii.fsf@gnu.org> <87ob0qrugy.fsf@nbtrap.com> <83y4ztec5l.fsf@gnu.org> <87ob0pnptc.fsf@nbtrap.com> <83d2h5du2e.fsf@gnu.org> <87eh1lcdaj.fsf@nbtrap.com> <838urtdpwk.fsf@gnu.org> <87ioqxxbtk.fsf@nbtrap.com> <831txkewil.fsf@gnu.org> <8761mwua93.fsf@nbtrap.com> Reply-To: Eli Zaretskii 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 1396122684 31103 80.91.229.3 (29 Mar 2014 19:51:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Mar 2014 19:51:24 +0000 (UTC) Cc: 17130@debbugs.gnu.org To: Nathan Trapuzzano Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 29 20:51:16 2014 Return-path: Envelope-to: geb-bug-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 1WTzHg-0001re-AE for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Mar 2014 20:51:16 +0100 Original-Received: from localhost ([::1]:40779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTzHf-0002Qy-GR for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Mar 2014 15:51:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51458) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTzHY-0002Qo-6J for bug-gnu-emacs@gnu.org; Sat, 29 Mar 2014 15:51:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTzHS-0007UQ-J7 for bug-gnu-emacs@gnu.org; Sat, 29 Mar 2014 15:51:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55237) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTzHS-0007UM-Fw for bug-gnu-emacs@gnu.org; Sat, 29 Mar 2014 15:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WTzHR-0005CU-VQ for bug-gnu-emacs@gnu.org; Sat, 29 Mar 2014 15:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Mar 2014 19:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17130 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17130-submit@debbugs.gnu.org id=B17130.139612264419961 (code B ref 17130); Sat, 29 Mar 2014 19:51:01 +0000 Original-Received: (at 17130) by debbugs.gnu.org; 29 Mar 2014 19:50:44 +0000 Original-Received: from localhost ([127.0.0.1]:56419 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WTzH9-0005Bo-L9 for submit@debbugs.gnu.org; Sat, 29 Mar 2014 15:50:43 -0400 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:35343) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WTzH7-0005BX-1Q for 17130@debbugs.gnu.org; Sat, 29 Mar 2014 15:50:42 -0400 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0N3700E00QZEKJ00@mtaout25.012.net.il> for 17130@debbugs.gnu.org; Sat, 29 Mar 2014 22:49:17 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N3700A9WR25Q540@mtaout25.012.net.il>; Sat, 29 Mar 2014 22:49:17 +0300 (IDT) In-reply-to: <8761mwua93.fsf@nbtrap.com> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:87544 Archived-At: > From: Nathan Trapuzzano > Cc: 17130@debbugs.gnu.org > Date: Sat, 29 Mar 2014 14:31:52 -0400 > > >> If not, then what is the CANONICALIZE slot doing that couldn't be > >> done with the regular upcase/downcase slots by themselves? > > > > If that slot is "trivial", i.e. contains the lower-case variant of the > > character, then indeed this slot doesn't add information, I think, > > only utility. But it doesn't have to contain the lower-case variant. > > I know. But if Emacs doesn't do Unicode folding, what is there other > than lower/upper variants? You can make it have whatever you like, because you can set up buffer-specific tables. > >> Not sure I follow. Seems to me the CANONICALIZE slot is sufficient, at > >> least in principle. > > > > It is sufficient for mapping a character to its canonical equivalent, > > but not finding the non-canonical variants of a canonical character. > > IOW, it is not well suited to finding ς given just σ. > > Finding the non-canonical variants is not something that happens (at > least in principle) during case-insensitive matching. The case database is not only for searching. > > For searching, you only need the CANONICALIZE slot. But what about > > replacing the search string while keeping the letter case in the > > replacement? For that, CANONICALIZE alone is not enough, you need the > > reverse mapping. > > There is no reverse mapping when it comes to folding. There can't be, > since multiple characters can fold into the same character. You can use the case of the string being replaced as guidelines. E.g., if the replaced string was capitalized, you can capitalize the replacement.