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: Sat, 02 Jul 2022 11:29:55 +0300 Message-ID: <83fsjjdiik.fsf@gnu.org> References: <87pmiqe4da.fsf@gmail.com> <878rpdq99n.fsf@gmail.com> <83fsjldl2b.fsf@gnu.org> <87tu81osgp.fsf@gmail.com> <83czepdj0z.fsf@gnu.org> <87pmioq51w.fsf@gmail.com> <831qv4erwf.fsf@gnu.org> <87r134aiwd.fsf@gmail.com> <83wncwd7gy.fsf@gnu.org> <8735fkkvqd.fsf@gmail.com> <83o7y8c983.fsf@gnu.org> <87letcj974.fsf@gmail.com> <83k08wc7a3.fsf@gnu.org> <878rpcj5ne.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="7354"; 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 Sat Jul 02 10:31:19 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 1o7YX8-0001nE-Ut for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Jul 2022 10:31:19 +0200 Original-Received: from localhost ([::1]:33300 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o7YX7-0003bi-EZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Jul 2022 04:31:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54554) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7YWt-0003a9-LJ for bug-gnu-emacs@gnu.org; Sat, 02 Jul 2022 04:31:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45806) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o7YWs-0001UJ-28 for bug-gnu-emacs@gnu.org; Sat, 02 Jul 2022 04:31:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o7YWr-0000P8-R0 for bug-gnu-emacs@gnu.org; Sat, 02 Jul 2022 04:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Jul 2022 08:31: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.16567506091460 (code B ref 56323); Sat, 02 Jul 2022 08:31:01 +0000 Original-Received: (at 56323) by debbugs.gnu.org; 2 Jul 2022 08:30:09 +0000 Original-Received: from localhost ([127.0.0.1]:39703 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o7YW1-0000NU-8e for submit@debbugs.gnu.org; Sat, 02 Jul 2022 04:30:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41060) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o7YVx-0000LJ-Ps for 56323@debbugs.gnu.org; Sat, 02 Jul 2022 04:30:07 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45938) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7YVs-00010s-HS; Sat, 02 Jul 2022 04:30:00 -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=Z0e6L5pmwjHBX+HTk+Ze9FnKsHzPb4qS5FNNmA9agYc=; b=qHTeSoxRF/wz23ski+Ri jysTH5NICGoNfvaFIbKWqGn5rhJ6wnfVUUdom5Bq9/X5runj4hcosGD54ziBgAsty73Gc9HDCtBBx kpEs0eeKACn2HXgE78JNxsbVfTKTxQWacSC2kxiHavjiO66NAd8h5B+xdpYs8TNzF+GqxBDdtGE1h GhQmebmbmID77jU0L/ep/mtq6iCvaCn/lzgkfR5J6MxIBnCkZTLWx98IK8zylpE6l/MHnsQBZ990g xJfMTSXyI8RxSEfLqXdPY7gZtrzIqW6g4pjmc1YkC0WZxjFAzTJnSMyBA3Wk4EujVeavJJ1pvZ3kd e+kEWuudMsCorQ==; Original-Received: from [87.69.77.57] (port=1410 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 1o7YVr-0004z2-Ta; Sat, 02 Jul 2022 04:30:00 -0400 In-Reply-To: <878rpcj5ne.fsf@gmail.com> (message from Visuwesh on Sat, 02 Jul 2022 13:41:17 +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:235860 Archived-At: > From: Visuwesh > Cc: 56323@debbugs.gnu.org > Date: Sat, 02 Jul 2022 13:41:17 +0530 > > > (defun sort-by-codepoint (c1 c2) > > (< (string-to-char c1) (string-to-char c2))) > > > > (let ((core-consonants '("க" "ங" "ச" "ஞ" "ட" "ண" "த" > > "ந" "ப" "ம" "ய" "ர" "ல" > > "வ" "ழ" "ள" "ற" "ன"))) > > > > (sort core-consonants 'sort-by-codepoint)) > > => ("க" "ங" "ச" "ஞ" "ட" "ண" "த" "ந" "ன" "ப" "ம" "ய" "ர" "ற" "ல" "ள" "ழ" "வ") > > > > (To understand why, read the doc string of 'sort' carefully, where it > > explains what is expected from PREDICATE.) > > Unfortunately not, since it jumbles up the list. The desired outcome is > the same list. But we already established that you need to break the list in two, and always sort any member of one of the two sub-lists before any member of the other sub-list. I then suggested to use string-lessp _within_ each sub-list, but you said it still yielded a wrong order for some reason. So when you now return to the issue of splitting the list in two, and show how sorting the full list doesn't work, you make a step back: we already established the list cannot be sorted as a single list. The only remaining issue, AFAIU, is why string-lessp is not good enough for sorting within each sub-list.