Difference between revisions of "User talk:Mickep"

From Wiki
Jump to navigation Jump to search
m (Cyrillic Fonts and UTF)
 
m
 
Line 1: Line 1:
== Cyrillic fonts and UTF ==
+
I am not sure what should be here. But at least not the [http://contextgarden.net/Russian Russian] example that were here.
 
 
It is now possible (from ConTeXt version 2005-01-27 or 2005-01-31) to type cyrillic letters directly in your .tex file using UTF-8 encoding. I have only tested this on TeXLive 2004, but I guess it would work on any distribution as long as you have the cm-super fonts installed (On TeXLive you had to generate the tfm files needed using the <tt> afm2tfm </tt> application). Here is a minimal(?) working file.
 
 
 
<texcode>
 
\enableregime[utf]
 
\useencoding[cyr]
 
 
 
\definetypeface [russian]
 
  [rm] [serif] [computer-modern] [default] [encoding=t2a]
 
 
 
\setupbodyfont[russian]
 
\starttext
 
Мама и Папа % Some russian characters
 
\stoptext
 
</texcode>
 

Latest revision as of 07:48, 1 February 2005

I am not sure what should be here. But at least not the Russian example that were here.