[XeTeX] does language switching works properly?

Antonis Tsolomitis atsol at aegean.gr
Sat Dec 4 18:54:42 CET 2021


If so, I will take this to the fontforge lists.

Thank you.

Antonis.



On 12/3/21 5:38 PM, Zdenek Wagner wrote:
> Hi,
>
> I think that this is not a XeTeX problem but a font problem. For
> instance, FreeSerif can distinguish conjuncts for Hindi from conjuncts
> for Sanskrit and can use different spacing for interpunctin based on
> the language. This leads me to thinking that it is a font problem.
>
> Zdeněk Wagner
> http://ttsm.icpf.cas.cz/team/wagner.shtml
>
> pá 3. 12. 2021 v 16:18 odesílatel Antonis Tsolomitis via XeTeX
> <xetex at tug.org> napsal:
>>
>>
>> In Greek (and Russian) the guillemots are different than the default. So the NewCM fonts
>> include a lookup cv04 for the Greek and cv03 for the Russian to switch to the proper glyphs.
>>
>> I thought that if cv04 has metadata
>>
>> grek(dflt)
>>
>> and if I switch to Greek using the polyglossia command
>> \textlang{greek}{\newcmgreekguillemots «»}
>>
>> where
>>
>> \newfontfamily\newcmgreekguillemots[CharacterVariant=4]{NewCM10-Book.otf}
>>
>> then the substitution will work. But it does not.
>>
>> If I add to metadata
>>
>> latn{dflt}
>>
>> then it works. But is this proper? Shouldn't it work only with grek{dlft} ?
>>
>> It is either my understanding wrong or polyglossia does not do the proper switching or xetex
>> does not pickup the change of language properly.
>>
>> In my sources I have added latn{dflt} for both Greek and Russian to make the fonts work.
>> So if a test is needed I have to send a custom font.
>>
>> Thanks,
>>
>> Antonis.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/xetex/attachments/20211204/9ac9480f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://tug.org/pipermail/xetex/attachments/20211204/9ac9480f/attachment.sig>


More information about the XeTeX mailing list.