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.bugs Subject: bug#58070: [PATCH] Add tamil99 input method Date: Tue, 27 Sep 2022 15:45:40 +0530 Message-ID: <87czbhdsxf.fsf@gmail.com> References: <20220925100020.13229-1-arunisaac@systemreboot.net> <20220925100244.13482-1-arunisaac@systemreboot.net> <87h70vsmyd.fsf@gmail.com> <87ill9ony7.fsf@systemreboot.net> <83sfkdjpyf.fsf@gnu.org> <87leq5dzkt.fsf@gmail.com> <83edvxjlav.fsf@gnu.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="8203"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: arunisaac@systemreboot.net, 58070@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 27 12:29:30 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1od7qE-0001vL-4G for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Sep 2022 12:29:30 +0200 Original-Received: from localhost ([::1]:36278 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1od7qD-0005ef-7o for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Sep 2022 06:29:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38800) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1od7dD-0006zw-Iq for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2022 06:16:10 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53834) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1od7dD-00038s-9M for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2022 06:16:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1od7dC-0005RD-VD for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2022 06:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Sep 2022 10:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58070 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 58070-submit@debbugs.gnu.org id=B58070.166427375520869 (code B ref 58070); Tue, 27 Sep 2022 10:16:02 +0000 Original-Received: (at 58070) by debbugs.gnu.org; 27 Sep 2022 10:15:55 +0000 Original-Received: from localhost ([127.0.0.1]:52911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1od7d4-0005QW-K7 for submit@debbugs.gnu.org; Tue, 27 Sep 2022 06:15:54 -0400 Original-Received: from mail-pj1-f67.google.com ([209.85.216.67]:56305) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1od7d0-0005QD-6K for 58070@debbugs.gnu.org; Tue, 27 Sep 2022 06:15:52 -0400 Original-Received: by mail-pj1-f67.google.com with SMTP id fs14so8801801pjb.5 for <58070@debbugs.gnu.org>; Tue, 27 Sep 2022 03:15:50 -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:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date; bh=DSx5zDnSg18KBf19LUtWTrd+a34Ifiz3dukrWje3nQ0=; b=q6NL5JFd1f6qAarrfr4xZb4QWZBWQ4wsoHddTH2JxND+WaDN+Fo+FTpbRbzlZsGDOq /+VArpUV1kRbHlkl9qPSDgI2Ecaoe++ZTHEiRxaj6z/IzaP3exr4iybu5huXKO0FxipH v25sqJvcco7NTiej7cbgFibDKzD4Y+Eup+zjubMaHKuIVGTWXE9JoIdzUrgYvWBpwHaI phsJPO0tNA4EzigFcfLsh03ptbVp6qm+7cfV8ljkuu5f8qvAPywHSEbfVwGeprRr0GkC e85sFwX+nosJ9rSJYGOBt+mJwrjwjBk/oONlZUw6eQ/9RseZcoIh+nkPq1ohAWakIAEM j5JA== 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:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date; bh=DSx5zDnSg18KBf19LUtWTrd+a34Ifiz3dukrWje3nQ0=; b=Uk6zTh8YSYsSvIltQZIVx+7RXXeFT20l+jWXcfVEaQ+tGghLWswXhelZTHN2vd7ES7 H6gBHryiXjhG/O79Tk0zWbqkgpiGMyj/HmUcrPEgfdbjPRMImppggtyOq00Mw5RzThrY +XK1MS37q9AC3smm3yExW7S7o8vabLb6KUwPMeLjneoF6bgACBx6EvpbMyJNtoHKm3uz h6MHoLX1DuQ5DekD8V6oef1h/3+9K9n2GNtHt4h1zv/S1kbAhf54FNp09IvlEDW+CSVS nS0qfpydc61SCz/j2UiCZRF3+cn6hl9d5en5Ww/Nko+pGNUyR2ViFS9SJYYDCtUdviqw FzZg== X-Gm-Message-State: ACrzQf2c+sCdziZbxcPXFtTjprTRPP262pjQ5V57piUBXkNYmfe60yug 0oJnj9DXosTRKMnOnzGmFeE= X-Google-Smtp-Source: AMsMyM7hwTj0gSZrlnA8U9+H3F849GHZEBeqOjlZa1uXZ2LT6qgeDMFNjnUBKF/ou/5c3eAQZq59mw== X-Received: by 2002:a17:90b:38d1:b0:200:8178:1c94 with SMTP id nn17-20020a17090b38d100b0020081781c94mr3708822pjb.219.1664273744440; Tue, 27 Sep 2022 03:15:44 -0700 (PDT) Original-Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id k60-20020a17090a4cc200b002006f15ad4fsm8089791pjh.10.2022.09.27.03.15.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Sep 2022 03:15:43 -0700 (PDT) In-Reply-To: <83edvxjlav.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 27 Sep 2022 11:03:52 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:243709 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=9A=E0=AF=86=E0=AE=AA=E0=AF=8D=E0=AE=9F=E0=AE=AE=E0=AF=8D=E0=AE=AA=E0= =AE=B0=E0=AF=8D 27, 2022] Eli Zaretskii wrote: >> Arun's implementation precalculates the key sequences that produce >> vowel-consonant pairs and adds them as separate Quail rules, kind of >> what happens in the itrans IMs. So in the quail-map, you have rules >> like "h" =3D =E0=AE=95, "d" =3D =E0=AE=89, "hd" =3D =E0=AE=95=E0=AF=81 w= hich works great until you run into a >> situation like Eric described in emacs-devel here: >> https://yhetil.org/emacs-devel/87a66ori6g.fsf@gmail.com/T/#m5b261c1a7bb0= 6c7c074fdcdb746fb53ab7af1aa1 >>=20 >> I'm sure that situation is familiar to many who use Quail IMs regularly, >> which is why I decided to make my IM consider the character before point >> to decide what codepoint Quail should insert in the buffer. In my >> implementation, the quail-map only has "h" =3D =E0=AE=95, "d" =3D =E0=AE= =89. I use the >> UPDATE-TRANSLATION-FUNCTION to see what the character before point is >> and change what Quail should insert: if the user types 'd' and the >> character before point is a '=E0=AE=95', then I make Quail insert =E0=AF= =81 (instead of >> =E0=AE=89) to get =E0=AE=95=E0=AF=81. This lets you insert vowel-conson= ant pairs out-of-order >> which is akin to what Eric wants. > > But the price is that, after typing "h", your implementation doesn't > show in the echo-area that one of the possible next candidates is "d", > whereas Arun's implementation does, is that right? Yes, you are correct. However, the price is small and it is the same one Dvorak users pay when using a laptop that has a qwerty layout keyboard, so not much IMO. >> > Emacs 29 also has the composition-break-at-point variable, which you >> > could set non-nil, in which case will also work by >> > codepoints. So perhaps the out-of-sequence vowel insertion would be >> > possible without further complications if composition-break-at-point >> > is non-nil? >>=20 >> Unfortunately, composition-break-at-point is not enough here since the >> layout does not have keys to insert the *vowel signs* (the grave accent >> in Arun's example), only *vowels*. > > One could add those missing keys, no? The problem is finding the place to put them. All the alphabet keys and all symbol keys except one or two in a standard US layout are occupied. Tamil99 does put the vowel signs under ^[LETTER] but that is simply cumbersome to type.