Re: [NTG-context] Cyrillic replacement for TeX Gyre Schola?

2013-08-24 Thread 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

Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Cyrillic replacement for TeX Gyre Schola?

2013-08-24 Thread Wolfgang Schuster

Am 24.08.2013 um 13:38 schrieb Marco Patzer li...@homerow.info:

 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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Cyrillic replacement for TeX Gyre Schola?

2013-08-24 Thread 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:

  %% 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


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Cyrillic replacement for TeX Gyre Schola?

2013-08-24 Thread Wolfgang Schuster

Am 24.08.2013 um 16:18 schrieb Marco Patzer li...@homerow.info:

 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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Cyrillic replacement for TeX Gyre Schola?

2013-08-23 Thread 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.

 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


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Cyrillic replacement for TeX Gyre Schola?

2013-08-23 Thread Henning Hraban Ramm
Am 2013-08-23 um 18:00 schrieb Marco Patzer li...@homerow.info:

 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)

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Cyrillic replacement for TeX Gyre Schola?

2013-08-23 Thread Marco Patzer
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


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Cyrillic replacement for TeX Gyre Schola?

2013-08-23 Thread Marco Patzer
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


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Cyrillic replacement for TeX Gyre Schola?

2013-08-23 Thread Wolfgang Schuster

Am 23.08.2013 um 16:54 schrieb Henning Hraban Ramm te...@fiee.net:

 (At the moment I’m using a typescript that e.g. also defines hw.)

You can set a font for \hw with the \sethandwritingfont command.

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Cyrillic replacement for TeX Gyre Schola?

2013-08-23 Thread Wolfgang Schuster

Am 23.08.2013 um 18:44 schrieb Marco Patzer li...@homerow.info:

 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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___