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#50143: 28.0.50; Various issues with `tamil-itrans' input method Date: Wed, 16 Feb 2022 19:36:36 +0200 Message-ID: <83wnhu1zob.fsf@gnu.org> References: <83fsv2x7jt.fsf@gnu.org> <874k509w4k.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5150"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50143@debbugs.gnu.org, rameshnedunchezian@outlook.com To: Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 16 18:49:25 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 1nKOQe-0001CD-LM for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 16 Feb 2022 18:49:24 +0100 Original-Received: from localhost ([::1]:52750 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nKOQd-00062w-5N for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 16 Feb 2022 12:49:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52988) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nKOEg-0007Fz-Cj for bug-gnu-emacs@gnu.org; Wed, 16 Feb 2022 12:37:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55481) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nKOEg-0007tS-0r for bug-gnu-emacs@gnu.org; Wed, 16 Feb 2022 12:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nKOEf-0004OV-Sf for bug-gnu-emacs@gnu.org; Wed, 16 Feb 2022 12:37:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Feb 2022 17:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50143 X-GNU-PR-Package: emacs Original-Received: via spool by 50143-submit@debbugs.gnu.org id=B50143.164503300016864 (code B ref 50143); Wed, 16 Feb 2022 17:37:01 +0000 Original-Received: (at 50143) by debbugs.gnu.org; 16 Feb 2022 17:36:40 +0000 Original-Received: from localhost ([127.0.0.1]:49378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nKOEJ-0004Nv-KR for submit@debbugs.gnu.org; Wed, 16 Feb 2022 12:36:39 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46052) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nKOEI-0004Ni-2j for 50143@debbugs.gnu.org; Wed, 16 Feb 2022 12:36:38 -0500 Original-Received: from [2001:470:142:3::e] (port=58052 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nKOEC-0007j0-IF; Wed, 16 Feb 2022 12:36:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=S6UrIg7P9ZqrCH4w1VNNGCnPn8kgfNeon2YQIj2sei0=; b=ab2kjD90aNum ZQnx/MaeOJqqmcRuTzhwiTk6qYzuuA7btgIWXwrx0UBK7rDUf4syrPSx12Gz7lBkPN+yh6EcgeSLK +R5RbKrftjR0FswyWBIf0IwDBRccfOxWtwSIOnu+ABOlnXPDhx9T8fVWh8j4qY4VxObY4r93hBqHk p0bdA6ALaYtKNGSxxLmJbpSyYGdyJrgdYxTFp9sb8j7eN9/YpqnbkUPiL+/pHQN0TH3oSDP29AkP6 T05pqVwEEEtn9zRwQ8fI7KAABBWsqeYB9REdw2jerU/R5Tx1wdCtW2nALDYTKtGehgVvDW/S2LKf6 Hlrt4grAH3nmQZBW0+K2mQ==; Original-Received: from [87.69.77.57] (port=3310 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 1nKOEC-0001cA-5Q; Wed, 16 Feb 2022 12:36:32 -0500 In-Reply-To: <874k509w4k.fsf@gmail.com> (message from Visuwesh on Tue, 15 Feb 2022 17:31:31 +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:227040 Archived-At: > From: Visuwesh > Cc: Ramesh Nedunchezian , > 50143@debbugs.gnu.org > Date: Tue, 15 Feb 2022 17:31:31 +0530 > > >> 3. `indian-make-hash` ALWAYS installs translation for decimal digits > >> 0-9. Tamil decimal digits are NOT used at all i.e., it is not even > >> taught in Schools in the state of TamilNadu, India. So, I wanted a > >> way NOT to insall the translation for digits. I suggest one of the > >> following: > >> > >> - Change signature of `(indian-make-hash TABLE TRANS-TABLE)' to > >> `(indian-make-hash TABLE TRANS-TABLE &optional > >> DONT-INSTALL-NATIVE-DIGITS)' or some such thing. > > > > This change of the API is acceptable, so please propose a patch along > > these lines. > > > > I wanted to send a patch so I took a quick look at ind-util.el, and ISTM > that the hashtable `indian-tml-itrans-v5-hash' is calculated just once? > Unfortunately, I don't understand the dances in ind-util.el, > lisp/leim/indian.el, etc. so I'm afraid I cannot be of any help here. > > [ It should be a simple change if we don't make it a defcustom AFAIU. ] > > >> `indian-make-hash' is used by many indic scripts, so I am not > >> sure if other indian language users would have a need for > >> inputting native decimal digits. I--as a representative of Tamil > >> speakers--can say that we don't need that ON by default. > > > > We can use this for Tamil only for now, and wait for users of other > > languages to chime in. > > > > Thanks. > > As a native Tamil speaker, I can attest that contemporary text uses the > Arabic numerals (in fact, Tamil digits are mentioned as a matter of fact > in schools). I'm not sure about the situation in Sri Lanka, tho. It sounds like a better way forward would be to define a separate input method, so that the existing input method is preserved and can be used if someone wants the current transliterations. So my suggestions would be: 1. For your items 1 and 3, just copy indian-tml-base-table to a new variable, modify it to include the two missing characters and replace the digits with nil, add a new variable similar to indian-tml-itrans-v5-hash, and compute its value like we do with indian-tml-itrans-v5-hash, but using the new table instead of indian-tml-base-table. Then make a new input method, called, say, tamil-itrans-alt, which would use the new hash variable instead of indian-tml-itrans-v5-hash. Submit these changes as patches to lisp/language/ind-util.el and lisp/leim/quail/indian.el. 2. For your item 2, submit a patch that fixes the docstring of the relevant input methods. Would that work for you? Can you prepare such patches?