<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Yves Codet wrote:
<blockquote
cite="mid:8141AEA2-C698-4D3B-9D27-4FDA32B3CEC2@club-internet.fr"
type="cite">Hello.
<div><br>
<div>
<div>Le 29 sept. 09 à 22:12, Neal Delmonico a écrit :</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div>Thanks for the suggestions. It looks like I am up to date
with MikTeX (2.8 and I regularly run update). My gloss-sanskrit.ldf is
dated 1/23/2009, too. If the way I have the preamble set up is right,
then it should work. But for some reason the no Sanskrit hyphenation
patterns load. Maybe I will try TeX Live 2009 and see if that solves
the problem.<font class="Apple-style-span" color="#000000"><font
class="Apple-style-span" color="#144fae"><br>
</font></font></div>
</blockquote>
<br>
</div>
<div>You must tell Polyglossia what is in Sanskrit. This modified
version of the original file works by me (with TeX Live 2008):</div>
<div><br>
</div>
<div>%%%%%%%%%%</div>
<div>
<div>\documentclass[10pt]{article}</div>
<div><br>
</div>
<div>%\usepackage{bidi}</div>
<div><br>
</div>
<div>\usepackage{polyglossia}</div>
<div><br>
</div>
<div>\usepackage{fontspec,xltxtra,xunicode}</div>
<div><br>
</div>
<div>\setmainfont[]{Gentium Basic}</div>
<div><br>
</div>
<div>\setdefaultlanguage{english}</div>
<div><br>
</div>
<div>\setotherlanguage{sanskrit}</div>
<div><br>
</div>
<div>\newfontfamily\sanskritfont[Script=Devanagari,Mapping=velthuis-sanskrit]{Nakula}
% this defines a Sanskrit font which Polyglossia will use in a Sanskrit
environment</div>
<div>\newcommand{\dev}[1]{{\begin{sanskrit}\large #1\end{sanskrit}}}
% this says that the text enclosed in \dev{} is in Sanskrit</div>
<div><br>
</div>
<div>\textwidth=5cm</div>
<div><br>
</div>
<div>\begin{document}</div>
<div><br>
</div>
<div>\dev{</div>
<div><br>
</div>
<div>\begin{verse}</div>
<div><br>
</div>
<div>anyaabhilaa.sitaa"suunya.m j~naanakarmaadyanaav.rtam|\\</div>
<div>aanukuulyena k.r.s.naanu"siilana.m bhaktiruttamaa||</div>
<div><br>
</div>
<div>\end{verse}</div>
<div><br>
</div>
<div>\noindent asyaartha.h---anyaabhilaa.saj~naanakarmaadirahitaa</div>
<div>"sriik.r.s.namuddi"syaanukulyena kaayavaa"nmanobhiryaavatii
kriyaa saa</div>
<div>bhakti.h|| 1||</div>
<div><br>
</div>
<div>}</div>
<div><br>
</div>
<div>\end{document}</div>
<div>%%%%%%%%%%</div>
<div><br>
</div>
<div>The \textwidth=5cm is only to get more hyphenations.
Incidentally, you don't need to load bidi if your text is in English
and Sanskrit.</div>
<div><br>
</div>
<div>Best wishes,</div>
<div><br>
</div>
<div>Yves</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</blockquote>
<br>
Thanks for the suggestion. It seems to work, not with MikTeX 2.8 but
with TeX Live 2008 which I have installed in the meantime. How do I
handle the ligature problem (\catcode `\~=12) then? Also what does the
#1 do and why is there a [1] after the {\dev}. Sorry to be a pest. I
am trying to understand how this works.<br>
<br>
Thanks,<br>
<br>
Neal<br>
</body>
</html>