Hi,
I have problem specifying font encoding: it works only until font switching
>command. I write (the example from Willi Egger):
>
> \setupencoding[default=ec]
> \setupbodyfont[pos,ber]
> \enableencoding[ec]
> \enableregime[windows]
>
> \starttext
>
> \Adiaeresis �\"Argerlicher Fall.
.....
>And after any font switching command, even \tf, accents go wrong -- id est
>those
>defined via \defineaccent (those that are input verbatim like � are OK). If I
>put \enableencoding[ec] after font switching command, accents are fixed, but
>surely I'm not supposed to put \enableencoding[ec] after each font switch.
>
>What have I missed? How to set up encoding globally? (\setupbodyfont does not
>seem to accept encoding as argument.)
You only have to \enable encoding if there is a real reason for it.
Normally the encoding is switched with the font. So, it looks like a
misconfiguration.
You can add the following code to cont-new.tex (assuming you use pdfetex)
\unprotect
\def\tracedfontencoding#1%
{\ifcsname\??ff#1\s!encoding\endcsname
\space[\csname\??ff#1\s!encoding\endcsname]%
\fi}
\def\tracedfontname#1%
{\ifcsname\??ff\fontclass#1\endcsname
#1\tracedfontencoding{\fontclass#1}\space->\space
\@EA\tracedfontname\csname\??ff\fontclass#1\endcsname
\else\ifcsname\??ff#1\endcsname
#1\tracedfontencoding{#1}\space->\space
\@EA\tracedfontname\csname\??ff#1\endcsname
\else
#1%
\fi\fi}
\protect
You can now say something like
\message{\tracedfontname{Serif}} and see what font name is actually used
and where in the chain the encoding is set.
The last name in the row should be defined in a map file and mapped onto a
real filename. Either this map file is loaded runtime, or the entry should
be in your local pdftex map file.
Now, if there is no [ec] in this chain, you're not using ec, which means
some error in the setup.
Once you've sorted out what you want / need, we can add some entries to
typescripts useful for your language
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------