Thread:User talk:CodeCat/Module:si-translit for Sinhalese, please?

Can I push my luck and ask for more help? I've asked User:ZxxZxxZ who made Module:hi-translit to work better but he is unavailable. I actually built this module based on the Hindi module but I only understand what it does (roughly), not how it works.

Anyway, the design doesn't have to be the same as long as it works. Consonants are transliterated as they are in the table but add an "a" if they are not followed by a diacritic, so, 'ක' + 'ා' = කා (kā). "a" is an inherent vowel like in Hindi but the rules also apply for the end of the word, කන්ද (kanda) = 'ක' + 'න' + '්' + 'ද'.

I will add any missing symbols. Will test on conjucts. This may not be perfect but even Google can't handle Sinhalese script, would be great if you could have a simple tool like this one.