%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % LaTeX code to be added after \usepackage{sphinx} to enable % % the build by XeLaTeX, specific for Malayalam language % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \usepackage{pdfpages} \usepackage{fontspec} \usepackage{polyglossia,xltxtra} \setdefaultlanguage{malayalam} \setmainfont[Script=Malayalam, HyphenChar="00AD]{Rachana} \newfontfamily\engfont[Mapping=tex-text]{FreeSerif} \def\xromn#1{{\fontencoding{T1}\fontfamily{cmr}\selectfont#1}} \def\squote{\xromn{`}} \def\esquote{\xromn{'}} \def\dquote{\xromn{``}} \def\edquote{\xromn{''}} \DeclareTextFontCommand{\myfont}{\engfont} \def\mdash{\myfont{\textemdash}} \def\ndash{\myfont{\textendash}} \lefthyphenmin=3 \righthyphenmin=4 \linespread{1.2} \widowpenalty=10000 \clubpenalty=10000 \raggedbottom \sloppy %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % end of inserted code % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%