unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Visuwesh <visuweshm@gmail.com>
To: Arun Isaac <arunisaac@systemreboot.net>
Cc: 58070@debbugs.gnu.org
Subject: bug#58070: [PATCH] Add tamil99 input method
Date: Sun, 25 Sep 2022 17:08:50 +0530	[thread overview]
Message-ID: <87h70vsmyd.fsf@gmail.com> (raw)
In-Reply-To: <20220925100244.13482-1-arunisaac@systemreboot.net> (Arun Isaac's message of "Sun, 25 Sep 2022 15:32:44 +0530")

[-- Attachment #1: Type: text/plain, Size: 3671 bytes --]

[ஞாயிறு செப்டம்பர் 25, 2022] Arun Isaac wrote:

> +(defun tamil99-install ()
> +  "Install tamil99 input method."
> +  (quail-define-rules)
> +  ;; உயிர்
> +  ;; vowel
> +  (mapc (pcase-lambda (`(,vowel-key ,vowel))
> +          (quail-defrule vowel-key vowel))
> +        tamil99-vowels)
> +  (mapc (pcase-lambda (`(,consonant-key ,consonant))
> +          ;; அகர உயிர்மெய்
> +          ;; consonant with agaram (அ)
> +          (quail-defrule consonant-key consonant)
> +          ;; மெய்யொற்று பின் அகர உயிர்மெய்
> +          ;; pulli on double consonant
> +          (quail-defrule (concat consonant-key consonant-key)
> +                         (vector (concat consonant "்" consonant)))
> +          (mapc (pcase-lambda (`(,vowel-key ,vowel-modifier))
> +                  ;; உயிர்மெய்
> +                  ;; vowel+consonant
> +                  (quail-defrule (concat consonant-key vowel-key)
> +                                 (vector (concat consonant vowel-modifier)))
> +                  ;; மெய்யொற்று பின் உயிர்மெய்
> +                  ;; vowel+consonant after double consonant
> +                  (quail-defrule (concat consonant-key consonant-key vowel-key)
> +                                 (vector (concat consonant "்" consonant vowel-modifier))))
> +                tamil99-vowel-modifiers))
> +        tamil99-consonants)
> +  (seq-mapn (pcase-lambda (`(,mellinam-consonant-key ,mellinam-consonant)
> +                           `(,vallinam-consonant-key ,vallinam-consonant))
> +              ;; மெல்லினம் பின் வல்லினம்
> +              ;; vallinam after mellinam
> +              (quail-defrule (concat mellinam-consonant-key vallinam-consonant-key)
> +                             (vector (concat mellinam-consonant "்" vallinam-consonant)))
> +              (mapc (pcase-lambda (`(,vowel-key ,vowel-modifier))
> +                      ;; மெல்லின ஒற்றொட்டிய வல்லினம் பின் உயிர்மெய்
> +                      ;; vowel+consonant after mellinam-vallinam consonant
> +                      (quail-defrule (concat mellinam-consonant-key vallinam-consonant-key vowel-key)
> +                                     (vector (concat mellinam-consonant "்" vallinam-consonant vowel-modifier))))
> +                    tamil99-vowel-modifiers))
> +            tamil99-mellinam-consonants
> +            tamil99-vallinam-consonants)
> +  ;; பிற வரியுருக்கள்
> +  ;; other characters
> +  (mapc (pcase-lambda (`(,key ,translation))
> +          (quail-defrule key translation))
> +        tamil99-other))

Hi, I have a tamil99 keyboard layout in the works as well, and I'm
slowly dogfeeding it whilst also learning the layout.  I use a different
approach to add these special rules: using a UPDATE-TRANSLATION-FUNCTION.
This has the advantage that you can insert the vowel sign for any
consonant out-of-sequence i.e., you can say h j BACKSPACE s
to insert கி (and so do other rules).  WDYT about this approach, is this
feasible?

AFAIK, MS Windows' tamil99 keyboard layout behaves like mine, whereas
the ibus layout behaves like your implementation.  If you are a heavy
user of this layout, can you try out the attached?

The only reason why I haven't submitted a patch so far is because I was
not sure if my implementation wasn't riddled of bugs.


[-- Attachment #2: tamil99.el --]
[-- Type: application/emacs-lisp, Size: 8998 bytes --]

  reply	other threads:[~2022-09-25 11:38 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-25 10:00 bug#58070: [PATCH 0/1] Add tamil99 input method Arun Isaac
2022-09-25 10:02 ` bug#58070: [PATCH] " Arun Isaac
2022-09-25 11:38   ` Visuwesh [this message]
2022-09-25 13:59     ` Eli Zaretskii
2022-09-25 14:14       ` Visuwesh
2022-09-25 14:23         ` Eli Zaretskii
2022-09-25 14:38           ` Visuwesh
2022-09-25 15:55             ` Eli Zaretskii
2022-09-26 20:59               ` Arun Isaac
2022-09-27  6:25                 ` Eli Zaretskii
2022-09-27 20:34                   ` Arun Isaac
2022-09-26 20:55     ` Arun Isaac
2022-09-27  1:49       ` Visuwesh
2022-09-27  2:29         ` Visuwesh
2022-09-27  6:37         ` Eli Zaretskii
2022-09-27  7:34           ` Visuwesh
2022-09-27  7:53             ` Eli Zaretskii
2022-09-27  9:24               ` Robert Pluim
2022-09-27  9:40                 ` Eli Zaretskii
2022-09-27 10:11               ` Visuwesh
2022-09-27 20:32         ` Arun Isaac
2022-09-27  6:23       ` Eli Zaretskii
2022-09-27  7:52         ` Visuwesh
2022-09-27  8:03           ` Eli Zaretskii
2022-09-27 10:15             ` Visuwesh
2022-10-12  8:40             ` Arun Isaac
2022-10-12 14:00               ` Eli Zaretskii
2022-10-15  8:23                 ` Arun Isaac
2022-09-27 20:19           ` Arun Isaac
2022-09-27 20:26         ` Arun Isaac
2022-09-28  2:30           ` Eli Zaretskii
2022-09-25 10:13 ` bug#58070: [PATCH 0/1] " Eli Zaretskii
2022-09-25 11:16   ` Arun Isaac
2022-10-12  8:41     ` Arun Isaac
2022-10-12 13:55       ` Eli Zaretskii
2022-10-15  8:34         ` Arun Isaac
2022-10-15  9:16           ` bug#58070: [PATCH v2] " Arun Isaac
2022-10-15 14:42           ` bug#58070: [PATCH 0/1] " Visuwesh
2022-10-18  7:11             ` Arun Isaac
2022-10-18 18:00               ` bug#58070: [PATCH v3] " Arun Isaac
2022-10-19 11:41                 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h70vsmyd.fsf@gmail.com \
    --to=visuweshm@gmail.com \
    --cc=58070@debbugs.gnu.org \
    --cc=arunisaac@systemreboot.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).