Cyrillic replacement for TeX Gyre Schola?
![](https://secure.gravatar.com/avatar/e5aa6984b53b8925e405ebbdbc051ad9.jpg?s=120&d=mm&r=g)
приве́т! My songbooks are typeset in TeX Gyre Schola (since Century Schoolbook is the default lyrics font of LilyPond, I like it and it’s very readable). Seems like I didn’t need Russian lyrics since the removal of Cyrillic glyphs from TeX Gyre. But now I do. What would you do? Is there an illegal "complete" version around, or can you suggest a replacement (and tell me how to setup ConTeXt to take that font for all Cyrillic letters)? Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
![](https://secure.gravatar.com/avatar/57c17c28c61c03706efc4a9112fad09b.jpg?s=120&d=mm&r=g)
On 2013–08–20 Henning Hraban Ramm wrote:
Seems like I didn’t need Russian lyrics since the removal of Cyrillic glyphs from TeX Gyre. But now I do. What would you do? Is there an illegal "complete" version around,
Many commercial fonts cover the Cyrillic range. Pick whichever you like.
or can you suggest a replacement (and tell me how to setup ConTeXt to take that font for all Cyrillic letters)?
You didn't specify your requirements. Do you need a free font or a free font that ships with ConTeXt? I think DejaVu Serif is fairly close to Century Schoolbook. You can also try xits. This should get you started: \usemodule [simplefonts] \setmainfont [schola] \setmainfontfallback [dejavuserif] [range=cyrillic] \starttext \input knuth Традиционная систематика лишайников оказывается во многом условна и отражает, скорее, особенности их строения и экологии, чем родственные отношения внутри группы, тем более что основывается она только на микобионте, а фотобионт сохраняет свою таксономическую самостоятельность. Классифицируют лишайники по-разному, но в настоящее время рассматривают их как экологическую группу, уже не придавая им статуса таксона, поскольку независимость происхождения разных групп лишайников не вызывает сомнений, а группы, входящие в состав лишайников, помещают туда же, что и родственные микобионту грибы, не образующие лишайников. Для обозначения лишайников используют биноминальную номенклатуру, названия соответствуют названию микобионта. \stoptext Marco
![](https://secure.gravatar.com/avatar/e5aa6984b53b8925e405ebbdbc051ad9.jpg?s=120&d=mm&r=g)
Am 2013-08-23 um 18:00 schrieb Marco Patzer
On 2013–08–20 Henning Hraban Ramm wrote:
Seems like I didn’t need Russian lyrics since the removal of Cyrillic glyphs from TeX Gyre. But now I do. What would you do? Is there an illegal "complete" version around,
Many commercial fonts cover the Cyrillic range. Pick whichever you like.
Of course. I have plenty. The question was meant more like: Is there another free version of Century Schoolbook or lookalike that includes Cyrillic.
or can you suggest a replacement (and tell me how to setup ConTeXt to take that font for all Cyrillic letters)?
You didn't specify your requirements. Do you need a free font or a free font that ships with ConTeXt? I think DejaVu Serif is fairly close to Century Schoolbook. You can also try xits.
This should get you started:
\usemodule [simplefonts] \setmainfont [schola] \setmainfontfallback [dejavuserif] [range=cyrillic]
Thank you, that is what I was looking for. How would I write the last line without the simplefonts module? (At the moment I’m using a typescript that e.g. also defines hw.) Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
![](https://secure.gravatar.com/avatar/57c17c28c61c03706efc4a9112fad09b.jpg?s=120&d=mm&r=g)
On 2013–08–23 Henning Hraban Ramm wrote:
This should get you started:
\usemodule [simplefonts] \setmainfont [schola] \setmainfontfallback [dejavuserif] [range=cyrillic]
Thank you, that is what I was looking for. How would I write the last line without the simplefonts module?
You define the fallback using \definefontfallback and then use the fallback key when defining the font. \definefontfallback [cyr] [name:dejavuserif] [cyrillic] \definefontsynonym [Serif-Fallback] [Serif] [fallbacks=cyr] \definefont [mySchola] [Serif-Fallback] \setupbodyfont [schola] \starttext \mySchola \input knuth Традиционная систематика лишайников оказывается во многом условна и отражает, скорее, особенности их строения и экологии, чем родственные отношения внутри группы, тем более что основывается она только на микобионте, а фотобионт сохраняет свою таксономическую самостоятельность. \stoptext Marco
![](https://secure.gravatar.com/avatar/57c17c28c61c03706efc4a9112fad09b.jpg?s=120&d=mm&r=g)
On 2013–08–23 Marco Patzer wrote:
On 2013–08–23 Henning Hraban Ramm wrote:
This should get you started:
\usemodule [simplefonts] \setmainfont [schola] \setmainfontfallback [dejavuserif] [range=cyrillic]
Thank you, that is what I was looking for. How would I write the last line without the simplefonts module?
You define the fallback using \definefontfallback and then use the fallback key when defining the font.
Maybe it's better to show a complete typescript: \definefontfallback [cyrillic_regular] [name:dejavuserif] [cyrillic] \definefontfallback [cyrillic_bold] [name:dejavuserifbold] [cyrillic] \definefontfallback [cyrillic_italic] [name:dejavuserifitalic] [cyrillic] \definefontfallback [cyrillic_bolditalic] [name:dejavuserifbolditalic] [cyrillic] \starttypescript [serif] [schola] \setups [font:fallback:serif] \definefontsynonym [Serif] [name:texgyreschola-regular] [fallbacks=cyrillic_regular] \definefontsynonym [SerifBold] [name:texgyreschola-bold] [fallbacks=cyrillic_bold] \definefontsynonym [SerifItalic] [name:texgyreschola-italic] [fallbacks=cyrillic_italic] \definefontsynonym [SerifBoldItalic] [name:texgyreschola-bolditalic] [fallbacks=cyrillic_bolditalic] \stoptypescript \starttypescript [schola] \definetypeface [\typescriptone] [rm] [serif] [schola] [default] \definetypeface [\typescriptone] [ss] [sans] [latin-modern] [default] \definetypeface [\typescriptone] [tt] [mono] [latin-modern] [default] \definetypeface [\typescriptone] [mm] [math] [latin-modern] [default] \stoptypescript Marco
![](https://secure.gravatar.com/avatar/b79687264c3e06cba13b54d05b12a9f5.jpg?s=120&d=mm&r=g)
Am 23.08.2013 um 18:44 schrieb Marco Patzer
Maybe it's better to show a complete typescript:
\definefontfallback [cyrillic_regular] [name:dejavuserif] [cyrillic] \definefontfallback [cyrillic_bold] [name:dejavuserifbold] [cyrillic] \definefontfallback [cyrillic_italic] [name:dejavuserifitalic] [cyrillic] \definefontfallback [cyrillic_bolditalic] [name:dejavuserifbolditalic] [cyrillic]
\starttypescript [serif] [schola] \setups [font:fallback:serif] \definefontsynonym [Serif] [name:texgyreschola-regular] [fallbacks=cyrillic_regular] \definefontsynonym [SerifBold] [name:texgyreschola-bold] [fallbacks=cyrillic_bold] \definefontsynonym [SerifItalic] [name:texgyreschola-italic] [fallbacks=cyrillic_italic] \definefontsynonym [SerifBoldItalic] [name:texgyreschola-bolditalic] [fallbacks=cyrillic_bolditalic] \stoptypescript
\starttypescript [schola] \definetypeface [\typescriptone] [rm] [serif] [schola] [default] \definetypeface [\typescriptone] [ss] [sans] [latin-modern] [default] \definetypeface [\typescriptone] [tt] [mono] [latin-modern] [default] \definetypeface [\typescriptone] [mm] [math] [latin-modern] [default] \stoptypescript
You missed in the typescript the features setting for the main and also the fallback font. Wolfgang
![](https://secure.gravatar.com/avatar/57c17c28c61c03706efc4a9112fad09b.jpg?s=120&d=mm&r=g)
On 2013–08–24 Wolfgang Schuster wrote:
You missed in the typescript the features setting for the main and also the fallback font.
I did, indeed. However, I'm unsure how to do it (I never needed to typeset Cyrillic and I can't even tell if it typesets correctly). The default features should be applied to the regular font and a special feature set to the fallback font. If I add the features=default in the font synonym definition, the fallback breaks. It works, if the star syntax is being used. I don't quite understand why. %% not sure which features are required for Cyrillic \definefontfeature [cyr-default] [mode=node, script=cyrl] \definefontfallback [cyrillic_regular] [name:dejavuserif*cyr-default] [cyrillic] \starttypescript [serif] [schola] %% works %% \definefontsynonym [Serif] [name:texgyreschola-regular*default] [fallbacks=cyrillic_regular] %% fallback does not work \definefontsynonym [Serif] [name:texgyreschola-regular] [features=default, fallbacks=cyrillic_regular] \stoptypescript \starttypescript [schola] \definetypeface [\typescriptone] [rm] [serif] [schola] [default] \stoptypescript \setupbodyfont [schola] \starttext \input knuth Традиционная систематика лишайников оказывается во многом условна и \stoptext Marco
![](https://secure.gravatar.com/avatar/b79687264c3e06cba13b54d05b12a9f5.jpg?s=120&d=mm&r=g)
Am 24.08.2013 um 13:38 schrieb Marco Patzer
On 2013–08–24 Wolfgang Schuster wrote:
You missed in the typescript the features setting for the main and also the fallback font.
I did, indeed. However, I'm unsure how to do it (I never needed to typeset Cyrillic and I can't even tell if it typesets correctly). The default features should be applied to the regular font and a special feature set to the fallback font. If I add the features=default in the font synonym definition, the fallback breaks. It works, if the star syntax is being used.
I don't quite understand why.
%% not sure which features are required for Cyrillic \definefontfeature [cyr-default] [mode=node, script=cyrl] \definefontfallback [cyrillic_regular] [name:dejavuserif*cyr-default] [cyrillic]
\starttypescript [serif] [schola] %% works %% \definefontsynonym [Serif] [name:texgyreschola-regular*default] [fallbacks=cyrillic_regular]
%% fallback does not work \definefontsynonym [Serif] [name:texgyreschola-regular] [features=default, fallbacks=cyrillic_regular] \stoptypescript
\starttypescript [schola] \definetypeface [\typescriptone] [rm] [serif] [schola] [default] \stoptypescript
\setupbodyfont [schola]
\starttext \input knuth
Традиционная систематика лишайников оказывается во многом условна и \stoptext
I can’t reproduce your problem with the features key. To set the features for the fallback font I would use \ definefontsynonym. \definefontfeature [cyr-default] [mode=node, script=cyrl] \definefontsynonym [CyrillicRegular] [file:dejavuserif] [features=cyr-default] \definefontfallback [cyrillic_regular] [CyrillicRegular] [cyrillic] \starttypescript [serif] [schola] \definefontsynonym [Serif] [file:texgyrescholaregular] [features=default,fallbacks=cyrillic_regular] \stoptypescript \starttypescript [schola] \definetypeface [\typescriptone] [rm] [serif] [schola] [default] \stoptypescript \setupbodyfont [schola] \starttext \input knuth Традиционная систематика лишайников оказывается во многом условна и \stoptext Wolfgang
![](https://secure.gravatar.com/avatar/57c17c28c61c03706efc4a9112fad09b.jpg?s=120&d=mm&r=g)
On 2013–08–24 Wolfgang Schuster wrote:
I can’t reproduce your problem with the features key.
I was surprised that your example was running here, and I noticed that a space makes all the difference: %% fails \definefontsynonym [Serif] [file:texgyrescholaregular] [features=default, fallbacks=cyrillic_regular] %% works \definefontsynonym [Serif] [file:texgyrescholaregular] [features=default,fallbacks=cyrillic_regular] ^^^
To set the features for the fallback font I would use \ definefontsynonym.
Makes more sense, yes. Marco
![](https://secure.gravatar.com/avatar/b79687264c3e06cba13b54d05b12a9f5.jpg?s=120&d=mm&r=g)
Am 24.08.2013 um 16:18 schrieb Marco Patzer
On 2013–08–24 Wolfgang Schuster wrote:
I can’t reproduce your problem with the features key.
I was surprised that your example was running here, and I noticed that a space makes all the difference:
\definefontsynonym uses its own parser for the key-val arguments which doesn’t remove spaces before keys. Wolfgang
participants (3)
-
Henning Hraban Ramm
-
Marco Patzer
-
Wolfgang Schuster