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: [PATCH] Re: itrans input methods and motion keys Date: Sat, 02 Jul 2022 15:09:31 +0530 Message-ID: <87r133j1kc.fsf@gmail.com> References: <87k091dqhl.fsf@gmail.com> <87a69vfyzi.fsf@gmail.com> <87r1346prc.fsf@gmx.net> <87pmiojc5n.fsf@gmail.com> <87r13350lx.fsf_-_@gmx.net> 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="22755"; 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: James Thomas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 02 11:44: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 1o7Zfg-0005oh-Uw for ged-emacs-devel@m.gmane-mx.org; Sat, 02 Jul 2022 11:44:12 +0200 Original-Received: from localhost ([::1]:56982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o7Zff-0007Xb-NI for ged-emacs-devel@m.gmane-mx.org; Sat, 02 Jul 2022 05:44:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35982) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7ZbF-0005kn-IG for emacs-devel@gnu.org; Sat, 02 Jul 2022 05:39:37 -0400 Original-Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]:41950) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o7ZbD-0006nz-Rc for emacs-devel@gnu.org; Sat, 02 Jul 2022 05:39:37 -0400 Original-Received: by mail-pl1-x643.google.com with SMTP id c4so4443476plc.8 for ; Sat, 02 Jul 2022 02:39:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=zWTy/GD5WvYNpHzot9CZI1qJdSJCXlIB62xm+O5eG2E=; b=loYrabH6S5HnACbufVwj6k1MnVp8r8hH0EVfVtojslFQ5ErcQZJd5lQUEemoujcrUm eQ1t/ljwEpFnGo6KNtojCzIaaeEbZPSazl6QVMsLiiki6LFVKlGfttf7QZdy+Oga54lG fb0LsW5ONpOXvr20GOo6t19GLsILGVQ11w+uUs3qt+lM69BGSJAdu5nsnIXN0o/WaXSa fG26GEqJCXnc7yWuaR4p5Qb1fZzscLagoI1Q56/nFrcAJme8K7lymx0arBgDKrvc3rvf wEmWq1XNbzm/xz+xWBdvfUU4G/sDQYLSFzCpyCr8Ffif/M5tmtC2yKPXse42l11R2vFm RoFA== 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:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=zWTy/GD5WvYNpHzot9CZI1qJdSJCXlIB62xm+O5eG2E=; b=aVq5CAVSSzXDRE3ayoGJlcxwY0MMfKD4UP20WAwtn2BrRkQs/u6TRcZAoT35lAcd92 QpB4t+tRYcS8Vc7EO9CZKJhVpgBl5kNVLtxvya/WE7XpvwNKmNBIuTrnhx70l9aoCPxq lNfCiatuLEh0Yg908APVXS3JkRzx1geHO4aXIxcvAmwceLxa44EFhOZxVB7OV4sHkeCt dUWFf/dmJaGdzgSkTvIgiJJTo7f84OHm52bLGK8eqGeak66IbFCQJWa8rbua0VUteBkq N7ElY0W6Iz1h/uZV8qx/T0on++Lt3HHhB0/CpgcsVqu3c6eTIkJNF0mr323ORfYHxWGI PXxg== X-Gm-Message-State: AJIora9roxPdbpq4CWs7RgBWLxaaAxOKJL6/HBVSwso9I6HTkR+o7dY5 AdfloCevka5A4o1bObonCtw= X-Google-Smtp-Source: AGRyM1ujhDk2LKt8c+Z8AgbnG2ITw9AYa3Xh+XVBa8yX5JRjXAbLBgiRB8ihbzubVKpwn2dy5WJqxw== X-Received: by 2002:a17:902:d2c1:b0:16a:4028:4748 with SMTP id n1-20020a170902d2c100b0016a40284748mr24522656plc.37.1656754774419; Sat, 02 Jul 2022 02:39:34 -0700 (PDT) Original-Received: from localhost ([49.204.136.62]) by smtp.gmail.com with ESMTPSA id g38-20020a635226000000b0040cb1f55391sm16732318pgb.2.2022.07.02.02.39.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Jul 2022 02:39:33 -0700 (PDT) In-Reply-To: <87r13350lx.fsf_-_@gmx.net> (James Thomas's message of "Sat, 02 Jul 2022 14:53:54 +0530") Received-SPF: pass client-ip=2607:f8b0:4864:20::643; envelope-from=visuweshm@gmail.com; helo=mail-pl1-x643.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: Sat, 02 Jul 2022 05:43:33 -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:291794 Archived-At: [=E0=AE=9A=E0=AE=A9=E0=AE=BF =E0=AE=9C=E0=AF=82=E0=AE=B2=E0=AF=88 02, 2022]= James Thomas wrote: > Visuwesh wrote: > >> Unfortunately, I'm not quite sure what it does. I also cannot read >> Malayalam at all so I cannot try to figure it out by trial and error (I >> can at least read Devanagari a bit). Can you explain what it does? > > From the docstring: > >> DETERMINISTIC non-nil means the first candidate of translation is >> selected automatically without allowing users to select another >> translation for a key. > > So if we've concluded that there is only one valid candidate for > translation of the current input (upto the last key), there would be no > harm is setting it. SIMPLE simply controls one of the keyboard > mechanisms for selecting any such alternative candidates. Someone who > uses Devanagari should probably test it and weigh in, though. > Hmm, so SIMPLE disables the translation-keymap and DETERMINISTIC selects the first candidate? I wonder why they are mutually exclusive in the first place... Thanks for the explanation. > In any case I'd like to throw in a patch for a similar change to > malayalam-mozhi, which I've tested. :) > > diff --git a/lisp/leim/quail/indian.el b/lisp/leim/quail/indian.el > index 23204c0cd3..d8cc94c676 100644 > --- a/lisp/leim/quail/indian.el > +++ b/lisp/leim/quail/indian.el > @@ -633,7 +633,7 @@ indian-mlm-mozhi-update-translation > (quail-define-package "malayalam-mozhi" "Malayalam" "MlmMI" t > "Malayalam transliteration by Mozhi method." > nil nil t nil nil nil t nil > - #'indian-mlm-mozhi-update-translation) > + #'indian-mlm-mozhi-update-translation nil t) > > (maphash > (lambda (key val) > > > --