Subject: [PATCH] Make gujarati-itrans method more phonetic

From: Visuwesh <[email-masked]>
Date: Wed, 06 Jul 2022 10:14:58 +0530

Tags: patch
X-Debugs-Cc: [email-masked]

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.

>From 79803dccbd779b804100b57039fb7c9c2fc5ced9 Mon Sep 17 00:00:00 2001
From: Visuwesh <[email-masked]>
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