Re: [NTG-context] is this valid usage of \def?

2010-05-30 Thread Wolfgang Schuster

Am 30.05.10 01:33, schrieb Rogutės Sparnuotos:

Hello,

Could someone please confirm that it is ok to use \def like this:

   \def\ru{\switchtobodyfont[cyr]\language[ru]}
   \starttext
   \item {\ru Эйхенбаум, Борис. {\it Теория «формального метода»}.}
 Some other text in the main language.
   \stoptext

This is MkII with XeTeX, cyr is defined as

   \definetypeface[cyr][rm][Xserif][CMU Serif]
   \definetypeface[cyr][ss][Xsans][CMU Sans Serif]
   \definetypeface[cyr][tt][Xmono][CMU Typewriter Text]

because 'Latin Modern' lacks cyrillic glyphs and 'Computer Modern Unicode'
lacks some Lithuanian glyphs (and looks slightly different).
   


In MkIV you can set falback fonts for cyrillic etc.

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
___


[NTG-context] is this valid usage of \def?

2010-05-29 Thread Rogutės Sparnuotos
Hello,

Could someone please confirm that it is ok to use \def like this:

  \def\ru{\switchtobodyfont[cyr]\language[ru]}
  \starttext
  \item {\ru Эйхенбаум, Борис. {\it Теория «формального метода»}.} 
Some other text in the main language.
  \stoptext

This is MkII with XeTeX, cyr is defined as

  \definetypeface[cyr][rm][Xserif][CMU Serif]
  \definetypeface[cyr][ss][Xsans][CMU Sans Serif]
  \definetypeface[cyr][tt][Xmono][CMU Typewriter Text]

because 'Latin Modern' lacks cyrillic glyphs and 'Computer Modern Unicode'
lacks some Lithuanian glyphs (and looks slightly different).

-- 
--  Rogutės Sparnuotos
___
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
___