port from Lohit Devanagari 2.94.0 release