<div dir="ltr">2017-02-19 22:05 GMT+01:00 Dominik Wujastyk <span dir="ltr"><<a href="mailto:wujastyk@gmail.com" target="_blank">wujastyk@gmail.com</a>></span>:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:"trebuchet ms",sans-serif;font-size:small">Dear Javier,</div><div style="font-family:"trebuchet ms",sans-serif;font-size:small"><br></div><div style="font-family:"trebuchet ms",sans-serif;font-size:small">In this scheme, "arabic" can mean two things.  Can that be avoided?  Could Babel use terms like "Nastaʿlīq", "Naskh", or "Kufic", or even "ArabicScript" for writing systems, and "arabic|Arabic" for the language?</div><div style="font-family:"trebuchet ms",sans-serif;font-size:small"><br></div><div style="font-family:"trebuchet ms",sans-serif;font-size:small">The more I look into this, the more I think that usages like your style</div><div style="font-family:"trebuchet ms",sans-serif;font-size:small"> <div style="display:inline">​</div></div><blockquote style="margin:0px 0px 0px 40px;border-width:medium;border-style:none;border-color:-moz-use-text-color;padding:0px"><div style="font-family:"trebuchet ms",sans-serif;font-size:small"><span style="font-family:arial,sans-serif">\fontspec[Language=Sanskrit,<wbr>Scri</span><span style="font-family:arial,sans-serif">pt=Grantha]{FontName}</span></div></blockquote><div style="font-family:"trebuchet ms",sans-serif;font-size:small"><br></div><div style="font-family:"trebuchet ms",sans-serif;font-size:small">are the right way to go.  </div><div style="font-family:"trebuchet ms",sans-serif;font-size:small"><br></div><div style="font-family:"trebuchet ms",sans-serif;font-size:small">You say, </div><span class="gmail-"><blockquote style="margin:0px 0px 0px 40px;border-width:medium;border-style:none;border-color:-moz-use-text-color;padding:0px"><div style="font-family:"trebuchet ms",sans-serif;font-size:small"><div style="display:inline">​</div></div></blockquote><blockquote style="margin:0px 0px 0px 40px;border-width:medium;border-style:none;border-color:-moz-use-text-color;padding:0px"><div style="font-family:"trebuchet ms",sans-serif;font-size:small"><span style="font-family:arial,sans-serif">But if we want two different fonts, we could say</span></div><div style="font-family:"trebuchet ms",sans-serif;font-size:small"><br style="font-family:arial,sans-serif"></div><div style="font-family:"trebuchet ms",sans-serif;font-size:small"><span style="font-family:arial,sans-serif">\usebabelfont[arabic]{ArabicFo</span><span style="font-family:arial,sans-serif"><wbr>ntName}</span></div><div style="font-family:"trebuchet ms",sans-serif;font-size:small"><span style="font-family:arial,sans-serif">\usebabelfont[urdu]{UrduFontNa</span><span style="font-family:arial,sans-serif"><wbr>me}</span></div></blockquote><div style="font-family:"trebuchet ms",sans-serif;font-size:small">​</div></span><div style="font-family:"trebuchet ms",sans-serif;font-size:small">I didn't understand this at first glance, but I think I do now.  Saying "[urdu]" is a shorthand for "[Language=Urdu]", is that </div></div></blockquote><div><br></div><div>The problem is that the script used for Urdu is not identical to that used for Arabic; a few characters have different shapes, a few characters are added. Fonts covering both languages are rare. Even FreeFont is unusable for Urdu because some non-Arabic characters are not properly connected if used in words.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:"trebuchet ms",sans-serif;font-size:small">right?  But this appears not to meet the case where the user wants two different fonts for the same language.</div><div style="font-family:"trebuchet ms",sans-serif;font-size:small"><br></div><div style="font-family:"trebuchet ms",sans-serif;font-size:small">Say I'm writing a book in Hindi language explaining the use of the Devanagari, Grantha, Bangla, and Śāradā scripts for writing Sanskrit, with keys in Latin script.</div><div style="font-family:"trebuchet ms",sans-serif;font-size:small"><br></div><div style="font-family:"trebuchet ms",sans-serif;font-size:small">I'd need statements like this:</div><div style="font-family:"trebuchet ms",sans-serif;font-size:small"><br></div><div><blockquote style="font-family:"trebuchet ms",sans-serif;font-size:small;margin:0px 0px 0px 40px;border-width:medium;border-style:none;border-color:-moz-use-text-color;padding:0px"><div style="font-family:"trebuchet ms",sans-serif;font-size:small"><div style="display:inline">​</div><span style="font-family:arial,sans-serif">\fontspec[Language=Hindi,Scri</span><span style="font-family:arial,sans-serif">p<wbr>t=Devanagari]{FontName}</span><br></div><div style="font-family:"trebuchet ms",sans-serif;font-size:small"><span style="font-family:arial,sans-serif">\fontspec[Language=Sanskrit,<wbr>Script=Devanagari]{FontName}</span><span style="font-family:arial,sans-serif"><br></span></div></blockquote><blockquote style="font-family:"trebuchet ms",sans-serif;font-size:small;margin:0px 0px 0px 40px;border-width:medium;border-style:none;border-color:-moz-use-text-color;padding:0px"><div style="font-family:"trebuchet ms",sans-serif;font-size:small"><span style="font-family:arial,sans-serif">\fontspec[Language=Sanskrit,<wbr>Script=LatinScript]{FontName}</span></div></blockquote><blockquote style="font-family:"trebuchet ms",sans-serif;font-size:small;margin:0px 0px 0px 40px;border-width:medium;border-style:none;border-color:-moz-use-text-color;padding:0px"><div style="font-family:"trebuchet ms",sans-serif;font-size:small"><span style="font-family:arial,sans-serif">\fontspec[Language=Sanskrit,<wbr>Scri</span><span style="font-family:arial,sans-serif">pt=Sarada]{FontName}</span><span style="font-family:arial,sans-serif"><br></span></div><div style="font-family:"trebuchet ms",sans-serif;font-size:small"><span style="font-family:arial,sans-serif">\fontspec[Language=Sanskrit,<wbr>Scri</span><span style="font-family:arial,sans-serif">pt=Grantha]{FontName}</span><span style="font-family:arial,sans-serif"><br></span></div><div style="font-family:"trebuchet ms",sans-serif;font-size:small"><span style="font-family:arial,sans-serif">\fontspec[Language=Sanskrit,<wbr>Scri</span><span style="font-family:arial,sans-serif">pt=BanglaLipi]{FontName}</span><span style="font-family:arial,sans-serif"><br></span></div><div style="font-family:"trebuchet ms",sans-serif;font-size:small"><span style="font-family:arial,sans-serif"><br></span></div><div style="font-family:"trebuchet ms",sans-serif;font-size:small"><span style="font-family:arial,sans-serif"><br></span></div></blockquote>Problems:</div><div><ul><li>"Bangla" and "Latin" are awkward, like "Arabic,"  because they're the names of both a language and a script.  "Bangla lipi" just means "Bengali writing," and is what Bengalis say when they specifically refer to the script.</li><li>Saying \selectlanguage{sanskrit} isn't going to be any use in my document, because "{Sanskrit}" could be any of several scripts.</li></ul></div><div style="font-family:"trebuchet ms",sans-serif;font-size:small">Best,</div><div style="font-family:"trebuchet ms",sans-serif;font-size:small">Dominik</div></div></blockquote><div><br><br><br clear="all"><div><div class="gmail_signature">Zdeněk Wagner<br><a href="http://ttsm.icpf.cas.cz/team/wagner.shtml" target="_blank">http://ttsm.icpf.cas.cz/team/wagner.shtml</a><br><a href="http://icebearsoft.euweb.cz" target="_blank">http://icebearsoft.euweb.cz</a></div></div>
<br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div class="gmail-h5"><br><div style="font-family:"trebuchet ms",sans-serif;font-size:small"><div class="gmail-m_4236260558131592157gmail-HOEnZb" style="font-family:arial,sans-serif"></div></div><div class="gmail_extra"><div><div class="gmail-m_4236260558131592157gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><span><div dir="ltr"><div><span><div dir="ltr"><div style="font-family:"trebuchet ms",sans-serif;font-size:small"><font size="1">
</font></div></div></span></div></div></span></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On 18 February 2017 at 04:59, Javier Bezos <span dir="ltr"><<a href="mailto:listas@tex-tipografia.com" target="_blank">listas@tex-tipografia.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
    \usebabelfont[*devanagari]{Fon<wbr>tName}<br>
