unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Visuwesh <visuweshm@gmail.com>
To: 56414@debbugs.gnu.org
Subject: bug#56414: [PATCH] Make gujarati-itrans method more phonetic
Date: Wed, 06 Jul 2022 10:14:58 +0530	[thread overview]
Message-ID: <874jzuzw6t.fsf@gmail.com> (raw)

[-- 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


             reply	other threads:[~2022-07-06  4:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-06  4:44 Visuwesh [this message]
2022-07-06  5:33 ` bug#56414: [PATCH] Make gujarati-itrans method more phonetic समीर सिंह Sameer Singh
2022-07-06  6:04   ` Visuwesh
2022-07-07  6:48     ` 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=874jzuzw6t.fsf@gmail.com \
    --to=visuweshm@gmail.com \
    --cc=56414@debbugs.gnu.org \
    /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).