Discussion:
[XeTeX] XeTeX Digest, Vol 155, Issue 8
Kevin Warnock
2017-02-11 22:35:01 UTC
Permalink
unsubscribe
Send XeTeX mailing list submissions to
To subscribe or unsubscribe via the World Wide Web, visit
http://tug.org/mailman/listinfo/xetex
or, via email, send a message with subject or body 'help' to
You can reach the person managing the list at
When replying, please edit your Subject line so it is more specific
than "Re: Contents of XeTeX digest..."
1. Mixed Roman and Indian alphabets for Sanskrit (was: what is
\setmainfont used for?) (Dominik Wujastyk)
2. Re: Mixed Roman and Indian alphabets for Sanskrit (was: what
is \setmainfont used for?) (ShreeDevi Kumar)
----------------------------------------------------------------------
Message: 1
Date: Fri, 10 Feb 2017 14:41:26 -0700
what is \setmainfont used for?)
gmail.com>
Content-Type: text/plain; charset="utf-8"
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
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
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/
--------------------------------------------------
http://tug.org/mailman/listinfo/xetex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20170210/
e5ff46af/attachment-0001.html>
------------------------------
Message: 2
Date: Sat, 11 Feb 2017 07:07:37 +0530
Subject: Re: [XeTeX] Mixed Roman and Indian alphabets for Sanskrit
(was: what is \setmainfont used for?)
gmail.com>
Content-Type: text/plain; charset="utf-8"
I use Polyglossia with a modified version of ucharclasses to automatically
% mainfont, englishfont, sanskritfont, romanfont, devanagarifont,
englishfont, vedafont
\defaultfontfeatures{Mapping=tex-text}
%Polyglossia
%Script (default = Devanagari) passed to Fontspec for Sanskrit language if
\devanagarifont or \sanskritfont not defined
\defaultfontfeatures{Mapping=tex-text}
\setmainlanguage{english}
\setotherlanguage{sanskrit}
%
%Fontspec
\setmainfont[Color=teal]{FreeSerif}
\setmonofont[Path=/home/shree/sanskritdocuments-git/fonts/,
Scale=0.7]{mplus-1m-regular.ttf}
%
\newfontfamily{\englishfont}{FreeSerif}
%
\newfontfamily{\devanagarifont}[Scale=1]{Lohit Devanagari}
\newfontfamily{\tamilfont}[Script=Tamil,Scale=0.9]{Lohit Tamil Classical}
\newfontfamily{\telugufont}[Path=/home/shree/sanskritdocuments-git/fonts/,
Script=Telugu,Scale=1.1]{Pothana2000Vedic_1_2_1.ttf}
\newfontfamily{\gujaratifont}[Path=/home/shree/
sanskritdocuments-git/fonts/,Scale=1,Script=Gujarati]{Rasa-Regular.ttf}
\newfontfamily{\vedafont}[Scale=1.2,Color=purple]{Siddhanta}
\newfontfamily{\vedablackfont}[Scale=1.1]{Siddhanta}
%
\usepackage[Latin, GeneralPunctuation, DevanagariMarks, DevanagariPreMarks,
DevanagariExtended, DevanagariPostMarks, Gujarati, Tamil, Telugu,
VedicExtensions, SuperscriptsAndSubscripts]{ucharclasses}
\setTransitionsForLatin{\englishfont}{}
\setTransitionTo{GeneralPunctuation}{\englishfont}
\setTransitionTo{SuperscriptsAndSubscripts}{\englishfont}
\setTransitionTo{DevanagariPreMarks}{\devanagarifont}
\setTransitionTo{DevanagariPostMarks}{\devanagarifont}
\setTransitionTo{DevanagariMarks}{\vedafont}
\setTransitionTo{DevanagariExtended}{\vedablackfont}
\setTransitionTo{VedicExtensions}{\vedafont}
\setTransitionTo{Gujarati}{\gujaratifont}
\setTransitionTo{Tamil}{\tamilfont}
\setTransitionTo{Telugu}{\telugufont}
%
\setTransitionsFor{Latin}
{\hyphenrules{english}\englishfont}
{\hyphenrules{sanskrit}\devanagarifont}
\setTransitionsFor{Devanagari}
{\hyphenrules{sanskrit}\devanagarifont}
{\hyphenrules{english}\englishfont}
%
ShreeDevi
____________________________________________________________
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
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
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/
--------------------------------------------------
http://tug.org/mailman/listinfo/xetex
--------------------------------------------------
http://tug.org/mailman/listinfo/xetex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20170211/
a313d8b9/attachment-0001.html>
------------------------------
Subject: Digest Footer
_______________________________________________
XeTeX mailing list
http://tug.org/mailman/listinfo/xetex
------------------------------
End of XeTeX Digest, Vol 155, Issue 8
*************************************
--
Kevin Warnock
(415) 613-9990 mobile phone number
http://KevinWarnock.com - my blog
Loading...