<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><font size="+1"><tt>Yes, exactly. I'm using this newcommand to
          get devanagari with Sanskrit hyphenation:<br>
        </tt></font></p>
    <p><font size="+1"><tt>\newcommand{\dn}[1]{\textsanskrit{\devanagarifont{#1}}}</tt></font></p>
    <font size="+1"><tt>I also use this for occasional romanized
        Sanskrit passages within English prose, to switch the
        hyphenation from English to Sanskrit and also get the italics
        along:<br>
      </tt></font>
    <p><font size="+1"><tt>\newcommand{\romskt}[1]{\textsanskrit{\emph{#1}}}<br>
        </tt></font></p>
    <p><font size="+1"><tt>Cheers,</tt></font></p>
    <p><font size="+1"><tt>Alessanro<br>
        </tt></font></p>
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 02/14/2017 03:00 PM, Dominik
      Wujastyk wrote:<br>
    </div>
    <blockquote
cite="mid:CAKdt-CfvjV9AEPoX_qCAeR38WAdLQ_VCV7dYd2cnDqKn_J8zgQ@mail.gmail.com"
      type="cite">
      <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
moz-do-not-send="true"
                                                        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
moz-do-not-send="true" 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
                                                      style="font-family:"trebuchet
ms",sans-serif" size="1">
                                                      <div
                                                        style="color:rgb(17,85,204);display:inline"> </div>
                                                      <a
                                                        moz-do-not-send="true"
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"></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 moz-do-not-send="true"
              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 moz-do-not-send="true"
                    href="http://ttsm.icpf.cas.cz/team/wagner.shtml"
                    target="_blank">http://ttsm.icpf.cas.cz/team/<wbr>wagner.shtml</a><br>
                  <a moz-do-not-send="true"
                    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
                        moz-do-not-send="true"
                        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 moz-do-not-send="true"
                            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 moz-do-not-send="true"
                            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 moz-do-not-send="true"
              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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">

--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
  <a class="moz-txt-link-freetext" href="http://tug.org/mailman/listinfo/xetex">http://tug.org/mailman/listinfo/xetex</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Dr. Alessandro Graheli
Institute for the Cultural and Intellectual History of Asia
Austrian Academy of Sciences
Hollandstrasse 11-13, 2nd Floor
1020 Vienna
Austria
Tel +43 1 51581 6406
<a class="moz-txt-link-freetext" href="http://homepage.univie.ac.at/alessandro.graheli">http://homepage.univie.ac.at/alessandro.graheli</a></pre>
  </body>
</html>