unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#56414: [PATCH] Make gujarati-itrans method more phonetic
@ 2022-07-06  4:44 Visuwesh
  2022-07-06  5:33 ` समीर सिंह Sameer Singh
  0 siblings, 1 reply; 4+ messages in thread
From: Visuwesh @ 2022-07-06  4:44 UTC (permalink / raw)
  To: 56414

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

Tags: patch
X-Debugs-Cc: kaushal.modi@gmail.com

In a private exchange I had with Kashual Modi (CC'ed), I learnt that the
translations for ઋ and ૠ should be RRu and RRU respectively since they
are pronounced as ru and not ri (the current translations are RRi and
RRI respectively).  This is also reflected in the table found in the
Vowels section in the wikipedia link here
https://en.wikipedia.org/wiki/Gujarati_script#Gujarati_letters,_diacritics,_and_digits.

Attached patch adjusts the gujarati-itrans translation table to make it
a bit more phonetic by following the above (and also fixes a typo I made
in my last patch).

Thanks.


[-- Attachment #2: 0001-Make-the-gujarati-itrans-more-phonetic.patch --]
[-- Type: text/x-diff, Size: 2776 bytes --]

From 79803dccbd779b804100b57039fb7c9c2fc5ced9 Mon Sep 17 00:00:00 2001
From: Visuwesh <visuweshm@gmail.com>
Date: Wed, 6 Jul 2022 10:03:59 +0530
Subject: [PATCH] Make the gujarati-itrans more phonetic

* lisp/language/ind-util.el (indian-itrans-v5-table-for-gjr): New
translation table for Gujarati.
(indian-gjr-itrans-v5-hash): Use the new table.
(indian-tml-base-table, indian-tml-base-digits-table): Fix typo.
---
 lisp/language/ind-util.el | 25 ++++++++++++++++++++++---
 1 file changed, 22 insertions(+), 3 deletions(-)

diff --git a/lisp/language/ind-util.el b/lisp/language/ind-util.el
index fa380dbde7..cbddb41bf3 100644
--- a/lisp/language/ind-util.el
+++ b/lisp/language/ind-util.el
@@ -269,7 +269,7 @@ indian-tml-base-table
      ?ய ?ர ?ற ?ல ?ள ?ழ ?வ          ;; SEMIVOWELS
      ?ஶ ?ஷ ?ஸ ?ஹ                    ;; SIBILANTS
      nil nil nil nil nil nil nil nil      ;; NUKTAS
-     "ஜ்ஞ" "க்ஷ" "க்‌ஷ்")
+     "ஜ்ஞ" "க்ஷ" "க்‌ஷ")
     (;; Misc Symbols
      nil ?ஂ ?ஃ nil ?் ?ௐ nil)
     (;; Digits
@@ -292,7 +292,7 @@ indian-tml-base-digits-table
      ?ய ?ர ?ற ?ல ?ள ?ழ ?வ          ;; SEMIVOWELS
      ?ஶ ?ஷ ?ஸ ?ஹ                    ;; SIBILANTS
      nil nil nil nil nil nil nil nil      ;; NUKTAS
-     "ஜ்ஞ" "க்ஷ" "க்‌ஷ்")
+     "ஜ்ஞ" "க்ஷ" "க்‌ஷ")
     (;; Misc Symbols
      nil ?ஂ ?ஃ nil ?் ?ௐ nil)
     (;; Digits
@@ -330,6 +330,25 @@ indian-itrans-v5-table
     (;; misc -- 7
      ".N" (".n" "M") "H" ".a" ".h" ("AUM" "OM") "..")))
 
+(defvar indian-itrans-v5-table-for-gjr
+  '(;; for encode/decode
+    (;; vowels -- 18
+     "a" ("aa" "A") "i" ("ii" "I") "u" ("uu" "U")
+     ("RRu" "R^u") ("LLi" "L^i") (".c" "e.c") "E" "e" "ai"
+     "o.c"  "O"   "o"   "au"  ("RRU" "R^U") ("LLI" "L^I"))
+    (;; consonants -- 40
+     "k"   "kh"  "g"   "gh"  ("~N" "N^")
+     "ch" ("Ch" "chh") "j" "jh" ("~n" "JN")
+     "T"   "Th"  "D"   "Dh"  "N"
+     "t"   "th"  "d"   "dh"  "n"   "nh"
+     "p"   "ph"  "b"   "bh"  "m"
+     "y"   "r"   "rh"  "l"   ("L" "ld") nil  ("v" "w")
+     "sh" ("Sh" "shh") "s" "h"
+     "q" "K" "G" ("J" "z") ".D" ".Dh" "f" ("Y" "yh")
+     ("GY" "dny") "x")
+    (;; misc -- 7
+     ".N" (".n" "M") "H" ".a" ".h" ("AUM" "OM") "..")))
+
 (defvar indian-itrans-v5-table-for-tamil
   '(;; for encode/decode
     (;; vowels -- 18
@@ -547,7 +566,7 @@ indian-pnj-itrans-v5-hash
 
 (defvar indian-gjr-itrans-v5-hash
   (indian-make-hash indian-gjr-base-table
-			  indian-itrans-v5-table))
+			  indian-itrans-v5-table-for-gjr))
 
 (defvar indian-ori-itrans-v5-hash
   (indian-make-hash indian-ori-base-table
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#56414: [PATCH] Make gujarati-itrans method more phonetic
  2022-07-06  4:44 bug#56414: [PATCH] Make gujarati-itrans method more phonetic Visuwesh
@ 2022-07-06  5:33 ` समीर सिंह Sameer Singh
  2022-07-06  6:04   ` Visuwesh
  0 siblings, 1 reply; 4+ messages in thread
From: समीर सिंह Sameer Singh @ 2022-07-06  5:33 UTC (permalink / raw)
  To: Visuwesh; +Cc: 56414

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

Not only Gujarati, I think languages like Marathi (uses Devanagari script),
Konkani (uses Devanagari and Kannada script), Kannada and Telugu also
pronounce ऋ as ru and ॠ as ruu.

Therefore instead of introducing a new table we should simply add more
options in the pre-existing indian-itrans-v5-table, like we have already
done for something like ज्ञ which is pronounced
as "gya" in Hindi and "dnya" in Marathi.

Something like:
1 file changed, 2 insertions(+), 2 deletions(-)
lisp/language/ind-util.el | 4 ++--

modified   lisp/language/ind-util.el
@@ -315,8 +315,8 @@ indian-itrans-v5-table
   '(;; for encode/decode
     (;; vowels -- 18
      "a" ("aa" "A") "i" ("ii" "I") "u" ("uu" "U")
-     ("RRi" "R^i") ("LLi" "L^i") (".c" "e.c") "E" "e" "ai"
-     "o.c"  "O"   "o"   "au"  ("RRI" "R^I") ("LLI" "L^I"))
+     ("RRi" "R^i" "RRu" "R^u") ("LLi" "L^i") (".c" "e.c") "E" "e" "ai"
+     "o.c"  "O"   "o"   "au"  ("RRI" "R^I" "RRU" "R^U") ("LLI" "L^I"))
     (;; consonants -- 40
      "k"   "kh"  "g"   "gh"  ("~N" "N^")
      "ch" ("Ch" "chh") "j" "jh" ("~n" "JN")


On Wed, Jul 6, 2022 at 10:16 AM Visuwesh <visuweshm@gmail.com> wrote:

> Tags: patch
> X-Debugs-Cc: kaushal.modi@gmail.com
>
> In a private exchange I had with Kashual Modi (CC'ed), I learnt that the
> translations for ઋ and ૠ should be RRu and RRU respectively since they
> are pronounced as ru and not ri (the current translations are RRi and
> RRI respectively).  This is also reflected in the table found in the
> Vowels section in the wikipedia link here
>
> https://en.wikipedia.org/wiki/Gujarati_script#Gujarati_letters,_diacritics,_and_digits
> .
>
> Attached patch adjusts the gujarati-itrans translation table to make it
> a bit more phonetic by following the above (and also fixes a typo I made
> in my last patch).
>
> Thanks.
>
>

[-- Attachment #2: Type: text/html, Size: 3141 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#56414: [PATCH] Make gujarati-itrans method more phonetic
  2022-07-06  5:33 ` समीर सिंह Sameer Singh
