On 8/8/24 13:07, Jürgen Hanneder via ntg-context wrote:
> The text below works, thanks for the help!
>
> But there is one more problem.
>
> I could not find an elegant method to set the language of the
> document to English without disabling Nagari. If one adds
> \setupbodyfont[minion] the Nagari parts disappear.

Default language is US English. I mean, this is already set.

For other languages, \mainlanguage[de] (as an example).

As for the fonts, you need a fallback typeface:

  \definefallbackfamily [nagari] [rm] [adishila]
    [range={devanagari, devanagariextendeda, devanagariextendeda},
     force=yes, features=devanagari-one]

  \definefontfamily [nagari] [rm] [Minion Pro]

  \setupbodyfont[nagari]

> The normal scenario would be a document in English with Sanskrit as
> a secondary language, to one switches with a command that changes
> font, language and activates the transliteration mechanism.
>
> \starttransliteration[MyDeva] does not do this as soon as one sets
> the roman font.

Adding the above commands, it should work. There is an issue with
language, but I’m opening a new thread.

I hope it helps,

Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to