From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Felix E. Klee" Newsgroups: gmane.emacs.devel Subject: Patch for German T1 keyboard layout WIP Date: Thu, 1 Aug 2019 15:20:23 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="0000000000003c61da058f0e1c6b" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="27381"; mail-complaints-to="usenet@blaine.gmane.org" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 01 15:21:02 2019 Return-path: Envelope-to: ged-emacs-devel@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 1htB0w-00070y-4L for ged-emacs-devel@m.gmane.org; Thu, 01 Aug 2019 15:21:02 +0200 Original-Received: from localhost ([::1]:55908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htB0v-0000r8-46 for ged-emacs-devel@m.gmane.org; Thu, 01 Aug 2019 09:21:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32890) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htB0p-0000qa-IG for emacs-devel@gnu.org; Thu, 01 Aug 2019 09:20:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1htB0o-0000Jr-HH for emacs-devel@gnu.org; Thu, 01 Aug 2019 09:20:55 -0400 Original-Received: from quechua.inka.de ([2a04:c9c7:0:1073:217:a4ff:fe3b:e77c]:51680 helo=mail.inka.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1htB0o-0000AY-9f for emacs-devel@gnu.org; Thu, 01 Aug 2019 09:20:54 -0400 Original-Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) by mail.inka.de with esmtpsa id 1htB0j-00035t-V0; Thu, 01 Aug 2019 15:20:50 +0200 Original-Received: by mail-lj1-f179.google.com with SMTP id z28so15135045ljn.4 for ; Thu, 01 Aug 2019 06:20:49 -0700 (PDT) X-Gm-Message-State: APjAAAWcevrde4K6SVxx/t2Ypzm5p9cv5l6y4q4RcvCm0Udhmt46ZZaf eZNYR+xRzRJIpHsFZrtDBERbaD4Y3/q+ldi5G2g= X-Google-Smtp-Source: APXvYqxA+pwvOZmcKbWHKIstz7CDxUNJ+QU1C52+0swwCJEKiy9KsaV534gGdfcTfgWJNS52X9xf+S0MsWXWtMqIDmc= X-Received: by 2002:a2e:870f:: with SMTP id m15mr68208356lji.223.1564665649563; Thu, 01 Aug 2019 06:20:49 -0700 (PDT) X-Gmail-Original-Message-ID: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a04:c9c7:0:1073:217:a4ff:fe3b:e77c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:239101 Archived-At: --0000000000003c61da058f0e1c6b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable See attached patch. It adds the German T1 keyboard layout to Emacs. Before submitting it to , I decided to discuss it here, following the instruction on =E2=80=9CSending Patches for GNU Emacs= =E2=80=9D. There are some limitation due to Quail operating on top of an ANSI keyboard, which has one key less than an ISO keyboard, and which has no AltGr modifier. There is however a limitation that seems unnecessary. The =C2=B0 and ^ key= s behave differently: * The typed characters initially appear with an underline. * When doing , then one has to press another key to get: =C2= =B0=C2=B0=C2=B0=C2=B0=C2=B0 * When doing , I have to press return for `*Help*` to show up: =E2=80=9C=C2=B0 (translated from =C2=B0) runs the command self= -insert-command (found in global-map), which is an interactive built-in function in =E2=80=98C source code=E2=80=99.=E2=80=9D I don=E2=80=99t know if that can be fixed, and how. Maybe I could step thr= ough the code to see what=E2=80=99s going on? But debugging `self-insert-comman= d` sounds painful. Another limitation: When entering `-` with `typo-mode` enabled, it does call `typo-cycle-dashes`, but the dashes don=E2=80=99t cycle. This is genu= inely annoying. Again I would like to but don=E2=80=99t know how to debug that. Still, even with these limitations, I believe that the `german-t1` keyboard layout is a useful addition. I used it all the time for the past months. In fact I have configured my Emacs to automatically switch the keyboard layout to `german-t1` when a file is loaded with `ispell-local-dictionary` set to a German dictionary. --0000000000003c61da058f0e1c6b Content-Type: application/gzip; name="changes.patch.gz" Content-Disposition: attachment; filename="changes.patch.gz" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_jyspg56e0 H4sICIzjQl0AA2NoYW5nZXMucGF0Y2gAhdTLUtswFAbgvZ/ir2khwTgXSEJJgIQWSq+0pfQChIsS K4mK4zi2XEhaWPEMrJhhwwxbFgwrVsmL9ciiQ+mi2OP40/GRjmR54ohGA7bdFBIs7YrQT7tctNPd iAk37TIpPJu5MsVd1P772BCeww9QmJyaLkwV8jUnlco18ixTY4WZDLKZTCGXM2zbfqCKYVnWQ5Uq FdjZ6Ux+IgcrvucnUakYQMLsHx2Z2KSbuZWkAF2GVSphLYtlHrSZhz3eq3VY4MBlvU4kkdgXsqWw 4MrlVTDPwZ/I7HyyaFiJeAK2wxvC47bP6nusyQ0LZjMe0JZZE6YenLC4RE2pHt/Wo8rC82m0NqdR nZRhrXQkwsj3O4HkDljAKYF3WeQK2UMoml4Yz6LeYgGrSx6ECHg3EoHwmoblBzwMSfF0g5QJT7iQ t6fyv5dMGlb8CrYHl0D2ETBpAlODCyD3GMg/AQqjwHQaeJoAZpJAZg4YnpWBwdVu3DU+uh+B/a8A XwKCVUCuAf0NIPoMiFdA5z3gf6CeN8NTwBq/6wm2AISfAGcRaLwAmstA6yXw/TWw9wZw31K36+EJ /Z4Pj4GRsb86o7cOHHwD6s+BH1+A2jPAWwHa74AJykoVAXtHrfL+VgWRy0PaiYQ5b6JcTMacJVZL 2rvkbU36aMqDS22bPDzTnlPpg6u7/OqWdo/c19xU+TfaW2RLs6TC19pjyufa1So1RrT7xJ5mmmhr VlQdU3tETexCe5s8qjlKTGuOq+yE9jp5QzOhwkntJHlOc4dY1rSIu3fLP9T8qaZ6qn1IHtcsqvDJ 7QpM1TjWjV+qzpj2Bnlds0zcUVSfH0q0m/f+SrjnhGjxgBu/AaX8xsJ/BAAA --0000000000003c61da058f0e1c6b--