Hello all,
I am struggling to get a utf support for Context on mac working with
cyrrilic (Russian).
I am using this example:
\enableregime[utf]
\useencoding[cyr]
\definetypeface [russian]
[rm] [serif] [computer-modern] [default] [encoding=t2a]
\setupbodyfont[russian]
\starttext
Мама и Папа % Some Russian characters
\stoptext
taken from http://wiki.contextgarden.net/Russian
And it produces pdf with words:
1
Mama i Papa
I was following hints from wiki above - aft2tfm conversion for cm-super
but with no luck. I understand there is an option to encode into 8bit
format somewhere, but I wasn't able to find it.
I am using tetex & contex installation from
http://ii2.sourceforge.net/tex-index.html.
context output:
TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
fixing engine variable : pdfetex
executable : pdfetex
format : cont-en
inputfile : 2
output : pdftex
interface : en
current mode : none
TeX run : 1
This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)
(/usr/local/teTeX/share/texmf.local/web2c/natural.tcx)
entering extended mode
(./2.tex
ConTeXt ver: 2006.04.27 15:59 fmt: 2006.5.8 int: english mes:
english
language : language en is active
13->2:3 cz->il2:il2->14->2:3 cz->ec:ec->15->2:3 sk->il2:il2->16->2:3 sk->ec:ec
->17->2:3 pl->pl0:pl0->18->2:3 pl->ec:ec->19->2:3 pl->qx:qx->20->2:3 loaded specials : tex,postscript,rokicki loaded system : 2.top loaded (./2.top specials : loading definition file tpd (/usr/local/teTeX/share/texmf.local/tex/context/base/spec-tpd.tex specials : loading definition file fdf (/usr/local/teTeX/share/texmf.local/tex/context/base/spec-fdf.tex) specials : fdf loaded ) specials : fdf,tpd loaded ) systems : system commands are disabled (/usr/local/teTeX/share/texmf.local/tex/context/base/type-exa.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-syn.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-enc.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-siz.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-map.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-spe.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-exa.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-syn.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-enc.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-siz.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-map.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-spe.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/type-akb.tex) (/usr/local/teTeX/share/texmf.local/tex/context/base/pdfr-ec.tex) (./2.tuo) (./2.tuo) (./2.tuo) (./2.tuo) (./2.tuo) (./2.tuo) (./2.tuo) (./2.tuo) (./2.tuo) (./2.tuo) (./2.tuo) (./2.tuo) systems : begin file 2 at line 8 fonts : resetting map file list fonts : using map file: original-base fonts : using map file: ec-public-lm fonts : using map file: ec-base fonts : using map file: 8r-base fonts : using map file: t5-base fonts : using map file: original-ams-base fonts : using map file: original-ams-euler fonts : using map file: original-public-lm fonts : using map file: subset-cmsuper-t2a fonts : using map file: cm-super-t2a [1.1{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/original-e mpty .map}{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/original- base .map}{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/ec-public -lm. map}{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/ec-base.ma p}{/ usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/8r-base.map}{/us r/lo cal/teTeX/share/texmf.local/fonts/map/pdftex/context/t5-base.map}{/usr/loca l/te TeX/share/texmf.local/fonts/map/pdftex/context/original-ams-base.map}{/usr/ loca l/teTeX/share/texmf.local/fonts/map/pdftex/context/original-ams-euler.map}{ /usr /local/teTeX/share/texmf.local/fonts/map/pdftex/context/original-public-lm. map} Warning: pdfetex (file subset-cmsuper-t2a.map): cannot open font map file {/usr/local/teTeX/share/texmf.local/fonts/map/dvips/cm-super/cm-super-t2a.m ap}] systems : end file 2 at line 10 system : cont-err loaded (/usr/local/teTeX/share/texmf.local/tex/context/base/cont-err.tex
User file 'cont-sys.tex' not found, 'cont-sys.rme' has been used instead. <
) ){/usr/local/teTeX/share/texmf.tetex/fonts/enc/dvips/lm/lm-ec.enc} Output written on 2.pdf (1 page, 24123 bytes). Transcript written on 2.log. return code : 0 run time : 2 seconds sorting and checking : running texutil TeXUtil 9.0.1 - ConTeXt / PRAGMA ADE 1992-2006 action : processing commands, lists and registers option : sorting IJ under Y option : converting high ASCII values input file : 2.tui output file : 2.tuo passed commands : 20 remapped keys : 0 register entries : 0 -> 0 entries 0 references synonym entries : 0 -> 0 entries embedded files : 1 total run time : 3 seconds File /usr/local/teTeX/share/texmf.local/fonts/map/dvips/cm-super/cm-super-t2a.ma p exists and can be open and processed. latex example: \documentclass[12pt,oneside]{book} \usepackage[utf8]{inputenc} \usepackage[T2A]{fontenc} \usepackage[unicode]{hyperref} \usepackage{makeidx} \usepackage{xspace} \usepackage{graphicx} \usepackage{verbatim} \usepackage[UKenglish]{babel} \usepackage[margin=3cm]{geometry} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{bm} \parskip0.5\baselineskip \begin{document} тестируем юникод \end{document} produce expected results, so I do not think that cm-super fonts installed incorrectly. I reinstalled cm-super package from ctan by hands but it didn't change anything. Any help would be appreciated. Regards, Alex