GNU bug report logs - #56323
29.0.50; Add new customisable phonetic Tamil input method

Previous Next

Package: emacs;

Reported by: Visuwesh <visuweshm <at> gmail.com>

Date: Thu, 30 Jun 2022 12:14:02 UTC

Severity: wishlist

Tags: patch

Found in version 29.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 56323 <at> debbugs.gnu.org (full text, mbox):

From: Visuwesh <visuweshm <at> gmail.com>
To: 56323 <at> debbugs.gnu.org
Subject: Re: bug#56323: 29.0.50; [v2] Add new customisable phonetic Tamil
 input method
Date: Fri, 01 Jul 2022 18:29:00 +0530
[Message part 1 (text/plain, inline)]
[வியாழன் ஜூன் 30, 2022] Visuwesh wrote:

> The second patch actually adds the new phonetic input method.  I will
> leave the rationale for making it a _customisable_ input method in
> footnote [1].  To reuse the existing code that calculates the various
> tables for the tamil-itrans IM, I turned the code in defvars to defuns.
> However, the definition of the almighty
> quail-tamil-itrans-syllable-table is still huge since I needed to do a
> whole lot to convert the indian-tml-base-table to a format that will
> accepted by the new defun `quail-tamil-itrans-compute-syllable-table'.
> [blah blah blah...]

Here's a second revision of the second patch.

[0001-Add-new-customizable-phonetic-Tamil-input-method.patch (text/x-diff, attachment)]
[Message part 3 (text/plain, inline)]
I still haven't added a :set function yet since I'm not sure if there's
a way to avoid the chain of boundp checks.

In this revision, I simplified the code a tiny bit wrt calculating the
translation table since I no longer use the indian-make-hash function
but call whatever functions it call directly in
tamil--update-quail-rules: this greatly reduces the amount of massaging
that needs to be done.

Also, can someone guide me to write a sort function for
quail-tamil-itrans-compute-syllable-table please?  The ideal order of
consonants should be the same as the one in the default value of
tamil-consonant-translation, same for tamil-vowel-translation.  I tried
the following

    (sort (reverse (mapcar #'car tamil-consonant-translation))
          (lambda (x y) (let ((lx (length x))
                              (ly (length y)))
                           (if (= lx ly) (string-lessp x y) (< lx ly)))))


but that definitely doesn't do what I want.  The idea was to sort the
list so that the basic consonants (க் ங் ச் etc.) first then the composite
ones (க்‌ஷ் க்ஷ் etc.) but `string-lessp' does not even sort the basic
consonants in the right order (the right order being the order in the
default value of `tamil-consonant-translation').

Can I use the min-width property in buffer text?  I'm not sure if it was
finished since I remember some discussion surrounding that it wasn't
quite finished yet.  I would like to try to use it for syllable table
and friends.

This bug report was last modified 2 years and 312 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.