
I have the following: \starttext A. \switchtobodyfont[10pt]{ First published by Stojan Novaković in 1877 in his anthology \modCyr{\emph{Примери књижевности и jезика старога и српско-словенскога}} (Belgrade/\modCyr{Београд: Издање и штампа државне штампариjе}, pp.\ 504–505). } \blank[big,fixed] B. \switchtobodyfont[9pt]{ First published by Stojan Novaković in 1877 in his anthology \modCyr{\emph{Примери књижевности и jезика старога и српско-словенскога}} (Belgrade/\modCyrfn{Београд: Издање и штампа државне штампариjе}, pp.\ 504–505). } \stoptext This works as expected at 10pt but fails at 9pt (no Russian is printed). The problem does not seem to be with dejavu. I have plainly missed something. But what? Alan

Oops. I forgot the macro definition:
\def\modCyr#1{{\switchtobodyfont[dejavu]{#1}}}
On Thu, Apr 10, 2025 at 12:09 PM Alan Bowen
I have the following: \starttext
A. \switchtobodyfont[10pt]{ First published by Stojan Novaković in 1877 in his anthology \modCyr{\emph{Примери књижевности и jезика старога и српско-словенскога}} (Belgrade/\modCyr{Београд: Издање и штампа државне штампариjе}, pp.\ 504–505). }
\blank[big,fixed]
B. \switchtobodyfont[9pt]{ First published by Stojan Novaković in 1877 in his anthology \modCyr{\emph{Примери књижевности и jезика старога и српско-словенскога}} (Belgrade/\modCyrfn{Београд: Издање и штампа државне штампариjе}, pp.\ 504–505). }
\stoptext
This works as expected at 10pt but fails at 9pt (no Russian is printed). The problem does not seem to be with dejavu.
I have plainly missed something. But what?
Alan

Am 10.04.2025 um 18:28 schrieb Alan Bowen:
Oops. I forgot the macro definition:
\def\modCyr#1{{\switchtobodyfont[dejavu]{#1}}}
To get your text in dejavu add \usebodyfont [dejavu] \setupbodyfont[modern] at the begin of the document to preload the typescript, otherwise you load the font in a local group where the settings are forgotten at the end of the group. Be also be aware of \switchtobodyfont being an argumentless switch, this means the form \switchtobodyfont[<font>]{...} is wrong and the correct form is {\switchtobodyfont[<font>]...} Wolfgang

Thank you, Wolfgang! That is very helpful and much appreciated. Re \switchtobodyfont, I see that I misinterpreted the entry on the wiki. All best, Alan On Apr 10, 2025 at 14:06:16, Wolfgang Schuster < wolfgang.schuster.lists@gmail.com> wrote:
Am 10.04.2025 um 18:28 schrieb Alan Bowen:
Oops. I forgot the macro definition:
\def\modCyr#1{{\switchtobodyfont[dejavu]{#1}}}
To get your text in dejavu add
\usebodyfont [dejavu] \setupbodyfont[modern]
at the begin of the document to preload the typescript, otherwise you load the font in a local group where the settings are forgotten at the end of the group.
Be also be aware of \switchtobodyfont being an argumentless switch, this means the form
\switchtobodyfont[<font>]{...}
is wrong and the correct form is
{\switchtobodyfont[<font>]...}
Wolfgang
___________________________________________________________________________________ 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
___________________________________________________________________________________

Am 10.04.2025 um 18:09 schrieb Alan Bowen:
I have the following: \starttext
A. \switchtobodyfont[10pt]{ First published by Stojan Novaković in 1877 in his anthology \modCyr{\emph{Примери књижевности и jезика старога и српско- словенскога}} (Belgrade/\modCyr{Београд: Издање и штампа државне штампариjе}, pp.\ 504–505). }
\blank[big,fixed]
B. \switchtobodyfont[9pt]{ First published by Stojan Novaković in 1877 in his anthology \modCyr{\emph{Примери књижевности и jезика старога и српско- словенскога}} (Belgrade/\modCyrfn{Београд: Издање и штампа државне штампариjе}, pp.\ 504–505). }
\stoptext
This works as expected at 10pt but fails at 9pt (no Russian is printed). The problem does not seem to be with dejavu.
I have plainly missed something. But what?
Show us a complete working example because yours doesn't compile, the reason for this is the \modCyr command. Wolfgang

Sorry, Wolfgang. Here is the complete file: \def\modCyr#1{{\switchtobodyfont[dejavu]{#1}}} \starttext A. \switchtobodyfont[10pt]{ First published by Stojan Novaković in 1877 in his anthology \modCyr{\emph{Примери књижевности и jезика старога и српско-словенскога}} (Belgrade/\modCyr{Београд: Издање и штампа државне штампариjе}, pp.\ 504–505). } \blank[big,fixed] B. \switchtobodyfont[9pt]{ First published by Stojan Novaković in 1877 in his anthology \modCyr{\emph{Примери књижевности и jезика старога и српско-словенскога}} (Belgrade/\modCyr{Београд: Издање и штампа државне штампариjе}, pp.\ 504–505). } \stoptext Alan On Apr 10, 2025 at 13:44:01, Wolfgang Schuster < wolfgang.schuster.lists@gmail.com> wrote:
Am 10.04.2025 um 18:09 schrieb Alan Bowen:
I have the following:
\starttext
A.
\switchtobodyfont[10pt]{
First published by Stojan Novaković in 1877 in his anthology
\modCyr{\emph{Примери књижевности и jезика старога и српско-
словенскога}} (Belgrade/\modCyr{Београд: Издање и штампа државне
штампариjе}, pp.\ 504–505).
}
\blank[big,fixed]
B.
\switchtobodyfont[9pt]{
First published by Stojan Novaković in 1877 in his anthology
\modCyr{\emph{Примери књижевности и jезика старога и српско-
словенскога}} (Belgrade/\modCyrfn{Београд: Издање и штампа државне
штампариjе}, pp.\ 504–505).
}
\stoptext
This works as expected at 10pt but fails at 9pt (no Russian is printed).
The problem does not seem to be with dejavu.
I have plainly missed something. But what?
Show us a complete working example because yours doesn't compile, the reason for this is the \modCyr command.
Wolfgang
___________________________________________________________________________________ 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
___________________________________________________________________________________
participants (2)
-
Alan Bowen
-
Wolfgang Schuster