From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#37530: 26.1; Tack characters translated incorrectly Date: Fri, 27 Sep 2019 16:44:52 +0300 Message-ID: <838sq9kg4r.fsf@gnu.org> References: <83zhiqjom4.fsf@gnu.org> <87muepq2z5.fsf@gnus.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="228999"; mail-complaints-to="usenet@blaine.gmane.org" Cc: mail@axelsvensson.com, 37530@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 27 17:17:23 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iDrzn-000xSH-1P for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Sep 2019 17:17:23 +0200 Original-Received: from localhost ([::1]:52332 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDrzl-0002oF-61 for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Sep 2019 11:17:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39607) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDqZP-0000hn-Do for bug-gnu-emacs@gnu.org; Fri, 27 Sep 2019 09:46:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iDqZO-0005tU-BC for bug-gnu-emacs@gnu.org; Fri, 27 Sep 2019 09:46:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37241) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iDqZO-0005tP-7t for bug-gnu-emacs@gnu.org; Fri, 27 Sep 2019 09:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iDqZO-0006CV-45 for bug-gnu-emacs@gnu.org; Fri, 27 Sep 2019 09:46: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: Fri, 27 Sep 2019 13:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37530 X-GNU-PR-Package: emacs Original-Received: via spool by 37530-submit@debbugs.gnu.org id=B37530.156959193321993 (code B ref 37530); Fri, 27 Sep 2019 13:46:02 +0000 Original-Received: (at 37530) by debbugs.gnu.org; 27 Sep 2019 13:45:33 +0000 Original-Received: from localhost ([127.0.0.1]:46062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDqYu-0005iP-Qa for submit@debbugs.gnu.org; Fri, 27 Sep 2019 09:45:33 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58705) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iDqYt-0005cN-C9 for 37530@debbugs.gnu.org; Fri, 27 Sep 2019 09:45:31 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39283) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iDqYn-0005nm-Sm; Fri, 27 Sep 2019 09:45:26 -0400 Original-Received: from [176.228.60.248] (port=3817 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iDqYk-0002st-N0; Fri, 27 Sep 2019 09:45:25 -0400 In-reply-to: <87muepq2z5.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 27 Sep 2019 15:32:30 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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: 209.51.188.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:167388 Archived-At: > From: Lars Ingebrigtsen > Cc: Axel Svensson , 37530@debbugs.gnu.org > Date: Fri, 27 Sep 2019 15:32:30 +0200 > > The following patch updates out map with the data from the .h file: > > (setq map > (let ((map nil)) > (with-temp-buffer > (insert-file-contents "/usr/include/xkbcommon/xkbcommon-keysyms.h") > (while (re-search-forward "#define +XKB_KEY.*0x\\([a-fA-Z0-9]+\\).*U\\+\\([a-fA-Z0-9]+\\)" nil t) > (push (cons (string-to-number (match-string 1) 16) > (string-to-number (match-string 2) 16)) > map))) > (nreverse map))) > > Does this look OK to everybody? Sorry, this is not enough. We cannot blindly use some alternative source, especially as the other source was determined to be inaccurate. How do we know that header file is accurate? (And what is the license of that file, btw?) I'd like someone to do the research and find out why Markus Kuhn's suggestions were changed. I'd like also to state the source of the data and the information about the change reason(s) in x-win.el, where we have the mapping. > In addition, there's a huge number of keysyms in that file that we do > not do mappings to characters for. Hm... but those are all over > #x1000174, so I guess they're mapped to Unicode code points directly? > > /* Keysyms directly mapped to Unicode characters. */ > if (keysym >= 0x01000000 && keysym <= 0x0110FFFF) To answer the question, one needs to compare the keysyms with the corresponding codepoints. If they are identical, then the mapping is trivial. Thanks.