[XeTeX] Mixed Roman and Indian alphabets for Sanskrit
Ulrike Fischer
news3 at nililand.de
Tue Feb 14 17:20:59 CET 2017
Am Tue, 14 Feb 2017 08:58:25 -0700 schrieb Dominik Wujastyk:
> So why does Polyglossia make \devanagarifont and \sanskritfont equivalent?
> There should be no such entity as \sanskritfont. Sanskrit isn't a font or
> a script, it's a language.
Sure, as neither russian nor german are scripts. Nevertheless when
switching to russian you normally expect that the font setup
switches to cyrillic and when switching to german you want a latin
font.
This means when you set up packages to change languages you can't
avoid to have to worry about scripts too.
Btw: when doing this here
\setmainlanguage[Script=Gujarati]{sanskrit}
\newfontfamily\sanskGujarati{Code2000}[Script=Gujarati]
The you shouldn't confuse the two occurances of the Script-key.
The first Script-key is processed by polyglossia, the second by
fontspec. They are related but not identical.
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
More information about the XeTeX
mailing list