[XeTeX] Mixed Roman and Indian alphabets for Sanskrit (was: what is \setmainfont used for?)

Dominik Wujastyk wujastyk at gmail.com
Fri Feb 10 22:41:26 CET 2017


This discussion reminds me of a long-standing question in my mind.
 hyph-sa.tex contains hyphenation rules for Sanskrit in several different
scripts, including Latin script.

The Polyglossia file gloss-sanskrit.ldf contains codes for invoking many of
the scripts in which the Sanskrit language is written, such as Devanagari,
Gujarati, Malayalam and so on.  But there isn't a rule for saying, for
Sanskrit, [Script=Latin].

How would this be done?  I've been looking at commands like
\xpg at fontsetup@latin,
but it's quite hard (for me) to see what's going on.  (I should get the doc
file.)

Has someone already solved or addressed this, or am I wrong about it in
some way?

The idea would be to be able to say

\setmainfont{FreeSans}[Script=Latin]
\newfontfamily\sanskGujarati{Code2000}[Script=Gujarati]

etc.

Actually, the more I play with this, the less I understand what's going
on.  I thought I had Polyglossia nailed, but I don't.   Why doesn't
\sanskGujarati set my text in Gujarati script?

Dominik



On 10 February 2017 at 03:10, Ulrike Fischer <news3 at nililand.de> wrote:

> Am Fri, 10 Feb 2017 08:54:09 +0100 schrieb Zdenek Wagner:
>
> > OK, I have a newer version. Maybe the bug is known and was fixed just a
> few
> > days ago.
>
> What do mean by that you have newer version? Your fontspec is from
> 2016 and mine from 2017.
>
> And yes the bug is known. I discussed it two weeks ago with Will.
>
>
> --
> Ulrike Fischer
> http://www.troubleshooting-tex.de/
>
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>   http://tug.org/mailman/listinfo/xetex
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20170210/e5ff46af/attachment.html>


More information about the XeTeX mailing list