0

I am using xelatex for printing Malayalam fonts. This is code and it is not printing properly. In the code it is right form and in the image that produced by the code is wrongenter image description here

  \documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{fontspec}
\usepackage{polyglossia}
\setmainfont{Charis SIL}
\newfontfamily\Mal{Meera}

\begin{document}

\begin{table}
    \begin{tabular}{lllll}
    Case         & Marker                 & UF & SF & Gloss \\
    \hline
    Nominative   &  & ~  & ~ & \\
    Accusative   & -e \Mal{എ }\normalfont & \Mal{ആനയെ }\normalfont  & ~ & \\
    Dative       &   \Mal{ക്ക് }\normalfont                  & ~  & ~ & \\
    Instrumental &   \Mal{ആൽ  }\normalfont                & ~  & ~ & \\
    Locative     &  \Mal{ഇൽ }\normalfont             & ~  & ~ & \\
    Genitive     &  \Mal{ഉടെ, 
ഇന്റെ }\normalfont                    & ~  & ~ & \\
    Sociative    &  \Mal{ഓട് }\normalfont            & ~  & ~ & \\
        \hline
    \end{tabular}
\end{table}
\end{document}

You can easily identify the difference between code and output. Any suggestions ?

All the fonts are available here:

https://smc.org.in/fonts/
or


   http://www.prokerala.com/downloads/fonts.php

UPDATE

\usepackage{graphicx}
\usepackage{verbatim}
\usepackage{latexsym}
\usepackage{mathchars}
\usepackage{setspace}
\usepackage{amsmath}
\usepackage{fontspec}
}
\setmainfont[Mapping=tex-text]{Charis SIL}
\newfontfamily{\Mal}{Meera} [features=malayalam]


\input{blocked.sty}
\input{uhead.sty}
\input{boxit.sty}
\input{icthesis.sty}

\newcommand{\ipc}{{\sf ipc}}

\newcommand{\Prob}{\bbbp}
\newcommand{\Real}{\bbbr}
\newcommand{\real}{\Real}
\newcommand{\Int}{\bbbz}
\newcommand{\Nat}{\bbbn}

