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 13:04:48 +0530 Message-ID: <87pmfhe0dj.fsf@gmail.com> References: <20220925100020.13229-1-arunisaac@systemreboot.net> <20220925100244.13482-1-arunisaac@systemreboot.net> <87h70vsmyd.fsf@gmail.com> <87ill9ony7.fsf@systemreboot.net> <87ill98u3m.fsf@gmail.com> <83o7v1jpb0.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="21073"; 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 10:26:43 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 1od5vP-0005Mj-Fn for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Sep 2022 10:26:43 +0200 Original-Received: from localhost ([::1]:39330 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1od5vM-0000iL-U2 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Sep 2022 04:26:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60520) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1od59K-0007ol-JM for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2022 03:37:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53291) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1od59K-0002Vj-9N for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2022 03:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1od59J-0000u8-VS for bug-gnu-emacs@gnu.org; Tue, 27 Sep 2022 03:37:01 -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 07:37:01 +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.16642641783405 (code B ref 58070); Tue, 27 Sep 2022 07:37:01 +0000 Original-Received: (at 58070) by debbugs.gnu.org; 27 Sep 2022 07:36:18 +0000 Original-Received: from localhost ([127.0.0.1]:52366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1od58c-0000sr-B5 for submit@debbugs.gnu.org; Tue, 27 Sep 2022 03:36:18 -0400 Original-Received: from mail-pl1-f194.google.com ([209.85.214.194]:38564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1od58Y-0000sa-9s for 58070@debbugs.gnu.org; Tue, 27 Sep 2022 03:36:16 -0400 Original-Received: by mail-pl1-f194.google.com with SMTP id x1so8350743plv.5 for <58070@debbugs.gnu.org>; Tue, 27 Sep 2022 00:36:14 -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=I91tXa8A6HCgp4K9h41hjboBk1F4LmkmnGelBUrnnNc=; b=puoQwR78IxOJVMi/tHfSKyLBBXAlKT5C6ufNvmNFCN9xZY/LeAUKEEvzZ1kR1nOVmY s/b7rEjV5ZSn7VHqplcr/zcUcNGSHYqN9UCsgUR9x5ipVn0ZMxN3QM5OIjB+Ah71poO0 6OKQWcMFOz14TZ00TZOChY3L9UpMu+w+yjBHDbHatpsoCcwUzoe7yL3hCWmkI1M/EJRM eWpNONIqEPlrcOIn9Vg3iFV85GqrKhR4G6p56Gkm+DgeKXiTLCMlmYpVkIFJGsVpwLhF pE7JHJtb83U5lA3qH35aUHTkgS39mh9i609cTqvlAqGbmYSRo/d7ua9c/3qNgUmGKge1 UbSw== 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=I91tXa8A6HCgp4K9h41hjboBk1F4LmkmnGelBUrnnNc=; b=Dhb5apvo2pP68b9inhDg5FX8ZycBNrnxox3OzG1W1A540nb900R5U8dDGQsCwP3Sek xKWm5ZwDfclqYgcZYGyeOQ84xZxP01qpKv8t9yaXC/6ETuM0ELQshwbgSsjZwKekpPmG 5Tdz9JgXl9+jGq+mATToPMNFIHih6s4dxv6ZBRRPMJH9s6dnpNIkF2SoH0ir4k8FMaJd FYKqDLwDdk1BXUFGJiGOkLVzXqgRtEDIBXDSYW9+5u/Nwf/104QGdYZMo9UTZAcDckkE EKW4I1HYjHlR8dLc59s+YmD35kwr6uI4MW2y3EAYkOy2hPq8vVCjYy+DNvtC2/UO4r+o IFIw== X-Gm-Message-State: ACrzQf2lq4YLvKP+jUaR+Ijjz3KpAhr1K9qamJ4+SDTVuLbsxgzPtueE VqHUyHBa25KklyzD9iEXO5o= X-Google-Smtp-Source: AMsMyM5+zMd2RAW93aj1FqkH1il6vTp/zT3fIL2PaUp0nUqMMwDD5vGZENySFAdLCNNNGwwtQcLOIA== X-Received: by 2002:a17:90b:2686:b0:203:bf90:f791 with SMTP id pl6-20020a17090b268600b00203bf90f791mr3155582pjb.50.1664264168194; Tue, 27 Sep 2022 00:36:08 -0700 (PDT) Original-Received: from localhost ([14.139.216.98]) by smtp.gmail.com with ESMTPSA id b20-20020a63cf54000000b00434e57bfc6csm783578pgj.56.2022.09.27.00.36.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Sep 2022 00:36:07 -0700 (PDT) In-Reply-To: <83o7v1jpb0.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 27 Sep 2022 09:37:23 +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:243700 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: >> Emacs 29's delete-forward-char deletes by grapheme clusters now. It is >> now a job of writing a backward version of the grapheme cluster >> detection code. I poked around in the C code to see how >> find-composition-internal was implemented, and it looked *relatively* >> straightforward to get a backward searching function working. I might >> be wrong here, so I hope Eli corrects my misunderstandings. > > I don't think I understand what you are after. Please elaborate on > the "backward version of the grapheme cluster detection code", and its > purpose in this context. In delete-forward-char, we use find-composition to get the extend of the current glyphs in terms of characters. AFAICT, find-composition does a forward search for the 'composition' text property. My proposal was that we write a find-composition variant that would do a backward search for the 'composition' text property which we then can make of use in delete-backward-char. We cannot simply do backward-char then delete-forward-char and bind it to a command since IIRC the grapheme cluster movement happens in the display code? M-: (progn (backward-char 1) (delete-forward-char 1)) RET deletes =E0=AE=95=E0=AF=81| to | (| being point) whereas if I define the ab= ove as a command named test, and call it via M-x test RET it gives =E0=AE=95| instea= d. Which is why I said we need a "backward version of the grapheme cluster detection code."=20=20 HTH.