See the screenshots of Scim malayalam phonetic input method I developed. It is in beta stage.