From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#30513: Unicode Character Name is misspelled (MATHEMATICAL ITALIC SMALL LAMDA) Date: Sun, 18 Feb 2018 10:54:21 -0500 Message-ID: <87lgfq5m4y.fsf@gmail.com> References: <87r2pi5og7.fsf@gmail.com> <21567E18-E031-48FF-AFD0-901E84CF09D4@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1518969213 6543 195.159.176.226 (18 Feb 2018 15:53:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 18 Feb 2018 15:53:33 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: 30513@debbugs.gnu.org To: Michael =?UTF-8?Q?Gr=C3=BCnewald?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 18 16:53:29 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enRH1-0000FO-Sl for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Feb 2018 16:53:08 +0100 Original-Received: from localhost ([::1]:40266 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enRJ3-00077E-T4 for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Feb 2018 10:55:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enRIw-00075n-0c for bug-gnu-emacs@gnu.org; Sun, 18 Feb 2018 10:55:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1enRIs-0005Wy-Qs for bug-gnu-emacs@gnu.org; Sun, 18 Feb 2018 10:55:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42024) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1enRIs-0005Wj-Ko for bug-gnu-emacs@gnu.org; Sun, 18 Feb 2018 10:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1enRIs-0001fl-AJ for bug-gnu-emacs@gnu.org; Sun, 18 Feb 2018 10:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Feb 2018 15:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30513 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30513-submit@debbugs.gnu.org id=B30513.15189692726386 (code B ref 30513); Sun, 18 Feb 2018 15:55:02 +0000 Original-Received: (at 30513) by debbugs.gnu.org; 18 Feb 2018 15:54:32 +0000 Original-Received: from localhost ([127.0.0.1]:49921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enRIO-0001er-3Q for submit@debbugs.gnu.org; Sun, 18 Feb 2018 10:54:32 -0500 Original-Received: from mail-it0-f51.google.com ([209.85.214.51]:37053) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enRIM-0001eY-7s; Sun, 18 Feb 2018 10:54:30 -0500 Original-Received: by mail-it0-f51.google.com with SMTP id d10so6852416itj.2; Sun, 18 Feb 2018 07:54:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=HfiNfFslqELost18FhsDyJdPq6xHg2BKjfNgqxAHkao=; b=F2lRPV4SOYboR/sXyjyMemedwiSi1aADM35ZJJlrqsWE8/PyXrtbyk1EhdeJjuPErS px+RjfeUHDuBwqr08FfMwQcHHyOdUur8x8sm4PmmuTIFEUQkKHWwaX+yvHNhlYrO/Vs3 Erse2tcmo8FDklRV8Isa0R6eYu9tKxFUO1QxCK10sxOQF4nD6AMCJdN/9BNr82geOet3 xLjF78hiGf8j8ubQryeAyMTw+hLnuMe4ISUbmIb4zgdgBxaAW7+QPETsXSiTGUw7uhYu /NFB0zxppEugyn3EBRUd0sZ1G6jJm5vrsOTLkfLqwPD8v0OxooHa55G4WDCGly9CEVwo 7ZBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=HfiNfFslqELost18FhsDyJdPq6xHg2BKjfNgqxAHkao=; b=QbHPTwr+cauPCg2vMqcKuscrFZBRqDedqv+dT9pdzD2Yh23T2zwPNEAKGj/uEWi9Xe ncXpRZQksSGs4jqPcfgCl7Vq4io+23ljf2Jgc9oyuk4+OE8YJcyfnNX0KNGLCFKu38Bd GFA4U2pgDPPLtDj2+l9thmGG5pdbLYqokfzNhTSxEKddscGtPQkiQczyjkEuxdX9uSk8 jq+wiz6e/ND9lDIF7vaZlKG4uHU+FEJNjI/NFsCOuWRD3gYEhLrXHrOh4qdW3VKhM0pY xmMrwHs8ZBn+kiPM2QhpBZQQM797N8xIWUtKrQ5Vuy+gTpucU6bzvlM23xzuVvB4RYCk jLiA== X-Gm-Message-State: APf1xPANPNkoVtBNckZv8o9PGvbWUEvkv9t0F7kDuE42IG+5Sbqkgwle mZ/ALexPPPEcAcy+LT1JuD1x5Q== X-Google-Smtp-Source: AH8x227cmNQiMMJ4WGUH8hlLjMGzVhfKSmzWLayMQy+F6NECESiGITYghcfbDo8xP+aREc/k0t1uTw== X-Received: by 10.36.173.91 with SMTP id a27mr14677143itj.37.1518969264432; Sun, 18 Feb 2018 07:54:24 -0800 (PST) Original-Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id a13sm18507589itj.13.2018.02.18.07.54.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Feb 2018 07:54:22 -0800 (PST) In-Reply-To: <21567E18-E031-48FF-AFD0-901E84CF09D4@gmail.com> ("Michael \=\?utf-8\?Q\?Gr\=C3\=BCnewald\=22's\?\= message of "Sun, 18 Feb 2018 16:23:03 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:143417 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable tags 30513 + patch quit Michael Gr=C3=BCnewald writes: > What would be the preferred way to enter math symbols without fumbling ov= er such small > oddities? Is there any possibility of adjusting the auto-completion metho= d so that it > is not so picky about the difference between LAMDA and LAMBDA? Are there= other better > approaches? > > (I think I am well aware of the LAMBDA vs. LAMDA detail now but what abou= t the huge crowd > of Emacs users entering MATHEMATICAL ITALIC SMALL letters using C-x 8 RET= ? ;) ) Yeah, this is fresh in my memory since I was recently playing with ucs-inse= rt and was a bit surprised to discover "LAMBDA" under the *old* name: name: GREEK SMALL LETTER LAMDA old-name: GREEK SMALL LETTER LAMBDA Anyway, I think the following patch should smooth things over: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=v1-0001-Allow-lambda-spelling-for-ucs-insert-Bug-30513.patch Content-Description: patch >From a7b40afd7fad41d55e7a43168c7febc9722ee3ac Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Sun, 18 Feb 2018 10:43:42 -0500 Subject: [PATCH v1] Allow "lambda" spelling for ucs-insert (Bug#30513) * lisp/international/mule-cmds.el (ucs-names): Add a "LAMBDA" completion variant for every "LAMDA" name. --- lisp/international/mule-cmds.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index 3468166263..2a995121dd 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el @@ -2949,6 +2949,14 @@ ucs-names ;; higher code, so it gets pushed later! (if new-name (puthash new-name c names)) (if old-name (puthash old-name c names)) + ;; Unicode uses the spelling "lamda" in character + ;; names, instead of "lambda", due to "preferences + ;; expressed by the Greek National Body" (Bug#30513). + ;; Some characters have an old-name with the "lambda" + ;; spelling, but others don't. Add the traditional + ;; spelling for more convenient completion. + (if (and (not old-name) new-name (string-match "LAMDA" new-name)) + (puthash (replace-match "LAMBDA" t t new-name) c names)) (setq c (1+ c)))))) ;; Special case for "BELL" which is apparently the only char which ;; doesn't have a new name and whose old-name is shadowed by a newer -- 2.11.0 --=-=-=--