).
\enableregime[mac]
\mainlanguage[en]
% use \fr, \de, e.g., for local changes
%%%% Margin Kerning and Font Expansion
\usetypescript[serif,sans,mono,mm][hanging][normal]
\setupalign[hz,hanging]
\setupfootnotes[align={hz,hanging}]
\startfonthandling[greekpure]
\defineprotrudefactor . 0 1
\defineprotrudefactor , 0 1
\defineprotrudefactor ; 0 1
\defineprotrudefactor ? 0 1
\defineprotrudefactor - 0 1
\defineprotrudefactor hyphen 0 1
\defineprotrudefactor endash 0 .5
\defineprotrudefactor emdash 0 .33
\stopfonthandling
%%%% Default Encoding
\setupencoding[default=ec]
% install Latin Modern
% install margin kerning BEFORE the font is loaded: since Latin Modern is
% loaded before font definitions, load it again
\usetypescript[lmodern][\defaultencoding] %<<==
\starttypescript[serif][default][size] %<<==
\definebodyfont[9.5pt,10.5pt][rm][default]
\definebodyfont[9.5pt,10.5pt][mm][default]
\stoptypescript %<<==
\setupbodyfont[lmodern,rm,10.5pt]
%\setupfontsynonym[Serif][handling=normal]
% install Greek Font
\usemodule[ancientgreek][font=GreekDioxipe,scale=1.15,altfont=GreekCanonica,altscale=0.9]
\setupfontsynonym[GreekDioxipe][handling=greekpure]
\setupfontsynonym[GreekCanonica][handling=greekpure]
If I run it as it is, the Greek fonts behave properly but I get arithmetic overflow errors as soon as ConTeXt reaches a footnote:
e.g.
! Arithmetic overflow.
\dododefineprotrudefactor ...width \fi \fi \relax
\rpcode \handledfont #1\di...
\dosetpairhandling ...ng \let \char \normalchar }}
\fi
<inserted text> ...ododefineprotrudefactor ! 0 .2
\dosetpairhandling \dodode...
\next1 ...csname \the \csname \@fha@ #1\endcsname
\fi
\rawprocesscommaitem ...commalevel \endcsname {#1}
\expandafter \rawprocessco...
<argument> punctuation,a
lpha,extended
...
l.34 \footnotetext[first]
{An Italian version of this review is to be publish...
If I comment the lines marked by %<<==, the Greek fonts do not print at the right size and I lose all control of the scaling. (Changing the scale accomlishes nothing.) Still, I do get footnotes and document processes properly otherwise.
Again, any suggestions would be greatly appreciated.
Alan