[Tugindia] Tamil typing in latex

P. P. Narayanaswami swami at mun.ca
Sun Aug 25 22:26:10 CEST 2013


The Tamil unicode font-"Lohit Tamil" font is not installed by default in your
Windows set-up (it is available by default in Ubuntu Linux).  
Try using "Latha" font instead, which is available by default in Windows, 
and it works fine (I just tested).

Quoting SIVAKUMAR R <skarg_ind at hotmail.com>:

> not working sir,
> this is the error message
> 
> fontspec error: "font-not-found"
> !
> ! The font "Lohit-Tamil" cannot be found.
> !
> ! See the fontspec documentation for further information.
> !
> ! For immediate help type H <return>.
> !...............................................
> l.12 ...tfamily{\lohit}[Script=Tamil]{Lohit-Tamil}
> |'''''''''''''''''''''''''''''''''''''''''''''''
> | A font might not be found for many reasons.
> | Check the spelling, where the font is installed etc. etc.
> |
> | When in doubt, ask someone for help!
> |...............................................
> Requested font "Lohit-Tamil/ICU" at 10.0pt
> -> font not found, using "nullfont"
> *************************************************
> * fontspec warning: "script-not-exist"
> *
> * Font 'Lohit-Tamil' does not contain script 'Tamil'.
> *************************************************
> \g_fontspec_family_Lohit-Tamil_int=\count139
> Requested font "Lohit-Tamil/ICU" at 10.0pt
> -> font not found, using "nullfont"
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> !
> ! fontspec error: "font-not-found"
> !
> ! The font "Lohit-Tamil" cannot be found.
> !
> ! See the fontspec documentation for further information.
> !
> ! For immediate help type H <return>.
> !...............................................
> l.12 ...tfamily{\lohit}[Script=Tamil]{Lohit-Tamil}
> |'''''''''''''''''''''''''''''''''''''''''''''''
> | A font might not be found for many reasons.
> | Check the spelling, where the font is installed etc. etc.
> |
> | When in doubt, ask someone for help!
> |...............................................
> Requested font "Lohit-Tamil/ICU" at 10.0pt
> -> font not found, using "nullfont"
> Requested font "Lohit-Tamil/B/ICU" at 10.0pt
> -> font not found, using "nullfont"
> .................................................
> . fontspec info: "no-font-shape"
> .
> . Could not resolve font Lohit-Tamil/B (it probably doesn't exist).
> .................................................
> Requested font "Lohit-Tamil/ICU" at 10.0pt
> -> font not found, using "nullfont"
> Requested font "Lohit-Tamil/I/ICU" at 10.0pt
> -> font not found, using "nullfont"
> .................................................
> . fontspec info: "no-font-shape"
> .
> . Could not resolve font Lohit-Tamil/I (it probably doesn't exist).
> .................................................
> Requested font "Lohit-Tamil/ICU" at 10.0pt
> -> font not found, using "nullfont"
> Requested font "Lohit-Tamil/BI/ICU" at 10.0pt
> -> font not found, using "nullfont"
> .................................................
> . fontspec info: "no-font-shape"
> .
> . Could not resolve font Lohit-Tamil/BI (it probably doesn't exist).
> .................................................
> .................................................
> . fontspec info: "defining-font"
> .
> . Font family 'Lohit-Tamil(0)' created for font 'Lohit-Tamil' with options
> . [Script=Tamil].
> .
> . This font family consists of the following shapes:
> .
> . * 'normal' with NFSS spec.:
> . <->"Lohit-Tamil/ICU:"
> .................................................
> 
> 
> > From: cvr at river-valley.org
> > Date: Sun, 25 Aug 2013 22:04:58 +0530
> > To: tugindia at tug.org
> > Subject: Re: [Tugindia] Tamil typing in latex
> > 
> > On Sun, Aug 25, 2013 at 9:26 PM, SIVAKUMAR R <skarg_ind at hotmail.com>
> wrote:
> > 
> > > I am using miketex(windows 7) with texmaker as editor.
> > > I want to type tamil in my documents along with english for prepearing
> > > bilingual question papers.
> > > So pls suggest about using other languages in latex.
> > >
> > 
> > Given below is a small test file (the example is from Tamil Wikipedia):
> > 
> > %<------------------------ begin --------------------------->
> > 
> > \documentclass[a4paper]{article}
> > \usepackage{amsmath}
> > 
> > \usepackage[margin=1in,top=1in,bottom=1in,ignoreall]{geometry}
> > \pagestyle{empty}
> > 
> > \usepackage{fontspec}
> > \usepackage{xltxtra}
> > \setmainfont[Ligatures=TeX,Mapping=tex-text,Numbers=OldStyle]{TeX Gyre
> > Pagella}
> > \newfontinstance\pal[Mapping=tex-text,Numbers=OldStyle]{TeX Gyre Pagella}
> > \newfontfamily{\lohit}[Script=Tamil]{Lohit-Tamil}
> > \defaultfontfeatures{Scale=MatchLowercase}
> > 
> > \begin{document}
> > 
> > %\fontsize{9}{12}\selectfont
> > \parskip 6pt
> > 
> > \raggedright
> > 
> > \lohit
> > 
> > 
> > கட்டற்ற கலைக்களஞ்சியமான
> விக்கிப்பீடியாவில்
> இருந்து.
> > 
> > \bigskip
> > 
> > கணிதத்தில், ஒருபடியச்
> சமன்பாடுகளின் தொகுதி à®
ல்லது
> நேரியல் சமன்பாடுகளின்
> > தொகுதி {\pal(system of linear equations)} என்பது,
> மாறிகளையும் மாறிகளின்
> > எண்ணிக்கையையும் சமமாகக்
> கொண்ட ஒருபடியச்
> சமன்பாடுகளின்
> தொகுப்பாகும்.
> > எடுத்துக்காட்டாக,
> > \begin{alignat}{7}
> > 3x &&\; + \;&& 2y &&\; - \;&& z &&\; = \;&& 1 & \\
> > 2x &&\; - \;&& 2y &&\; + \;&& 4z &&\; = \;&& -2 & \\
> > -x &&\; + \;&& \tfrac{1}{2} y &&\; - \;&& z &&\; = \;&& 0 &
> > \end{alignat}
> > என்பன $x, y, z$ என்னும் மூன்று
> மாறிகளால் ஆன மூன்று
> ஒருபடியச் சமன்பாடுகள்.
> > இந்த மூன்று
> சமன்பாடுகளையும் ஒருங்கே
> நிறைவு செய்யும் மூன்று
> மாறிகளின்
> > மதிப்புகள்
> இச்சமன்பாட்டுத் தொகுதியின்
> ஒரு தீர்வு எனப்படும்.
> > 
> > மேற்கண்ட ஒருங்கமை
> சமன்பாடுகளின் ஒரு தீர்வு:
> > \begin{alignat}{2}
> > x & = & 1 \\
> > y & = & -2 \\
> > z & = & -2
> > \end{alignat}
> > இம்மதிப்புகள் மேற்கண்ட
> மூன்று சமன்பாடுகளையும்
> நிறைவு செய்கின்றன.
> > 
> > கணிதத்தில் ஒருபடிய
> à®
மைப்புகள் à®
ல்லது
> ஒருங்கியங்கள், என்பன
> தற்காலக்
> > கணிதத்தின் à®
டிப்படைத்
> துறைகளில் ஒன்றான நேரியல்
> இயற்கணிதத்தின் ஒரு
> > பிரிவாகும்.
> > 
> > \end{document}
> > 
> > %<--------------------------- end ------------------------------->
> > 
> > Please save this file and typeset using xelatex and see the result for
> > yourself. I have kept the pdf output of this source at this location (list
> > manager does not like attachments):
> > 
> >    http://download.river-valley.com/cvr/tamil.pdf
> > 
> > Best regards
> > -- 
> > Radhakrishnan
> > River
>
Valley<https://maps.google.com/maps?q=River%20Valley,%20Thiruvananthapuram%20Neyyardam%20Road,%20Kerala,%20India&vector=1>
> > _______________________________________________
> > Home:        http://www.tug.org.in/
> > TeX FAQ:     http://www.tex.ac.uk/faq
> > unsubscribe: http://tug.org/mailman/listinfo/tugindia
>  		 	   		  
> _______________________________________________
> Home:        http://www.tug.org.in/
> TeX FAQ:     http://www.tex.ac.uk/faq
> unsubscribe: http://tug.org/mailman/listinfo/tugindia




This electronic communication is governed by the terms and conditions at
http://www.mun.ca/cc/policies/electronic_communications_disclaimer_2012.php


More information about the tugindia mailing list