From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.bugs Subject: bug#73909: [PATCH 2/2] quail/greek.el: Add greek-polytonic. Date: Mon, 21 Oct 2024 20:36:47 +0530 Message-ID: <87jze1trzs.fsf@gmail.com> References: <87cyjvx7pc.fsf@thanosapollo.org> <87iktmveb5.fsf@gmail.com> <87ldyizhx3.fsf@thanosapollo.org> <87y12hpweo.fsf@gmail.com> <87wmi1u35q.fsf@gmail.com> <87plntpog7.fsf@gmail.com> <87sesptvdh.fsf@gmail.com> <87cyjtpmj7.fsf@gmail.com> <87o73dttmv.fsf@gmail.com> <878quhpl9t.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19201"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Thanos Apollo , 73909@debbugs.gnu.org To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 21 17:08:45 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t2u1U-0004ra-Vk for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Oct 2024 17:08:45 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t2u1O-0004lh-0W; Mon, 21 Oct 2024 11:08:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t2u1M-0004lH-NK for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2024 11:08:36 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t2u1M-0003eu-F1 for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2024 11:08:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=TWjpp86lJD80Z+YuodQz8w/cdp0Pw3I9hImgXzgJpBc=; b=eJ5drIXtuuTFxfvY2UlkS27bUVPhf0Gpc3LjZTDrUu+aEw+A22hlR+pQhSqH/FUOzOK8IH3Q5VmwcrzS/UYaM1PDzHuNacQDS58ZLVg+i4kjVLM2Ytz7XEoBu3fDRdVvaPpd/j9dhNQ1pl2KzZ5yC1gJ2Z2D6riUMSSoHlxlYx3Kyjn+BMMbnOY0KFbDAWQL0M/j5bGr919WDQnjsUNl/s86TMXC5WqiU8Fn8+IPqluJL3ZC6ikCcmyryk0/yej8ghnt2jbRXDd/JbirXE+NTlSAarU/fCRxtxNB6+ujcZ5IFktoYD65Ho97qbJXJhbGagpT96MOQ6VgoaeII5HoDw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t2u1n-0006M7-19 for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2024 11:09:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Oct 2024 15:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73909 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 73909-submit@debbugs.gnu.org id=B73909.172952330624347 (code B ref 73909); Mon, 21 Oct 2024 15:09:02 +0000 Original-Received: (at 73909) by debbugs.gnu.org; 21 Oct 2024 15:08:26 +0000 Original-Received: from localhost ([127.0.0.1]:52833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2u1B-0006Kd-Uv for submit@debbugs.gnu.org; Mon, 21 Oct 2024 11:08:26 -0400 Original-Received: from mail-pl1-f196.google.com ([209.85.214.196]:42416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2u1A-0006KQ-H4 for 73909@debbugs.gnu.org; Mon, 21 Oct 2024 11:08:25 -0400 Original-Received: by mail-pl1-f196.google.com with SMTP id d9443c01a7336-20cceb8d8b4so26085815ad.1 for <73909@debbugs.gnu.org>; Mon, 21 Oct 2024 08:07:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729523212; x=1730128012; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=TWjpp86lJD80Z+YuodQz8w/cdp0Pw3I9hImgXzgJpBc=; b=ajlqzTM8lzBuoM5hUjhgkg0DSdTNHc+/Y2VReIaKt4DyO+sQSTnfLWStkNRAUT0Tlg h/HFwur+x9wwxSfU9jN76f8todRP38cNiKCeisDDirpeicVfFNwumutpAEhQ+/Qx1K3z JprMXrMvwXgDdEK+wjxGM6dmatWeLKSchuvNoFoZsX7Y2tsbYkzbMfxM8S8Jxc6yoyVb nRV146wAeoRSbxcaS0l4xDOPBdcWmtxzAct/I8o0D1AB9tH+5gKrLGv5YA4pbLpBmx9l c9O3zfZQZfHQ6zNtThHznkeTAF4zeDqHIB4/PmMRtQ2o9HklNvfydF2YfjPQ/cER/XzU O43w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729523212; x=1730128012; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=TWjpp86lJD80Z+YuodQz8w/cdp0Pw3I9hImgXzgJpBc=; b=C843RIuIRL3l0JAbRkTpZ9ybYZiKoYI5MoDZxWF2Bhe+dRlaqW8YuBRdqIomzqlQ+/ Ff6tKNi/yADPxZGEP2YAZNKLCGTPz0JYx9KNZAc+LWPjxexbk/05VZtI4omdkz+ICwqT 6a0yNusxwdUUHyTPE/s2IXJtWvmbIEiNlG8JouxmSdZxt1sxjwTgTHbTdamsEm7BkG8l qduR0ssIW2aB24F6bfFyClnnaF0AqLUQR76wuskwIdzlHCMBvE38TmSK4Eb0JAYvdhTG lFfPW2n+0lwPLiOsxkl7RBHxXkJaL6r6+gFIZgT2Pb8695N0P9l9RlXXgDiXAbQOiNVD z9qQ== X-Forwarded-Encrypted: i=1; AJvYcCVb3jg6Qq32omfMLp60Sp8N1ohD8QxEoGkc3IBunSEZK3ikW45mqMklpa/SB2ChOD0wNgSNFw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YyFNhsRQP63lv2s1y87K7//tSnM0ZQLsMRJ81LPLjLxlZ/Sz0+2 keT1lwpYvFSoUdlvhR3GqLlbqcWknFLky+GLZfkWqaSxwubqV5tr X-Google-Smtp-Source: AGHT+IEYYYS2FDzvO+jMwiorMaRHNTKmLCU7gFG0qKPFaNWAk2DDUwo1UH3nuGUV52x9uLvoJT+OlQ== X-Received: by 2002:a17:902:f609:b0:20c:7661:dc9a with SMTP id d9443c01a7336-20e5c0d321dmr171672415ad.3.1729523211692; Mon, 21 Oct 2024 08:06:51 -0700 (PDT) Original-Received: from localhost ([1.7.159.70]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20e7f0f36e6sm26995345ad.258.2024.10.21.08.06.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Oct 2024 08:06:51 -0700 (PDT) In-Reply-To: <878quhpl9t.fsf@gmail.com> (Robert Pluim's message of "Mon, 21 Oct 2024 16:45:34 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:294066 Archived-At: [=E0=AE=A4=E0=AE=BF=E0=AE=99=E0=AF=8D=E0=AE=95=E0=AE=B3=E0=AF=8D =E0=AE=85= =E0=AE=95=E0=AF=8D=E0=AE=9F=E0=AF=8B=E0=AE=AA=E0=AE=B0=E0=AF=8D 21, 2024] R= obert Pluim wrote: >>>>>> On Mon, 21 Oct 2024 20:01:20 +0530, Visuwesh s= aid: > Visuwesh> You have to set quail-keyboard-layout to a suitable > Visuwesh> value using the > Visuwesh> command quail-set-keyboard-layout. But we don't have > Visuwesh> any entry for > Visuwesh> AZERTY in quail-keyboard-layout-alist so you'd need to > Visuwesh> add a suitable > Visuwesh> one yourself. > > Ah, I used the OS-level tools to change the keyboard layout, which is > not the same thing. It is a bit convoluted. When you change the keyboard layout at the OS-level, Quail does not have a clue that you're using a non-"standard" keyboard layout. So you need an entry in quail-keyboard-layout-alist that instructs Quail about your OS-level layout. Without this entry, Quail input methods like greek-polytonic, english-dvorak, etc. are no longer functional since they rely on non-nil KBD-TRANSLATE [1]. I hope this clears up the confusion. > Visuwesh> When this is done, KBD-TRANSLATE=3Dt with that entry should= make a > Visuwesh> difference. > > Looking through that list, there=CA=BCs only 1 type that I *might* have a > physical example of, in storage somewhere for the last 20 years =F0=9F=98= =80 I understand. It is too outdated. We should add contemporary layouts to it like AZERTY, Dvorak, etc. It shouldn't be too hard. It is about time I sent a patch for this... > Visuwesh> It has been a long time since I last tested this so my > Visuwesh> memory is in > Visuwesh> shambles. I can test it later on if you want. > > Sure. If it enables people to use greek-polytonic as an actual layout, > we can retain the identity mappings. But I still think it=CA=BCs going to > be a *really* obscure use case. Please evaluate (this does not accurately model the AZERTY layout properly since the number of keys in the qsd row is different from the US standard keyboard layout which is what I have) (setf (alist-get "azerty" quail-keyboard-layout-alist nil nil #'equal) (concat ;; Above 1-0. 30 because 15 keys -> shifted and unshifted. (make-string 30 ?\s) " &1=C3=A92\"3'4(5-6=C3=A87-8=C3=A79=C3=A00)=C2=B0=3D+=E2=82=82= " " aAzZeErRtTyYuUiIoOpP=CC=82=CC=88$=E2=82=AC " " qQsSdDfFgGhHjJkKlLmM=C3=B9%*=CE=BC\\| " " <>wWxXcCvVbBnN,?;.:/!=C2=A7 " (make-string 30 ?\s))) then do: 1. M-x quail-set-keyboard-layout RET azerty RET 2. Change OS-level keyboard layout to azerty 3. Evaluate the relevant forms to add greek-polytonic Quail IM ensuring that KBD-TRANSLATE is non-nil 4. C-u C-\ greek-polytonic RET 5. Type "&" as per AZERTY layout, this will insert 1 as you would expect from a greek-polytonic keyboard When you remove ("1" . ?1) from the translation rules and repeat step 5, you would insert "&" instead. I doubt inserting "&" is what the users of greek-polytonic would want. This is the same wrt english-dvorak too: if, as an AZERTY owner, I press the physical key named "&" in my keyboard, I would want Emacs to insert "1" when english-dvorak IM is active. 1. In this scenario, when you press "&" with quail-keyboard-layout=3D"azerty", Quail converts this to "1" since that's the key that "&" corresponds to the "standard" layout. This converted string is then passed to the Quail IM which, in our case, is greek-polytonic (T&C applies).