# [OS X TeX] Malayalam with xelatex

NMPOST7 nmpost7 at gmail.com
Wed Nov 13 03:34:42 CET 2013

In fact I must thank Peter Dyballa for that code snip. \setotherlanguage{english}

I followed a hint and pulled up an earlier code that he had mailed and tried it.

> Thanks Herb. The rendering is fine with the letters and digits. But the
> ligatures (the fourth character) gets split into two (the new script), which
> looks hideous and also difficult to read.
> Another problem in the file I sent you was the full stop. The point get rendered
> as a box. However I found a work around. It is not an elegant solution but
> works. The reason why I use the font Rachana is that it is aesthetic. and uses
> the old script, which is easier to read.
>
>
> The only modification is in the preamble (line 5).
> In the main code the markup \textenglish{1,2,3.} renderes the numbers, the
> commas and the full stop correctly. I think I need to stick to that option until
> a better solution appears. Probably write a mini macro for that.
>
>
> \documentclass{article}
> \usepackage{fontspec}
> \usepackage{polyglossia,xltxtra}
> \setdefaultlanguage{malayalam}
> \setotherlanguage{english}
> \newfontfamily\malayalamfont[Script=Malayalam,Ligatures=TeX,HyphenChar="00]{Rachana}
> \begin{document}
> മലയാളഭാഷ. ൽ ൾ ർ  ക്ക     1,2,3     \textenglish{1,2,3.}
> \end{document}
>
>
> BR
> suren
>
> (PS: I am not sure if I need to use xlxtra package (as far as I know the
> fontspec package calls this.I shall try omitting it)
>