On 1/18/26 09:31, Jürgen Hanneder via ntg-context wrote:
>
> I'll try to append the pdf, but you can see the text, a page number a
> footnote with only the line number, but no roman text "test".
> So I guess I have to swich to roman within the footnote, but no
> combination for \switchtobodyfont and \resettransliteration
> has worked.
Hi,
first time I use transliteration, but if `\usetransliteration` is
needed, it should be limited by setups (I guess) to make
`\resettransliteration` work.
Some comments:
* Your font Roman needs no Indic script as fallback (since when Sanskrit
as language is loaded, the nagari font is loaded [via setups]).
* `\definestartstop` is a command (which seems to work better in your case).
* You are using `\setupbodyfont` twice and no `\starttext`.
* As you may already know, linenumbering needs not only to be setup, but
started (and stopped).
* `numberconversion` in `\definenotation` is a way to set linenote numbers.
New sample:
% Devanāgarī setup
\definefontfamily [Roman] [rm] [Minion Pro]
\setupbodyfont [Roman]
\definefontfamily [nagari] [rm] [Adishila San]
[features=devanagari-one,rscale=1.9]
\definetransliteration [MyDeva] [lang=sa,vector={iast to deva}]
\startsetups [sanskrit]
\usetransliteration[indic]
\settransliteration[MyDeva]
\switchtobodyfont[nagari]
\stopsetups
\setuplanguage [sa] [setups=sanskrit]
\definestartstop [sanskrit] [style={\sa}]
\definestartstop[skt]
[style={\sa}]
\setupbodyfont[xcharter]
% footnotes
\setupnotations[alternative=serried]
\setuplinenumbering[step=5,method=page,style=\tfx,
location=outer,align=outer]
\definelinenote[var][paragraph=yes]
\definenotation[var][numberconversion=greek, numbercommand=,]
% Test
\starttext
\startlinenumbering
\startsanskrit
śrīādi\var{\resettransliteration test}
\stopsanskrit
\startskt
śrīādi\var{\resettransliteration test}
\stopskt
\stoplinenumbering
\stoptext
I hope it helps (let us know, when it doesn’t),
Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] /
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
___________________________________________________________________________________