<div dir="ltr"><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small">Nice to see you here, Alessandro! Many thanks for your code. So it's the \begin{sanskrit} that switches on the correct hyphenation. And the string "devanagari" in \devanagarifont is the same as switching on [Script=Devanagari], I guess.</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small">So for the common situation like this:</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small"><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small"> संस्कृतभाषा (<i>saṃskṛtabhāṣā</i>)</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small"><br></div></blockquote><font face="trebuchet ms, sans-serif"><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small;display:inline">one could construct</div></font><div><font face="trebuchet ms, sans-serif"><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small;display:inline"><br></div></font></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="trebuchet ms, sans-serif"><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small;display:inline">\newcommand{\skt}[1]{%</div></font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="trebuchet ms, sans-serif"><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small;display:inline">\begin{sanskrit}{\devanagarifont #1} (\emph{{\sanskritfont #1}})\end{sanskrit}%</div></font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="trebuchet ms, sans-serif"><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small;display:inline">}</div></font></div></blockquote><font face="trebuchet ms, sans-serif"><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small;display:inline">and get the right scripts and hyphenations.</div></font><div><font face="trebuchet ms, sans-serif"><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small;display:inline"><br></div></font></div><div><font face="trebuchet ms, sans-serif"><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small;display:inline">Even if this works, I am unhappy with the terminological confusion between scripts and languages. This seems to be built in to Polyglossia. As we both know, many languages are written in Devanagari, and Sanskrit is written in many scripts, including Latin. This isn't very clearly expressed in Polyglossia.</div><br></font></div><div><font face="trebuchet ms, sans-serif"><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small;display:inline"><br></div></font></div><div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small">Must rush,</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small">Best, and greetings to the family,</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small">Dominik</div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><span><div dir="ltr"><div dir="ltr" style="font-size:small"><div style="font-family:"trebuchet ms",sans-serif"><div><font size="1"><span style="font-family:arial,sans-serif"><div style="font-family:"trebuchet ms",sans-serif;font-size:small;display:inline"></div>--</span><br></font></div><div style="font-family:arial,sans-serif"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:"trebuchet ms",sans-serif"><font size="1">Professor <a href="http://ualberta.academia.edu/DominikWujastyk" style="color:rgb(17,85,204)" target="_blank">Dominik Wujastyk</a><div style="font-size:small;display:inline">,</div><br>Singhmar Chair in Classical Indian Society and Polity<div style="font-size:small;display:inline">,</div><br></font><div><font size="1"><a href="http://historyandclassics.ualberta.ca/" style="color:rgb(17,85,204)" target="_blank">Department of History and Classics</a><div style="font-size:small;display:inline">,</div></font></div><font size="1">University of Alberta, Canada<div style="font-size:small;display:inline">.</div><br></font></div><div><font size="1">South Asia at the U of A:</font><font size="1" style="font-family:"trebuchet ms",sans-serif"><div style="color:rgb(17,85,204);display:inline"> </div><a href="http://sas.ualberta.ca/" style="color:rgb(17,85,204)" target="_blank">sas.ualberta.ca</a><div style="display:inline"></div></font></div></div></div></div></div></div></div></div></div></div></div></div></div><span style="font-size:small"><div dir="ltr"><div style="font-family:"trebuchet ms",sans-serif"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"></div></div></div></div></div></div></div></div></span><div><span><div dir="ltr"><div style="font-family:trebuchet ms,sans-serif;font-size:small"><div dir="ltr"><div style="font-family:trebuchet ms,sans-serif"><div dir="ltr"><div style="font-family:trebuchet ms,sans-serif"><div dir="ltr"><div style="font-family:trebuchet ms,sans-serif"><div dir="ltr"><div style="font-family:trebuchet ms,sans-serif"><div dir="ltr"><div style="font-family:trebuchet ms,sans-serif"><div dir="ltr"><div style="font-family:trebuchet ms,sans-serif"><font size="1"><br></font></div></div></div></div>
</div></div>
</div></div>
</div></div></div></div><font size="1">
</font></div></div></span></div></div></span></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On 14 February 2017 at 04:01, Zdenek Wagner <span dir="ltr"><<a href="mailto:zdenek.wagner@gmail.com" target="_blank">zdenek.wagner@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">As already mentioned, Script=Devanagari switches the correct shaping of the font so that ki appears as कि and not as क followed by ि matra. Try to enter किताब with and without it and you will see the difference.<div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="m_-8906908067839613070gmail_signature" data-smartmail="gmail_signature">Zdeněk Wagner<br><a href="http://ttsm.icpf.cas.cz/team/wagner.shtml" target="_blank">http://ttsm.icpf.cas.cz/team/<wbr>wagner.shtml</a><br><a href="http://icebearsoft.euweb.cz" target="_blank">http://icebearsoft.euweb.cz</a></div></div><div><div class="h5">
<br><div class="gmail_quote">2017-02-14 11:30 GMT+01:00 Ulrike Fischer <span dir="ltr"><<a href="mailto:news3@nililand.de" target="_blank">news3@nililand.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>Am Mon, 13 Feb 2017 16:47:09 -0700 schrieb Dominik Wujastyk:<br>
<br>
> Does "Script=Devanagari" turn on the hypy-sa hyphenation fil<br>
<br>
</span>No. hyphenation patterns are turned on with \selectlanguage{XXX}<br>
commands (and similar commands from polyglossia, babel or the<br>
engines).<br>
<div class="m_-8906908067839613070HOEnZb"><div class="m_-8906908067839613070h5"><br>
--<br>
Ulrike Fischer<br>
<a href="http://www.troubleshooting-tex.de/" rel="noreferrer" target="_blank">http://www.troubleshooting-tex<wbr>.de/</a><br>
<br>
<br>
<br>
------------------------------<wbr>--------------------<br>
Subscriptions, Archive, and List information, etc.:<br>
<a href="http://tug.org/mailman/listinfo/xetex" rel="noreferrer" target="_blank">http://tug.org/mailman/listinf<wbr>o/xetex</a><br>
</div></div></blockquote></div><br></div></div></div>
<br><br>
<br>
------------------------------<wbr>--------------------<br>
Subscriptions, Archive, and List information, etc.:<br>
<a href="http://tug.org/mailman/listinfo/xetex" rel="noreferrer" target="_blank">http://tug.org/mailman/<wbr>listinfo/xetex</a><br>
<br></blockquote></div><br></div>