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#56323: 29.0.50; [v2] Add new customisable phonetic Tamil input method Date: Sat, 02 Jul 2022 12:24:39 +0530 Message-ID: <87letcj974.fsf@gmail.com> 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> 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="25075"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 56323@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 02 08:56:54 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 1o7X3l-0006Mw-P1 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Jul 2022 08:56:53 +0200 Original-Received: from localhost ([::1]:42552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o7X3k-0000xP-EI for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 02 Jul 2022 02:56:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41364) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o7X27-0008Kl-Ao for bug-gnu-emacs@gnu.org; Sat, 02 Jul 2022 02:55:11 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45683) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o7X1y-0005qc-4R for bug-gnu-emacs@gnu.org; Sat, 02 Jul 2022 02:55:09 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o7X1x-0003ym-IK for bug-gnu-emacs@gnu.org; Sat, 02 Jul 2022 02:55:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Jul 2022 06:55: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.165674489815282 (code B ref 56323); Sat, 02 Jul 2022 06:55:01 +0000 Original-Received: (at 56323) by debbugs.gnu.org; 2 Jul 2022 06:54:58 +0000 Original-Received: from localhost ([127.0.0.1]:39580 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o7X1u-0003yP-17 for submit@debbugs.gnu.org; Sat, 02 Jul 2022 02:54:58 -0400 Original-Received: from mail-pg1-f196.google.com ([209.85.215.196]:44718) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o7X1q-0003y9-E5 for 56323@debbugs.gnu.org; Sat, 02 Jul 2022 02:54:56 -0400 Original-Received: by mail-pg1-f196.google.com with SMTP id v126so4302979pgv.11 for <56323@debbugs.gnu.org>; Fri, 01 Jul 2022 23:54:54 -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=rV1WI2h7L8P1eXHdUiH0H157kTCq3DIBX+P3XkmDDrk=; b=IDRge6gpMZ22i688HIMuOXVtCbWwbYdwBpHJ1ijEK0QaQw7bbo01s5bxMxlvgDofLS DL4cRV0Du/81YTqD6m3ANUQMTCxRSZvc1TLaCcKyRmBdOoIj9YE04Tff9RaYdja+HLgA Dq/0c0pMpNNVvCzbaLMmBwNVilRXR5X8hW+cZe8/nVUdYlbmzrWhhcqIpaqdcMjy3rLk GrFTT5XRodTobPqwSSIOG6sGQzmKNhQdfn2xnuQlrOdv1TQWEg2b3oRu/cu46d4HJL2C TxvkTcRU1gt7ZQ31z8WyZwd4Yeyj2aBKjeiCuGdkw/DNBlUO84Z8vq85VJp/7Aa/9PJc D3vQ== 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=rV1WI2h7L8P1eXHdUiH0H157kTCq3DIBX+P3XkmDDrk=; b=1EgimNmvNNJ/xLn/ooK4PZBRjHq2cgnwxhJEvgKGAB12awICHrUbchqYYVwyYPntmq MBb3QwTpV/OjJgPXUXxMdd2spEsHUFmgec36CkSw5FcYVY0s1Aky+dL2ZvWd0CmcM21Q tEVi0jdl6fBeMo4IXhrrb1d/2SAh0WlFI+4xG5/cOQ4R6Oipbwiyd1jCRFGZ2cgETtTJ tLI+TALtJiQIvyURHySEVcv1x4czfnyZIITETTrl9ASYHlm97w0urhQ/AR18J4Q3fu7P XioeroUUo4bsiCW/8QaHoMrwHCCd/Xb3vlCg1vym2nasC5WgqFBYPHtF6ENCIcJFAKsF ZwGw== X-Gm-Message-State: AJIora+VQI/uLx15CI5DmiraAIgc8kYkblmnlL5qHdsNI3nA0sv0tauF qQzp6PTAP/HRpU6okWalC/c= X-Google-Smtp-Source: AGRyM1vDuUpj6LB0OCvwVrDECnDOYmCQKNECKlz5WTsnur21Mo3PuUSgzjdKBrgDA46wzETM+bxGDg== X-Received: by 2002:a63:b21:0:b0:3fd:f319:dd6c with SMTP id 33-20020a630b21000000b003fdf319dd6cmr14953883pgl.168.1656744888431; Fri, 01 Jul 2022 23:54:48 -0700 (PDT) Original-Received: from localhost ([49.205.82.58]) by smtp.gmail.com with ESMTPSA id f15-20020a63e30f000000b0040d376ea100sm16518950pgh.73.2022.07.01.23.54.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Jul 2022 23:54:47 -0700 (PDT) In-Reply-To: <83o7y8c983.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 02 Jul 2022 09:35:56 +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:235851 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]= Eli Zaretskii wrote: >> From: Visuwesh >> Cc: 56323@debbugs.gnu.org >> Date: Sat, 02 Jul 2022 09:32:34 +0530 >>=20 >> > Please tell what is the actual order of the characters. That is, >> > where is that order defined, and by what criteria? >>=20 >> I'm not sure what you mean "where is that order defined," I don't think >> there is a definition per se, it just happens to be so. >>=20 >> There are two "classes" of consonants: those that are part of Tamil >> (let's call them "core") and those borrowed from Sanskrit. When one >> writes the consonants in order, the core consonants come first then the >> Sanskrit ones. You can find the order of the core consonants in >> wikipedia here in the table titled "Tamil consonants": >> https://en.wikipedia.org/wiki/Tamil_script#Letters >>=20 >> We need not worry too much about the order of Sanskrit consonants, we >> just need to ensure that they come after the core consonants. You can >> find these Sanskrit consonants in the table titled "Grantha consonants >> in Tamil" in the same link. >>=20 >> I hope this is clear. >>=20 >> As for the criteria, it is simply "Tamil consonants then the Sanskrit >> consonants." > > Then your comparison function should first see whether a character is > in the former or the latter group, and use string-lessp or character > codepoint comparison with each group, right? But that's not what you > did, so I wonder whether my understanding is correct. It didn't occur to me to do it this way so I tried it out but then I noticed, string-lessp even within a group won't work. When you evaluate the following sexp, you don't get a list of increasing numbers... (let ((core-consonants '("=E0=AE=95" "=E0=AE=99" "=E0=AE=9A" "=E0=AE=9E= " "=E0=AE=9F" "=E0=AE=A3" "=E0=AE=A4" "=E0=AE=A8" "=E0=AE=AA" "=E0=AE=AE" "=E0=AE=AF= " "=E0=AE=B0" "=E0=AE=B2" "=E0=AE=B5" "=E0=AE=B4" "=E0=AE=B3" "=E0=AE=B1= " "=E0=AE=A9"))) (mapcar (lambda (c) (string-to-char c)) core-consonants)) ;; =3D> (2965 2969 2970 2974 2975 2979 2980 2984 2986 2990 2991 2992 2994 2997 2996 2995 2993 2985) and sure enough when you do (sort core-consonants #'string-lessp) the list is jumbled up instead of retaining the order. [ core-consonants, as declared, is in the right order but sort jumbles it up. ] But string-lessp works for vowels. It is the consonants that is the problem.