From 1cbcb14716e2a8526e88116490dfd82c05c37714 Mon Sep 17 00:00:00 2001 From: Cibu Johny Date: Fri, 12 Apr 2024 03:56:51 -0700 Subject: [PATCH] No public description PiperOrigin-RevId: 624122365 --- .../scripts/brahmic/data/Deva/hi/reading_norm.textproto | 8 ++++++++ nisaba/scripts/brahmic/testdata/reading_norm.textproto | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/nisaba/scripts/brahmic/data/Deva/hi/reading_norm.textproto b/nisaba/scripts/brahmic/data/Deva/hi/reading_norm.textproto index 183ea5a7..a3818ddf 100644 --- a/nisaba/scripts/brahmic/data/Deva/hi/reading_norm.textproto +++ b/nisaba/scripts/brahmic/data/Deva/hi/reading_norm.textproto @@ -147,3 +147,11 @@ item { uname: ["NA", "VIRAMA", "SA"] raw: "न्स" to_uname: ["ANUSVARA", "SA"] to_raw: "ंस" } + +# Chandrabindu to Anusvara. +# Although, in theory, the two are not interchangeable, they are in practice. +# When we generate text, as in Google Translate, we do not output Chandrabindu. +item { + uname: ["CANDRABINDU"] raw: "ँ" + to_uname: ["ANUSVARA"] to_raw: "ं" +} diff --git a/nisaba/scripts/brahmic/testdata/reading_norm.textproto b/nisaba/scripts/brahmic/testdata/reading_norm.textproto index 13dd29fa..55f60cae 100644 --- a/nisaba/scripts/brahmic/testdata/reading_norm.textproto +++ b/nisaba/scripts/brahmic/testdata/reading_norm.textproto @@ -182,3 +182,7 @@ rewrite { rule: "MLYM" input: "കൌ" output: "കൗ" } rewrite { rule: "MLYM" input: "അതു്" output: "അത്" } rewrite { rule: "MLYM" input: "ഭാൎയ്യ" output: "ഭാര്യ" } rewrite { rule: "MLYM" input: "കൎമ്മം" output: "കർമ്മം" } + +# Chandrabindhu to Anusvara +rewrite { rule: "HI" input: "माँ" output: "मां" } +rewrite { rule: "HI" input: "हैँ" output: "हैं" }