m17n-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Request to add a new layout for Malayalam


From: Mike FABIAN
Subject: Re: Request to add a new layout for Malayalam
Date: Sat, 04 Nov 2023 11:59:44 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Mike FABIAN <mfabian@redhat.com> さんはかきました:

> Ajith R <ajithramayyan@yahoo.co.in> さんはかきました:
>
>> Dear Mike,
>>
>> Thanks for the merge request. I have accepted it.
>
> Great, thank you! I’ll try to make a new m17n-db release next week with
> your new input method.
>
>> I have a few doubts regarding ibus -
>>
>> 1)  Does it support more than two levels?
>
> What do you mean by "levels"?
>
>> 2) Is there a way to allow users to select how a key behaves? For
>> example, in my layout some keys whem pressed would give geminate form
>> of a character. While I think it is is the best option, some users may
>> want it to give the non geminate form. Is it possible to set user
>> choices other than by modifying the mim file?
>
> Ah, yes, it is possible to add options to the mim file.
>
> Here is an example:
>
> https://git.savannah.nongnu.org/cgit/m17n/m17n-db.git/tree/MIM/bn-national-jatiya.mim

For example, you could do something like this:

$ git diff 
diff --git a/MIM/ml-pn-c.mim b/MIM/ml-pn-c.mim
index c7be4f9..6cc879d 100755
--- a/MIM/ml-pn-c.mim
+++ b/MIM/ml-pn-c.mim
@@ -33,6 +33,12 @@ See https://ajithramayyan.gitlab.io/puthunira/ for usage
 
 (title "pn-c")
 
+(variable
+ (use-geminate-form
+  (_"If this variable is 1 (the default), the geminate forms are used.
+... maybe describe in more detail here what that means ... .")
+  1 0 1)) ; ((NAME [DESCRIPTION DEFAULT-VALUE VALID-VALUE ...])
+
 (map
  (vL   ;; vowel Letters
   ("f" "അ")
@@ -98,7 +104,9 @@ See https://ajithramayyan.gitlab.io/puthunira/ for usage
   ("e" "ല")
   ("r" "") ;; the chillu key r doesn't have a character associated. Forms 
chillu of the consonant after which it is typed
   ("t" "ഈ")
-  ("y" "ങ്ങ") ;; geminate form is much more common than the non-geminate form
+  ("y" (cond
+        ((= use-geminate-form 1) "ങ്ങ") ;; geminate form is much more common 
than the non-geminate form
+        (1 "put non geminate form here")))
   ("u" "ത")
   ("i" "എ")
   ("o" "റ")

These screenshots show how the setting for that option look like in the
setup tool of ibus-m17n and ibus-typing-booster:

Attachment: Screenshot-ibus-m17n-setup-geminate-option.png
Description: PNG image

Attachment: Screenshot-ibus-typing-booster-setup-geminate-option.png
Description: PNG image

In case of ibus-m17n, if that option is changed, ibus needs to be
restarted to see the effect of the change.

In case of ibus-typing-booster, the change is effective immediately
after changing that option in the ibus-typing-booster setup.

-- 
Mike FABIAN <mfabian@redhat.com>
睡眠不足はいい仕事の敵だ。

reply via email to

[Prev in Thread] Current Thread [Next in Thread]