[NTG-context] How do I add cyrillic to my typescript/document?

Pablo Rodriguez oinos at gmx.es
Sun May 3 15:55:56 CEST 2020


On 5/3/20 2:56 PM, Gerben Wierda wrote:
> ConTeXtgarden had theanswer when I searched again:
>
> \setupbodyfont[dejavu]
> \mainlanguage[russian]

Hi Gerben,

I’m afraid they may be different issues: setting a language and getting
the glyphs required for that language.

See the following sample:

    \setupbodyfont[dejavu]
    \mainlanguage[russian]
    \starttext
    \hyphenatedword{%
    Николаевич
    typography
    \en typography}
    \stoptext

Since you set the main language to Russian in the document, you would
have to mark all English texts properly. I doubt this may be what you
intend.

The way to get a fallback font would be (depending on which approach you
use) \definefontfallback or \definefallbackfamily.

A sample of the second option would read:

  \definefallbackfamily
    [mainface]
    [ss]
    [FreeSans]
    [preset=range:cyrillic,
     force=yes]

In any case,
http://www.pragma-ade.com/general/qrcs/setup-en.pdf#search=%22definefontfallback%22
explains the syntax of the first option (sorry, but I only use the
\definefontfamily approach).

Just in case it helps,

Pablo
--
http://www.ousia.tk


More information about the ntg-context mailing list