\newcommand{\NN}{{\sf I\kern-0.14emN}}   % Natural numbers
\newcommand{\ZZ}{{\sf Z\kern-0.45emZ}}   % Integers
\newcommand{\QQQ}{{\sf C\kern-0.48emQ}}   % Rational numbers
\newcommand{\RR}{{\sf I\kern-0.14emR}}   % Real numbers
\newcommand{\KK}{{\cal K}}
\newcommand{\OO}{{\cal O}}
\newcommand{\AAA}{{\bf A}}
\newcommand{\HH}{{\bf H}}
\newcommand{\II}{{\bf I}}
\newcommand{\LL}{{\bf L}}
\newcommand{\PP}{{\bf P}}
\newcommand{\PPprime}{{\bf P'}}
\newcommand{\QQ}{{\bf Q}}
\newcommand{\UU}{{\bf U}}
\newcommand{\UUprime}{{\bf U'}}
\newcommand{\zzero}{{\bf 0}}
\newcommand{\ppi}{\mbox{\boldmath $\pi$}}
\newcommand{\aalph}{\mbox{\boldmath $\alpha$}}
\newcommand{\bb}{{\bf b}}
\newcommand{\ee}{{\bf e}}
\newcommand{\mmu}{\mbox{\boldmath $\mu$}}
\newcommand{\vv}{{\bf v}}
\newcommand{\xx}{{\bf x}}
\newcommand{\yy}{{\bf y}}
\newcommand{\zz}{{\bf z}}
\newcommand{\oomeg}{\mbox{\boldmath $\omega$}}
\newcommand{\res}{{\bf res}}
\newcommand{\cchi}{{\mbox{\raisebox{.4ex}{$\chi$}}}}
%\newcommand{\cchi}{{\cal X}}
%\newcommand{\cchi}{\mbox{\Large $\chi$}}

% Logical operators and symbols
\newcommand{\imply}{\Rightarrow}
\newcommand{\bimply}{\Leftrightarrow}
\newcommand{\union}{\cup}
\newcommand{\intersect}{\cap}
\newcommand{\boolor}{\vee}
\newcommand{\booland}{\wedge}
\newcommand{\boolimply}{\imply}
\newcommand{\boolbimply}{\bimply}
\newcommand{\boolnot}{\neg}
\newcommand{\boolsat}{\!\models}
\newcommand{\boolnsat}{\!\not\models}


\newcommand{\op}[1]{\mathrm{#1}}
\newcommand{\s}[1]{\ensuremath{\mathcal #1}}

% Properly styled differentiation and integration operators
\newcommand{\diff}[1]{\mathrm{\frac{d}{d\mathit{#1}}}}
\newcommand{\diffII}[1]{\mathrm{\frac{d^2}{d\mathit{#1}^2}}}
\newcommand{\intg}[4]{\int_{#3}^{#4} #1 \, \mathrm{d}#2}
\newcommand{\intgd}[4]{\int\!\!\!\!\int_{#4} #1 \, \mathrm{d}#2 \, \mathrm{d}#3}

% Large () brackets on different lines of an eqnarray environment
\newcommand{\Leftbrace}[1]{\left(\raisebox{0mm}[#1][#1]{}\right.}
\newcommand{\Rightbrace}[1]{\left.\raisebox{0mm}[#1][#1]{}\right)}

% Funky symobols for footnotes
\newcommand{\symbolfootnote}{\renewcommand{\thefootnote}{\fnsymbol{footnote}}}
% now add \symbolfootnote to the beginning of the document...

\newcommand{\normallinespacing}{\renewcommand{\baselinestretch}{1.5} \normalsize}
\newcommand{\mediumlinespacing}{\renewcommand{\baselinestretch}{1.2} \normalsize}
\newcommand{\narrowlinespacing}{\renewcommand{\baselinestretch}{1.0} \normalsize}
\newcommand{\bump}{\noalign{\vspace*{\doublerulesep}}}
\newcommand{\cell}{\multicolumn{1}{}{}}
\newcommand{\spann}{\mbox{span}}
\newcommand{\diagg}{\mbox{diag}}
\newcommand{\modd}{\mbox{mod}}
\newcommand{\minn}{\mbox{min}}
\newcommand{\andd}{\mbox{and}}
\newcommand{\forr}{\mbox{for}}
\newcommand{\EE}{\mbox{E}}

\newcommand{\deff}{\stackrel{\mathrm{def}}{=}}
\newcommand{\syncc}{~\stackrel{\textstyle \rhd\kern-0.57em\lhd}{\scriptstyle L}~}

\def\coop{\mbox{\large $\rhd\!\!\!\lhd$}}
\newcommand{\sync}[1]{\raisebox{-1.0ex}{$\;\stackrel{\coop}{\scriptscriptstyle
#1}\,$}}

\newtheorem{definition}{Definition}[chapter]
\newtheorem{theorem}{Theorem}[chapter]

\newcommand{\Figref}[1]{Figure~\ref{#1}}
\newcommand{\fig}[3]{
 \begin{figure}[!ht]
 \begin{center}
 \scalebox{#3}{\includegraphics{figs/#1.ps}}
 \vspace{-0.1in}
 \caption[ ]{\label{#1} #2}
 \end{center}
 \end{figure}
}

\newcommand{\figtwo}[8]{
 \begin{figure}
 \parbox[b]{#4 \textwidth}{
 \begin{center}
 \scalebox{#3}{\includegraphics{figs/#1.ps}}
 \vspace{-0.1in}
 \caption{\label{#1}#2}
 \end{center}
 }
 \hfill
 \parbox[b]{#8 \textwidth}{
 \begin{center}
 \scalebox{#7}{\includegraphics{figs/#5.ps}}
 \vspace{-0.1in}
 \caption{\label{#5}#6}
 \end{center}
 }
 \end{figure}

}

All the code in the Header

UPDATE The problem caused because of older version of Texlive (2012). In Tex live 2015 there is no problem.

karu
  • 440
  • 1
    This is a quite bad example. Are you really still using \documentstyle? What is the "doument" environment? Also \Malfont is not defined. – Ulrike Fischer Apr 15 '16 at 11:44
  • @UlrikeFischer Changed to working copy – karu Apr 15 '16 at 11:52
  • @UlrikeFischer. I need to pass font properties to \Mal. I am writing a thesis so there are many files. – karu Apr 15 '16 at 11:54
  • 1
    Please make your code compilable. That cannot possibly correspond to your working copy ... Does Charis SIL include the glyphs required? Why is this tagged with the pdfTeX engine if you aren't even using it? You don't seem to set any language for the document, despite loading polyglossia. Presumably you need at least 2 languages set up here and probably distinct font configurations for each. – cfr Apr 15 '16 at 12:01
  • Yes. I have four languages in same document – karu Apr 15 '16 at 13:06
  • @cfr Yes. I have four languages in same document. This not a problem related to four languages in the same document where main font is Charis SIL. I need all other for providing examples. – karu Apr 15 '16 at 13:09
  • Your question is answered in my answer to your other question. I think this may be a duplicate. – Alenanno Apr 15 '16 at 13:28
  • 1
    @Alenanno, this is not a duplicate of that question. The OP is asking about why the Malayalam text does not come out correctly, which has nothing to do with IPA symbols. – Jason Zentz Apr 15 '16 at 14:32
  • @karu, have you checked that the font Meera has all the glyphs you need for your Malayalam text? – Jason Zentz Apr 15 '16 at 14:32
  • @JasonZentz But it has all to do with fonts and xelatex. The duplicate is not the font name, but the problem, which can be solved with the same answer in the other question. – Alenanno Apr 15 '16 at 14:33
  • @JasonZentz. This a very different question. It about rendering of orthography. The font I use have all the glyph support but its rendered incorrectly. – karu Apr 18 '16 at 08:48
  • @karu I tested the answer I gave in the other question with the information on this question and it works. So the solution is the same. – Alenanno Apr 18 '16 at 08:51
  • @Alenanno \Mal{ആനയെ} This one for example. Needs to display as it is. Could you please post what you got in PDF? I mean the symbols

    Or This one \Mal{ക്ക് }

    – karu Apr 18 '16 at 08:54
  • @karu If you disagree with the closure, you could post a question on [Meta] and explain why you think this question should stay open. I'll answer there to explain my reasoning. Comments are not very well-suited for these discussions, and on Meta we'll have more space to discuss (also other users might post there). – Alenanno Apr 18 '16 at 08:57
  • @Alenanno Done. http://meta.tex.stackexchange.com/questions/6600/xelatex-not-rendering-forn-correctly – karu Apr 18 '16 at 08:59
  • @JasonZentz The font "Meera" has support of all glyph need for the language. The is the official font of the language for all purpose. – karu Apr 18 '16 at 09:04
  • 2
    @karu: I won't discuss if it is a duplicate or not. But it is still a badly phrased question. The code has no \documentclass command, it uses "doument" instead of "document", the \end{document} is missing. You obviously didn't try the code yourself. So why should I bother and test it? – Ulrike Fischer Apr 18 '16 at 10:24
  • @UlrikeFischer This is header I have usepackage{graphicx} \usepackage{verbatim} \usepackage{latexsym} \usepackage{mathchars} \usepackage{setspace} \usepackage{amsmath} \usepackage{fontspec} } \setmainfont[Mapping=tex-text]{Charis SIL} \newfontfamily{\Mal}{Rachana} [features=malayalam]

    \input{blocked.sty} \input{uhead.sty} \input{boxit.sty} \input{icthesis.sty}

    – karu Apr 18 '16 at 10:51
  • This this comment improve your question? All the \input commands are faulty, and also quite probably irrelevant. Beside this: Don't post code in comment, edit your question instead. – Ulrike Fischer Apr 18 '16 at 10:52
  • @UlrikeFischer. I have a lot code as the part of the thesis header. I reduced the version so that people can understand it. Any way I am posting all the code in the header – karu Apr 18 '16 at 10:54
  • But you reduced the code too much. As it is it can not be compiled. Try it out. Copy and paste your example above in some empty test document. – Ulrike Fischer Apr 18 '16 at 10:54
  • @UlrikeFischer I hope you haven´t got the font – karu Apr 18 '16 at 10:57
  • @UlrikeFischer. It compile here – karu Apr 18 '16 at 11:04
  • It compiles now -- after you corrected all the errors. But I can't test it, I don't have the font and as I don't read the script can't download it. – Ulrike Fischer Apr 18 '16 at 11:12
  • @UlrikeFischer. You need to download it from here: https://wiki.smc.org.in/Fonts. Please press Meera Download – karu Apr 18 '16 at 11:20
  • @UlrikeFischer or You could download it from here http://www.prokerala.com/downloads/fonts.php – karu Apr 18 '16 at 11:21
  • Looks ok for me in a current texlive 2015. Don't load the inputenc package, it is useless for xelatex. – Ulrike Fischer Apr 18 '16 at 12:13
  • @UlrikeFischer I am using texlive 2012 may be that is the problem – karu Apr 18 '16 at 12:35
  • @karu Oh, try updating then! See if that fixes it. – Alenanno Apr 18 '16 at 18:54

0 Answers0