indic-transliteration / sanscript.js

Transliteration package for Indian scripts
MIT License
99 stars 39 forks source link

transliterating from incomplete schemes (i.e., Tamil) #25

Open chchch opened 4 years ago

chchch commented 4 years ago

Hi,

When transliterating from Tamil, you should use the first letter of duplicated letters in the list. For example, க should be transliterated as ka. At the moment, it is transliterated as gha, because in the makeMap function, each successive repeated character in the scheme overwrites the previous one. I.e.,, when ["க","க","க","க"] gets mapped to ["ka", "kha", "ga", "gha"], you end up with "க" = "gha".

vvasuki commented 4 years ago

Good catch! Please fix, test and send a pull request.