In Word (Office 365) a character inserted through a rota
group extinguishes the previous character.
In Libre Office it works correctly!
In my case it is a chandrabindu in my devanagari keyboard eating the e.
k+e+M+M should give केँ
In Word it removes the e and the result is कँ
I extracted a part of the code, so that you can test it.
group(main) using keys
store(vowAnU) 'RLM'
store(vowAnUD) 'ऋऌ' 'ं'
store(vowelsDoUD) 'ॠॡ' "ँ"
store(consonantsL) 'kgcjtdnpbmyrlvsh'
store(consonantsLD)'कगचजतदनपबमयरलवसह'
store(diphtongmAtrAH) 'eo'
store(diphtongmAtrAHD) 'े' 'ो' c e,o
+ any(consonantsL) > index(consonantsLD,1) U+094D
U+094D + any(diphtongmAtrAH) > index(diphtongmAtrAHD,2)
+ any(vowAnU) > index(vowAnUD,1) use(rota) c R,L,M
group(rota)
any(vowAnUD) index(vowAnUD,1) > index(vowelsDoUD,1)