From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Akib Azmain Turja Newsgroups: gmane.emacs.devel Subject: Re: "bengali-probhat" input method don't work as expected (by me) Date: Tue, 09 Aug 2022 23:49:35 +0600 Message-ID: <877d3htihc.fsf@disroot.org> References: <871qtpv5mw.fsf@disroot.org> <87fsi54e4w.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30085"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Visuwesh Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 09 20:07:28 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oLTdX-0007aK-8d for ged-emacs-devel@m.gmane-mx.org; Tue, 09 Aug 2022 20:07:27 +0200 Original-Received: from localhost ([::1]:35504 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLTdV-00036M-Ri for ged-emacs-devel@m.gmane-mx.org; Tue, 09 Aug 2022 14:07:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLTNI-0008WM-LP for emacs-devel@gnu.org; Tue, 09 Aug 2022 13:50:40 -0400 Original-Received: from knopi.disroot.org ([178.21.23.139]:33314) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLTNG-0000oC-8A for emacs-devel@gnu.org; Tue, 09 Aug 2022 13:50:40 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 8DFE840AAC; Tue, 9 Aug 2022 19:50:35 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jE_KI5eHWkH4; Tue, 9 Aug 2022 19:50:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1660067433; bh=vaw6P1KjeTn7xdYv1bOmMSa5MkwhrgYnlW0agjeWOks=; h=From:To:Cc:Subject:References:Date:In-Reply-To; b=Uy+zT2RgeCDEudKjfiu5uuKpvrrrJNMO5W85ACVy3jXR3ezSBNaeeuTTuI40jbKa5 avbiHpAr4ViUVemuWjBXQIn0aOH1RHsXz/9a19A8hZ92+kBIMuV7w40662DfMbjERi qYfT0gAD1RiUdp/4AnTKrO3KtYhQmEelqlAMj5plLiq+mm2z0gExOXqTgz0F0tUUUF OkPWTeKC+P9zLNKQQhr/PGGfA0gAeBpDnKtzSpDUG1r0Fbt/XuIQoqXdn/nsXFKiEa qFPNtRdlfjDweNUGFHsqqBmDSQfzAsOyCy7FzQeTcoh7Z0qXcm+M8Wek4/WuSXA5bp ZzympwSj9IbKw== In-Reply-To: <87fsi54e4w.fsf@gmail.com> (Visuwesh's message of "Tue, 09 Aug 2022 21:12:39 +0530") Received-SPF: pass client-ip=178.21.23.139; envelope-from=akib@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:293327 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Visuwesh writes: > [=E0=AE=9A=E0=AF=86=E0=AE=B5=E0=AF=8D=E0=AE=B5=E0=AE=BE=E0=AE=AF=E0=AF=8D= =E0=AE=86=E0=AE=95=E0=AE=B8=E0=AF=8D=E0=AE=9F=E0=AF=8D 09, 2022] Akib Azma= in Turja wrote: > >> I use Dvorak keyboard layout (actually the OS is converting QWERTY keys >> to Dvorak). All input methods were broken for me. >> >> So I've added the following to quail-keyboard-layout-alist: >> >> ("dvorak" . " 1!2@3#4$5%6^7&8*9(0)[{]}`~\ >> '\",<.>pPyYfFgGcCrRlL/?=3D+ aAoOeEuUiIdDhHtTnNsS-_\\| ;:qQjJkK= x\ >> XbBmMwWvVzZ ") >> >> And set quail-keyboard-layout to Dvorak using quail-set-keyboard-layout. >> >> After doing the above, "english-dvorak" works as expected (yeah, that's >> not a great idea, but just to make sure it works), but still there is >> no effect on "bengali-probhat" input method. It looks like that it >> assumes that I'm using QWERTY and converts the keys like that. >> >> And by the way, why M-x describe-input-method RET english-dvorak shows >> nice keyboard while M-x describe-input-method RET bengali-probhat shows >> just a (translation?) table? > > This is because the bengali-probhat input method is not declared as a > "keyboard layout". The quail translation stuff kicks in only for those > input methods that have the KBD-TRANSLATE argument non-nil. Does the > following patch work for you? > > diff --git a/lisp/leim/quail/indian.el b/lisp/leim/quail/indian.el > index e652f108dd..431d8369c1 100644 > --- a/lisp/leim/quail/indian.el > +++ b/lisp/leim/quail/indian.el > @@ -702,7 +702,7 @@ "X" > ;; Probhat Input Method > (quail-define-package > "bengali-probhat" "Bengali" "BngPB" t > - "Probhat keyboard for Bengali/Bangla" nil t nil nil nil nil nil nil nil= nil t) > + "Probhat keyboard for Bengali/Bangla" nil t nil t t nil nil nil nil nil= t) > > (quail-define-rules > ("!" ?!) > > You can simply eval the quail-define-package and quail-define-rules > forms after applying the patch to see the results. > Thanks, that works. But how can I do this from my init file? Tracking master is not an option for me right now. =2D-=20 Akib Azmain Turja Find me on Mastodon at @akib@hostux.social. This message is signed by me with my GnuPG key. Its fingerprint is: 7001 8CE5 819F 17A3 BBA6 66AF E74F 0EFA 922A E7F5 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmLynjAACgkQVTX89U2I YWuPDRAA1pgrTdqaPVakduBt1N0KE16HcAp6JtR+YIYVtiC9ksVkfGasix+0puPr 5y79VB3tOO0LkFBpEW779URUNn7O2Nkip2mRd3D4janPp7/VseBsUjdrcY8LEP4F SqAR8Mf08SrZ0j8T7uihiTIU2Uw01RHWsvSde1cSRcVthkClDLqxhLfFOUZ87tBG RUTTTpDzNjhNGlo8DFPMb+QWgHb1241YOIVY+zJ9mHr1aiEzoBt9ZLylGsP4pHBH Lq1Do4E2o7d6o2xLjSGSM8sm4kbI8tN1x48WtUp4wZGP30rzCsBbZ5R7qPWDf4ua DEz+5/Lf64BEABRYq5BmMsC1LoY76n8UrbQhGnHOdO6dGWsk7LswUUVe2m7j4fIz Mu7j7C8mW7M8HUNeQIVImVjxGU0/haRTvganSi91mK2Gri2jemgaFJUJsUTBnNOv xRYuyPQzZFd2Min1DkN/wuIV20+Cs0y7xBrq1Whovlt1bjmV6hK7l0rR0tgW8NRW oDNX+cNkJpN6U93lgBsRJhS2FubNNdwEC2cF4kXYEuN9xgZHRyNeiFv2xHkTVKCK xGqtkkBIsP9Y3Q5CUdYlwuQ4qCogLoC30qeKF+qDmBlaDalTbZZnz4zrXGchzmDl be6igk97ay0OQZJe96WmwFnmvOTiKk+7QkWNv5k1fkZOsalJbK4= =OGD8 -----END PGP SIGNATURE----- --=-=-=--