[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#56323: 29.0.50; [v2] Add new customisable phonetic Tamil input metho
From: |
Visuwesh |
Subject: |
bug#56323: 29.0.50; [v2] Add new customisable phonetic Tamil input method |
Date: |
Fri, 01 Jul 2022 18:29:00 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
[வியாழன் ஜூன் 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
Description: Text Data
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.
- bug#56323: 29.0.50; [v2] Add new customisable phonetic Tamil input method,
Visuwesh <=
- bug#56323: 29.0.50; [v2] Add new customisable phonetic Tamil input method, Visuwesh, 2022/07/01
- bug#56323: 29.0.50; [v2] Add new customisable phonetic Tamil input method, Eli Zaretskii, 2022/07/01
- bug#56323: 29.0.50; [v2] Add new customisable phonetic Tamil input method, Visuwesh, 2022/07/01
- bug#56323: 29.0.50; [v2] Add new customisable phonetic Tamil input method, Eli Zaretskii, 2022/07/01
- bug#56323: 29.0.50; [v2] Add new customisable phonetic Tamil input method, Visuwesh, 2022/07/01
- bug#56323: 29.0.50; [v2] Add new customisable phonetic Tamil input method, Eli Zaretskii, 2022/07/01
- bug#56323: 29.0.50; [v2] Add new customisable phonetic Tamil input method, Visuwesh, 2022/07/01
- bug#56323: 29.0.50; [v2] Add new customisable phonetic Tamil input method, Eli Zaretskii, 2022/07/01
- bug#56323: 29.0.50; [v2] Add new customisable phonetic Tamil input method, Visuwesh, 2022/07/02
- bug#56323: 29.0.50; [v2] Add new customisable phonetic Tamil input method, Eli Zaretskii, 2022/07/02