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.devel Subject: Re: "bengali-probhat" input method don't work as expected (by me) Date: Tue, 09 Aug 2022 21:12:39 +0530 Message-ID: <87fsi54e4w.fsf@gmail.com> References: <871qtpv5mw.fsf@disroot.org> 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="951"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Akib Azmain Turja Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 09 18:52:13 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 1oLSSi-00006Q-5p for ged-emacs-devel@m.gmane-mx.org; Tue, 09 Aug 2022 18:52:12 +0200 Original-Received: from localhost ([::1]:38742 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLSSh-0007DA-51 for ged-emacs-devel@m.gmane-mx.org; Tue, 09 Aug 2022 12:52:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59268) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLRRG-00007g-3I for emacs-devel@gnu.org; Tue, 09 Aug 2022 11:46:38 -0400 Original-Received: from mail-pj1-x1041.google.com ([2607:f8b0:4864:20::1041]:35566) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oLRRD-0005fn-M9 for emacs-devel@gnu.org; Tue, 09 Aug 2022 11:46:37 -0400 Original-Received: by mail-pj1-x1041.google.com with SMTP id o3-20020a17090a0a0300b001f7649cd317so4946626pjo.0 for ; Tue, 09 Aug 2022 08:46:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:references :message-id:date:in-reply-to:subject:cc:to:from:from:to:cc; bh=leGYcyOmy24i26Roktrt0NKkeQPh7Rdemi7LA6nvilk=; b=lDs1nacuRlgY2jp61dmZMictGB9vCiErgK/jMYGZqg/Jt9bXBmiJeIuaBjJ9REaxyT 9YfBd7wDPEUAiOA663jsotukZS3bkIS15IR1kIfs2qSdMDK/2HQZUpbmrV1aT79gz1lG 8Ou82CmnhyZRIr/I+CWKBX3TVLzCNRHMUhll6aYwcuUKt1aTZh57n5qvG8WBAuW5X5/u IklQ2sSDQufsNt3AxCwUsMOLJ0mOjjufIXEM9zS+cyIkhG/1F8dlw8T+hPg1C9nvrU7m d2WNSEBTKZXFew1zEM5Ek4GYYk2VaeVG/aAkstyPHPLUrRZoaPS+ql+9wd7l4NvXPS4e 8fJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:references :message-id:date:in-reply-to:subject:cc:to:from:x-gm-message-state :from:to:cc; bh=leGYcyOmy24i26Roktrt0NKkeQPh7Rdemi7LA6nvilk=; b=D7T1602XYEZUbNkp7KhEINWiljNG6tsx+KPxkyltAz5M5a8SYa0R+ATtoRPerRWoD+ oLT588VRt9LipS3GSW8Lp+oDaBpHN3ci0C19sIZ+H75IwsoipkaYsDVcB+QY6MGivpUq EGUpV2j08CJVViNQFjMf9pF4r7zZT3iVzJ02NuYJ697yRptqOltD7SBPwf6LAVHov/0G oX1pnKljpFC4ynNlOMb5JoIwwrIwv6j7O9rMjjN8XKA2Xs0+cMICdnceSOAnACS0d40C +Gp58Z8I2izX+8lKO2SSsBSN+087RxhpP1Jpnyh5IAh1J9zbEwmko6/ke9KYkq0SQaC5 F2Ow== X-Gm-Message-State: ACgBeo3LuuPYW2DzF9Wdxc+ftVdDdAaFGuTNqZIFMVAtJCLH+hnK1Kbl A+vix+SwhQSZCoO+h7Nd4xo= X-Google-Smtp-Source: AA6agR4zSuRplg6ORybMl2AOp0o4rRuWZquFne+OqbrLwDfMfj3Og31LKY6S6OB6NP9kK0uDlff1uw== X-Received: by 2002:a17:902:ec88:b0:16d:d156:2bf2 with SMTP id x8-20020a170902ec8800b0016dd1562bf2mr24167520plg.40.1660059993628; Tue, 09 Aug 2022 08:46:33 -0700 (PDT) Original-Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id u8-20020a1709026e0800b0016f1204cde8sm10909578plk.301.2022.08.09.08.46.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Aug 2022 08:46:32 -0700 (PDT) In-Reply-To: <871qtpv5mw.fsf@disroot.org> (Akib Azmain Turja's message of "Tue, 09 Aug 2022 20:44:07 +0600") Received-SPF: pass client-ip=2607:f8b0:4864:20::1041; envelope-from=visuweshm@gmail.com; helo=mail-pj1-x1041.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Mailman-Approved-At: Tue, 09 Aug 2022 12:48:49 -0400 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:293321 Archived-At: [=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 Azmai= n 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-_\\| ;:qQjJkKx\ > 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 n= il 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.