varnamproject / govarnam

Easily type Indic languages on computer and mobile. GoVarnam is a cross-platform transliteration library. Manglish -> Malayalam, Thanglish -> Tamil, Hinglish -> Hindi plus another 10 languages. GoVarnam is a near-Go port of libvarnam
https://varnamproject.com
Other
145 stars 11 forks source link

Allow symbol removal from VST in VST Maker #23

Open subins2000 opened 2 years ago

subins2000 commented 2 years ago

VST Maker should allow to remove a symbol from VST using a matching condition. In Malayalam scheme:

anusvara [["m"]] => ["ം","ം","മ"]
anusvara "m_" =>  ["ം","ം","മ"]
anusvara({:accept_if => :ends_with}, "m" => ["ം","ം","മ"])
anusvara({:accept_if => :in_between}, "m" => ["ം","ം","മ"])

consonants ["ma"] => "മ"

generate_cv

The CV generation makes m => മ് but there is no use of മ് at the end of a string, anusvara will be used instead. So, need to remove the generated m => മ് and then custom add it:

anusvara({:accept_if => :starts_with}, "m" => ["മ്"])
anusvara({:accept_if => :in_between}, "m" => ["മ്])