@ 2022-07-06  6:04   ` Visuwesh
  2022-07-07  6:48     ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Visuwesh @ 2022-07-06  6:04 UTC (permalink / raw)
  To: समीर सिंह Sameer Singh
  Cc: 56414

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

[புதன் ஜூலை 06, 2022] समीर सिंह Sameer Singh wrote:

> Not only Gujarati, I think languages like Marathi (uses Devanagari script),
> Konkani (uses Devanagari and Kannada script), Kannada and Telugu also
> pronounce ऋ as ru and ॠ as ruu.
>
> Therefore instead of introducing a new table we should simply add more
> options in the pre-existing indian-itrans-v5-table, like we have already
> done for something like ज्ञ which is pronounced
> as "gya" in Hindi and "dnya" in Marathi.
>

Sounds good to me.

Revised patch attached.


[-- Attachment #2: 0001-Make-the-Indian-itrans-methods-more-phonetic.patch --]
[-- Type: text/x-diff, Size: 2284 bytes --]

From 85ca8fd4a3cc9e1a2a30fdeb5b10db2999be2600 Mon Sep 17 00:00:00 2001
From: Visuwesh <visuweshm@gmail.com>
Date: Wed, 6 Jul 2022 10:03:59 +0530
Subject: [PATCH] Make the Indian itrans methods more phonetic
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The characters ऋ and ॠ are pronunced as ru in languages such as
Marathi, Gujarati, Telugu, etc. so add new translation rules that
reflects this sound.  (bug#56414)

* lisp/language/ind-util.el (indian-itrans-v5-table): Add new
translation rules to make the input method more phonetic.
(indian-tml-base-table, indian-tml-base-digits-table): Fix typo.
---
 lisp/language/ind-util.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lisp/language/ind-util.el b/lisp/language/ind-util.el
index fa380dbde7..27facaa858 100644
--- a/lisp/language/ind-util.el
+++ b/lisp/language/ind-util.el
@@ -269,7 +269,7 @@ indian-tml-base-table
      ?ய ?ர ?ற ?ல ?ள ?ழ ?வ          ;; SEMIVOWELS
      ?ஶ ?ஷ ?ஸ ?ஹ                    ;; SIBILANTS
      nil nil nil nil nil nil nil nil      ;; NUKTAS
-     "ஜ்ஞ" "க்ஷ" "க்‌ஷ்")
+     "ஜ்ஞ" "க்ஷ" "க்‌ஷ")
     (;; Misc Symbols
      nil ?ஂ ?ஃ nil ?் ?ௐ nil)
     (;; Digits
@@ -292,7 +292,7 @@ indian-tml-base-digits-table
      ?ய ?ர ?ற ?ல ?ள ?ழ ?வ          ;; SEMIVOWELS
      ?ஶ ?ஷ ?ஸ ?ஹ                    ;; SIBILANTS
      nil nil nil nil nil nil nil nil      ;; NUKTAS
-     "ஜ்ஞ" "க்ஷ" "க்‌ஷ்")
+     "ஜ்ஞ" "க்ஷ" "க்‌ஷ")
     (;; Misc Symbols
      nil ?ஂ ?ஃ nil ?் ?ௐ nil)
     (;; Digits
@@ -315,8 +315,8 @@ indian-itrans-v5-table
   '(;; for encode/decode
     (;; vowels -- 18
      "a" ("aa" "A") "i" ("ii" "I") "u" ("uu" "U")
-     ("RRi" "R^i") ("LLi" "L^i") (".c" "e.c") "E" "e" "ai"
-     "o.c"  "O"   "o"   "au"  ("RRI" "R^I") ("LLI" "L^I"))
+     ("RRi" "R^i" "RRu" "R^u") ("LLi" "L^i") (".c" "e.c") "E" "e" "ai"
+     "o.c"  "O"   "o"   "au"  ("RRI" "R^I" "RRU" "R^U") ("LLI" "L^I"))
     (;; consonants -- 40
      "k"   "kh"  "g"   "gh"  ("~N" "N^")
      "ch" ("Ch" "chh") "j" "jh" ("~n" "JN")
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#56414: [PATCH] Make gujarati-itrans method more phonetic
  2022-07-06  6:04   ` Visuwesh
