Dear Richard,
Are you after a Context version of something such as
Xetex Devanagari?
https://github.com/wujastyk/xetex-devanagari
Indeed. In my XeTeX publications settling the font was quite straightforward:
\usepackage{polyglossia,fontspec,xunicode}
\setmainfont{Adobe Text Pro}
\newfontfamily\sanskritfont[Script=Devanagari,Mapping=RomDev,Scale=1.4]{AdishilaSan}
\setdefaultlanguage{english} \setotherlanguage{sanskrit}
But coming back to ConTeXt:
I am grateful to Pablo and Wolfgang for their suggestions, but
it does not (yet) work as it should. Perhaps this has to do
with the problem in the language command. Here is my test file that
works up to the point, and then shows the problem.
-----------
\setuppapersize[A4]
\setuplayout[width=14cm, height=fit]
\definefontfamily [roman] [rm] [minion]
\definefontfamily [nagari] [rm] [Adishila] [features=devanagari-one]
\setupbodyfont [nagari]
\usetransliteration[indic]
\definetransliteration
[MyDeva] [lang=sa,vector={iast to deva}]
\startsetups [sanskrit]
\settransliteration[MyDeva]
\switchtobodyfont[nagari]
\stopsetups
\setuplanguage [sa] [setups=sanskrit]
\starttext
Example: आनन्द। अपिच % this comes out as it should, but since
input is in Nagari there is no transliteration involved.
test % the word "test" comes
out in roman, i.e. switching back to roman works.
\language[sa]{yoga} % the word "yoga" is typeset in
Nagari as expected,
test % but the word
"test" is still typeset in Nagari
\language[en]{test} % still no switching back to
roman, it seems stuck with Nagari.
\stoptext
-----
Jürgen
---
Prof. Dr. Juergen Hanneder
Philipps-Universitaet Marburg
FG Indologie u. Tibetologie
Deutschhausstr.12
35032 Marburg
Germany
Tel. 0049-6421-28-24930
hanne...@staff.uni-marburg.de
___________________________________________________________________________________
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
___________________________________________________________________________________