</blockquote>
<br>
Just a little explanation about its behavior. If we say<br>
<br>
\selectlanguage{sanskrit}<br>
<br>
then both the language and the script will be set. More precisely,<br>
using the info in the new language files I'm writing (almost by hand!),<br>
babel will do at this point something similar to:<br>
<br>
\fontspec[Language=Sanskrit,Sc<wbr>ript=Devanagari]{FontName}<br>
<br>
(Actually, things are a bit more complicated.) Note the selection<br>
will be always with the language, not with the script. This means<br>
the following makes sense<br>
<br>
<div style="font-family:"trebuchet ms",sans-serif;font-size:small;display:inline">​​</div>\usebabelfont[*arabic]{FontNam<wbr>e}<br>
<br>
\selectlanguage{arabic}<br>
\selectlanguage{urdu}<br>
<br>
which will do:<br>
<br>
<div style="font-family:"trebuchet ms",sans-serif;font-size:small;display:inline">​​</div><div style="font-family:"trebuchet ms",sans-serif;font-size:small;display:inline">​​</div>\fontspec[Language=Arabic,Scri<wbr>pt=Arabic]{FontName}<br>
\fontspec[Language=Urdu,Script<wbr>=Arabic]{FontName}<br>
<br>
<div style="font-family:"trebuchet ms",sans-serif;font-size:small;display:inline">​​</div>But if we want two different fonts, we could say<br>
<br>
\usebabelfont[arabic]{ArabicFo<wbr>ntName}<br>
\usebabelfont[urdu]{UrduFontNa<wbr>me}<div class="gmail-m_4236260558131592157gmail-HOEnZb"><div class="gmail-m_4236260558131592157gmail-h5"><br>
<br>
Javier<br>
<br>
<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/listin<wbr>fo/xetex</a><br>
</div></div></blockquote></div><br></div></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></div>