all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Visuwesh <visuweshm@gmail.com>
To: "समीर सिंह Sameer Singh" <lumarzeli30@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: itrans input methods and motion keys
Date: Wed, 29 Jun 2022 17:44:25 +0530	[thread overview]
Message-ID: <87a69vfyzi.fsf@gmail.com> (raw)
In-Reply-To: <CAOR1sLzUvZ1ksS1NUAj-rzzitDOKio9+cSmiS7quZhqiuqeFdg@mail.gmail.com> ("समीर सिंह Sameer Singh"'s message of "Wed, 29 Jun 2022 00:14:36 +0530")

[-- Attachment #1: Type: text/plain, Size: 1304 bytes --]

[புதன் ஜூன் 29, 2022] समीर सिंह Sameer Singh wrote:

> I am sorry I do not use the itrans input methods, therefore do not know
> much about it :(
> So may I know why are motion keys disabled while typing in these input
> methods?
>

It is not that they are disabled but they are in conflict with the
keybindings in quail-translation-keymap so you no longer have access to
the motion keys.

Quail has facility to make use of a dictionary to insert text: the
Chinese and the Japanese input methods use these.  When such a facility
is used, the translation keymap is useful since you have to pick from
multiple translations for an input sequence, however, IME itrans is not
such a complex IM so not having it be a SIMPLE quail IM is annoying
since the quail-translation-keymap steals the motion keys.

If this is still not clear, you can think of a non-SIMPLE quail IM as
akin to the Google input tools.  You type in text, it presents multiple
translations of the text, then you select one.  But what happens in an
itrans method is simple transliteration for which a SIMPLE quail IM
should be good enough.

And reading the code more a bit, I think pushing the following patch
shouldn't bring in any new annoyances.  Can someone push it please?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Stop-itrans-input-methods-from-stealing-motion-keys.patch --]
[-- Type: text/x-diff, Size: 1217 bytes --]

From 493f0f63ddda2a3a8a360cec76c9f221aecac29d Mon Sep 17 00:00:00 2001
From: Visuwesh <visuweshm@gmail.com>
Date: Wed, 29 Jun 2022 17:42:18 +0530
Subject: [PATCH] Stop itrans input methods from stealing motion keys

The itrans input methods only do transliteration and as such don't
need any of the fancy features a non-SIMPLE quail package offers.
This change prevents the itrans IMs from stealing the motion keys.

See <https://lists.gnu.org/r/emacs-devel/2022-06/msg01212.html>.

* leim/quail/indian.el (quail-define-indian-trans-package): Make the
SIMPLE argument non-nil.
---
 lisp/leim/quail/indian.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/leim/quail/indian.el b/lisp/leim/quail/indian.el
index 8fffcc3511..a67af1cac5 100644
--- a/lisp/leim/quail/indian.el
+++ b/lisp/leim/quail/indian.el
@@ -43,7 +43,7 @@ quail-define-indian-trans-package
   ;; determining that this is a quail definition (it searches for
   ;; "(quail-define-package").
   (funcall #'quail-define-package pkgname lang title t doc
-	   nil nil nil nil nil nil t nil)
+	   nil nil nil nil nil nil t nil nil nil t)
   (maphash
    (lambda (key val)
      (quail-defrule key (if (= (length val) 1)
-- 
2.35.1


  reply	other threads:[~2022-06-29 12:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-28 10:36 itrans input methods and motion keys Visuwesh
2022-06-28 18:44 ` समीर सिंह Sameer Singh
2022-06-29 12:14   ` Visuwesh [this message]
2022-07-02  5:35     ` itrans input methods and motion keys, " James Thomas
2022-07-02  5:50       ` Visuwesh
2022-07-02  9:23         ` [PATCH] " James Thomas
2022-07-02  9:39           ` Visuwesh
2022-07-02  9:39           ` Visuwesh
2022-07-03  7:07           ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a69vfyzi.fsf@gmail.com \
    --to=visuweshm@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=lumarzeli30@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.