@ 2022-07-07  6:48     ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2022-07-07  6:48 UTC (permalink / raw)
  To: Visuwesh; +Cc: 56414-done, lumarzeli30

> Cc: 56414@debbugs.gnu.org
> From: Visuwesh <visuweshm@gmail.com>
> Date: Wed, 06 Jul 2022 11:34:51 +0530
> 
> [புதன் ஜூலை 06, 2022] समीर सिंह Sameer Singh wrote:
> 
> > Not only Gujarati, I think languages like Marathi (uses Devanagari script),
> > Konkani (uses Devanagari and Kannada script), Kannada and Telugu also
> > pronounce ऋ as ru and ॠ as ruu.
> >
> > Therefore instead of introducing a new table we should simply add more
> > options in the pre-existing indian-itrans-v5-table, like we have already
> > done for something like ज्ञ which is pronounced
> > as "gya" in Hindi and "dnya" in Marathi.
> >
> 
> Sounds good to me.
> 
> Revised patch attached.

Thanks, installed.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-07-07  6:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-06  4:44 bug#56414: [PATCH] Make gujarati-itrans method more phonetic Visuwesh
2022-07-06  5:33 ` समीर सिंह Sameer Singh
2022-07-06  6:04   ` Visuwesh
2022-07-07  6:48     ` Eli Zaretskii

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).