Re: [XeTeX] Mixed Roman and Indian alphabets for Sanskrit

2017-02-14 Thread Zdenek Wagner
2017-02-14 15:29 GMT+01:00 Philip Taylor : > > > Dominik Wujastyk wrote: > > Even if this works, I am unhappy with the terminological confusion between > scripts and languages. This seems to be built in to Polyglossia. > > Is this not, rather, a feature of Opentype [1, 2]

Re: [XeTeX] misaligned math if \smash used in subscripts

2017-02-14 Thread jfbu
Hi, just to point out that there is interesting effect if the very first \smash. is simply replaced by an x \hrule $$ \hbox{$\left)\vbox to15pt{}\right.$}_{x} % or also _{\hbox{x}} \hbox{$\left)\vbox to15pt{}\right.$}_{\smash.} \hbox{$\left)\vbox to15pt{}\right.$}_{\smash.} $$ \hrule

Re: [XeTeX] Mixed Roman and Indian alphabets for Sanskrit

2017-02-14 Thread Ulrike Fischer
Am Mon, 13 Feb 2017 16:47:09 -0700 schrieb Dominik Wujastyk: > Does "Script=Devanagari" turn on the hypy-sa hyphenation fil No. hyphenation patterns are turned on with \selectlanguage{XXX} commands (and similar commands from polyglossia, babel or the engines). -- Ulrike Fischer

Re: [XeTeX] misaligned math if \smash used in subscripts

2017-02-14 Thread Ulrike Fischer
Am Tue, 14 Feb 2017 00:41:48 + schrieb David Carlisle: > The following first reported at the unicode-math github > https://github.com/wspr/unicode-math/issues/383 > but the problem can be seem with plain tex. > > > In the tex below there are six repeated instances of a subscripted bracket >

Re: [XeTeX] Mixed Roman and Indian alphabets for Sanskrit

2017-02-14 Thread Zdenek Wagner
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. Zdeněk Wagner http://ttsm.icpf.cas.cz/team/wagner.shtml http://icebearsoft.euweb.cz

Re: [XeTeX] Mixed Roman and Indian alphabets for Sanskrit

2017-02-14 Thread Dominik Wujastyk
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. So for the common situation like this: संस्कृतभाषा

Re: [XeTeX] Mixed Roman and Indian alphabets for Sanskrit

2017-02-14 Thread Ulrike Fischer
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.

Re: [XeTeX] misaligned math if \smash used in subscripts

2017-02-14 Thread jfbu
Le 14/02/2017 à 15:42, Herbert Schulz a écrit : > >> On Feb 14, 2017, at 2:36 AM, jfbu wrote: >> >> Hi, >> >> just to point out that there is interesting effect if the >> very first \smash. is simply replaced by an x >> >> \hrule >> $$ >> \hbox{$\left)\vbox to15pt{}\right.$}_{x} %

Re: [XeTeX] Mixed Roman and Indian alphabets for Sanskrit

2017-02-14 Thread 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. ​ -- Professor Dominik Wujastyk ​,​ Singhmar Chair in Classical Indian

Re: [XeTeX] Mixed Roman and Indian alphabets for Sanskrit

2017-02-14 Thread Philip Taylor
Dominik Wujastyk wrote: > 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. I assume (and as Dominik knows, I know nothing about Polyglossia whatsoever) that

Re: [XeTeX] Mixed Roman and Indian alphabets for Sanskrit

2017-02-14 Thread alessandro
Yes, exactly. I'm using this newcommand to get devanagari with Sanskrit hyphenation: \newcommand{\dn}[1]{\textsanskrit{\devanagarifont{#1}}} I also use this for occasional romanized Sanskrit passages within English prose, to switch the hyphenation from English to Sanskrit and also get the

Re: [XeTeX] Mixed Roman and Indian alphabets for Sanskrit

2017-02-14 Thread Philip Taylor
Dominik Wujastyk wrote: > Even if this works, I am unhappy with the terminological confusion between > scripts and languages. This seems to be built in to Polyglossia. Is this not, rather, a feature of Opentype [1, 2] fonts, where one writes (in XeTeX, for example) \font \thisfont =

Re: [XeTeX] misaligned math if \smash used in subscripts

2017-02-14 Thread Herbert Schulz
> On Feb 14, 2017, at 2:36 AM, jfbu wrote: > > Hi, > > just to point out that there is interesting effect if the > very first \smash. is simply replaced by an x > > \hrule > $$ > \hbox{$\left)\vbox to15pt{}\right.$}_{x} % or also _{\hbox{x}} > \hbox{$\left)\vbox