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: itrans input methods and motion keys Date: Tue, 28 Jun 2022 16:06:22 +0530 Message-ID: <87k091dqhl.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36688"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: =?utf-8?B?4KS44KSu4KWA4KSwIOCkuOCkv+CkguCkuSBTYW1lZXIgU2luZ2g=?= To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jun 28 13:07:17 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 1o693t-0009No-Je for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Jun 2022 13:07:17 +0200 Original-Received: from localhost ([::1]:51382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o693s-0002eB-Bp for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Jun 2022 07:07:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56260) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o68a6-0007vv-Qk for emacs-devel@gnu.org; Tue, 28 Jun 2022 06:36:31 -0400 Original-Received: from mail-pj1-x1043.google.com ([2607:f8b0:4864:20::1043]:36795) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o68a4-000311-EG for emacs-devel@gnu.org; Tue, 28 Jun 2022 06:36:29 -0400 Original-Received: by mail-pj1-x1043.google.com with SMTP id c6-20020a17090abf0600b001eee794a478so4747547pjs.1 for ; Tue, 28 Jun 2022 03:36:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:user-agent:mime-version; bh=PJrWhD3MwwxkBKAP72H+TNZ9snqCkOB6lI5ld7QAPwI=; b=Q/1/mLX3PkALRPq+bI5HAo84h97NbvAG20WvmQTEAd2iV6vKMFRcMV1OYA2oSzSn2J LbI6zelZfapwyyXFdAPnQdfqjmmSPbI4uWUaLjnCV67VgXkxiLZMnd9/l8rfao+NFOqf zg0o6CyS/kjPov2DdG/CcPk7IAB4FJFq1tHiMNExt+17lulY5JLlhjCBg68auukYycnx qFbqbLyO6JH+9hb5E0f4Q+PdVXwgHgLUEj1xI5RuKu+3IFfclHT/KlO+t1iNeAAvcTT1 0Ky4339iYhv6s7oUM9h10T33HTLpR100kZ0UZnScJJYGM4n64szmkOaHRQkCheM8fpxF y5qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :mime-version; bh=PJrWhD3MwwxkBKAP72H+TNZ9snqCkOB6lI5ld7QAPwI=; b=raa54QEt3vdz348Jd6jjlGKWh9CXD47iqouCkW9GQsXcTH0ZBDGd2kJSCqFU9tS9p7 gJtghj3EUS/YswHywmhG0yFnAaENsnQS5TxBUYsQWw2Upw9lwG+5PWVuVMqsFRQNuFOW 8fny1cRm214Dj1GfBmahUm/P6RzfCPXgctjsVUTQ6lT1jwTzTBxf3NqizgUMEWx7CeTR /88b5ulFh7g6hgUuI2lK2HVPWCBAOKO7OiaU3FVJr85IozAxSPovkYcl4vGv8QY2QNDZ VXkAsQqLQJm8+ir8b/twJ6c2hQ6GWOOFd/sUhpjJFtZfL9fs/L1uOJN9E4GyuGjNHzY3 E9cQ== X-Gm-Message-State: AJIora9bGVDCnEMd7twOK8USpaQMKybtlBzndx9vgm9RAHvc3blSRS4C InhIBgsCRDdF0eIUcT/8ZJfrGggjs7g= X-Google-Smtp-Source: AGRyM1uebqgQ1bxl+mU8/yfvUVu4phpmYajY8VOfFh7X6gsaF9jS1FFATMN7XR5a+8a/haa3t4icUg== X-Received: by 2002:a17:903:2443:b0:16a:2b65:7edd with SMTP id l3-20020a170903244300b0016a2b657eddmr2984852pls.20.1656412586062; Tue, 28 Jun 2022 03:36:26 -0700 (PDT) Original-Received: from localhost ([49.204.129.185]) by smtp.gmail.com with ESMTPSA id a1-20020a170902900100b00161823de53csm8899880plp.282.2022.06.28.03.36.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jun 2022 03:36:24 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::1043; envelope-from=visuweshm@gmail.com; helo=mail-pj1-x1043.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, 28 Jun 2022 07:03:43 -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:291677 Archived-At: Dear all, I'm posting this in emacs-devel instead of filing a bug report since I want this to get a bit more attraction. I'm also CCing Sameer Singh in hopes that he can give insight into the non-Tamil side of things. Currently, the itrans input methods are defined using the function quail-define-indian-trans-package in lisp/leim/quail/indian.el. This function calls quail-define-package with a nil SIMPLE argument which steals the commonly used motion keys C-f, C-b, C-n, C-p. AFAICT from what I read in quail a year or so ago, this argument is more useful for the Chinese and the Japanese input methods but not so much for simple IMs like the itrans one which only does transliteration. Besides, even if an IM has one to many translation i.e., if "a" can be translated to "a->" and "a->>", and the SIMPLE argument is non-nil, one can use the number keys to select the alternate translation. Since the nil value of SIMPLE argument gives no real benefit in the case of tamil-itrans IM, I would like to change it to t so that we can get the motion keys back. However, I have only ever used the Tamil IM and thus have no idea about the other languages. Then we can adjust the quail-define-indian-trans-package function to pass a custom SIMPLE argument instead.