To support complex scriptshttps://en.wikipedia.org/wiki/Complex_text_layout we need to use a tex system that can support Unicode and complex script rendering system. Xetex https://en.wikipedia.org/wiki/XeTeX works very well with these scripts.I tried the MediaWiki to Latex converter with Malayalam script, and the result is buggy.
Thanks Santhosh