From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#56323: 29.0.50; [v2] Add new customisable phonetic Tamil input method Date: Fri, 01 Jul 2022 17:06:36 +0300 Message-ID: <83czepdj0z.fsf@gnu.org> References: <87pmiqe4da.fsf@gmail.com> <878rpdq99n.fsf@gmail.com> <83fsjldl2b.fsf@gnu.org> <87tu81osgp.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14479"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56323@debbugs.gnu.org To: Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 01 16:19:49 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 1o7HUq-0003d4-2g for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Jul 2022 16:19:48 +0200 Original-Received: from localhost ([::1]:48228 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o7HUp-0003QB-3W for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Jul 2022 10:19:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38042) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7HIU-0003v1-FS for bug-gnu-emacs@gnu.org; Fri, 01 Jul 2022 10:07:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44894) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o7HIU-0004Gk-5k for bug-gnu-emacs@gnu.org; Fri, 01 Jul 2022 10:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o7HIU-0001eS-0w for bug-gnu-emacs@gnu.org; Fri, 01 Jul 2022 10:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Jul 2022 14:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56323 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 56323-submit@debbugs.gnu.org id=B56323.16566843956309 (code B ref 56323); Fri, 01 Jul 2022 14:07:01 +0000 Original-Received: (at 56323) by debbugs.gnu.org; 1 Jul 2022 14:06:35 +0000 Original-Received: from localhost ([127.0.0.1]:38791 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o7HI2-0001dh-SC for submit@debbugs.gnu.org; Fri, 01 Jul 2022 10:06:35 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52972) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o7HHz-0001dR-Mt for 56323@debbugs.gnu.org; Fri, 01 Jul 2022 10:06:33 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47120) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7HHu-0004EF-Gm; Fri, 01 Jul 2022 10:06:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=RqzrulJ3SsUXYwRYoNyIeEALtp7YcLWCUxLCcw7sU4w=; b=npuWj3lP63jDtbAw+AZd 5/trIzIBWEJY7SUfKCsw4m747rgzik82O5w5dYB+rPxScxvYQEd69cLcw1I/j91k9KL8hXbOKNuxR 4KvfuOz0hCLMPjSrRRsbAZwzfRyfRhEszOPe4Gg1s7C+4lIb/UaDbaUFbBBU8O8/cd6uEg/NRLQTc waiCuS/E0YXV+sXTyt5JwDJZeClrgEQ2Uh2ioNl4mZPrexVnEz5O8ChYIYYY1Wj+MLGVgZvYv2zya Huzvli1i56jyMTDXz5BIRBcfS6tYvBNNaHiIelsz5kBf/6xoTHKrq7AUTxVpZZlhWUSTDxEclv9R/ SH14lFmospc0VA==; Original-Received: from [87.69.77.57] (port=1327 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7HHt-00018g-W6; Fri, 01 Jul 2022 10:06:26 -0400 In-Reply-To: <87tu81osgp.fsf@gmail.com> (message from Visuwesh on Fri, 01 Jul 2022 19:17:18 +0530) 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:235814 Archived-At: > From: Visuwesh > Cc: 56323@debbugs.gnu.org > Date: Fri, 01 Jul 2022 19:17:18 +0530 > > > Then you'll need to write your own comparison function and use it > > instead string-lessp. > > > > I suppose so. How does the following look? > > (sort > '("க்" "ங்" "ச்" "ஞ்" "ட்" "ண்" "ற்ற்" "ந்" "ப்" "ய்" > "ம்" "த்" "ர்" "ல்" "வ்" "ள்" "ற்" "ழ்" "ன்" > "ஸ்" "ஜ்" "க்ஷ்" "ஷ்" "ஹ்" "க்‌ஷ்" "ஶ்") > (lambda (x y) > (let* ((cp '(("க்" . 0) ("ங்" . 1) ("ச்" . 2) ("ஞ்" . 3) ("ட்" . 4) ("ண்" . 5) > ("த்" . 6) ("ந்" . 7) ("ப்" . 8) ("ம்" . 9) ("ய்" . 10) ("ர்" . 11) > ("ல்" . 12) ("வ்" . 13) ("ழ்" . 14) ("ள்" . 15) ("ற்" . 16) ("ன்" . 17) > ("ஜ்" . 18) ("ஸ்" . 19) ("ஷ்" . 20) ("ஹ்" . 21) ("க்ஷ்" . 22) > ("க்‌ஷ்" . 23) ("ஶ்" . 24))) > (xp (or (assoc-default x cp nil) 10000)) > (yp (or (assoc-default y cp nil) 10000))) > (< xp yp)))) I don't think I understand what you want to achieve, and don't read Tamil in the first place, to tell you whether this is correct or not, sorry. > >> Can I use the min-width property in buffer text? > > > > Why do you need that? Please tell more about what you want to > > accomplish. > > Currently we don't try too hard to ensure that text don't bump into each > other in the tables we calculate. If you are unlucky, then the table > will be incomprehensible so I thought about putting a reasonable > min-width value on the text in signs table at least. Of course, finding > a reasonable value is a headache in of itself; the better solution would > be probably pulling in the vtable library but I'm not too sure about > that. I think it would be better to be more accurate in alignment of table cells. We do have string-width and string-pixel-width, let alone window-text-pixel-size. > I also attached a screenshot comparing my running Emacs session and > emacs -Q (yellow window is my current Emacs session) to get the point > across better. Looks like simple misalignment to me, which should be cured by using pixel-resolution alignment features.