
\setupbodyfont[ber,pos]
\useencoding[ec]

%
% Hans, de comments zijn spul dat ik moest aanpassen?
%
\def\setcoding[#1]
  {\doifsomething{#1}
     {%\let\dohandleaccent\donthandleaccent
      %\let\dohandlecommand\donthandlecommand
      \def\characterencoding{@#1@}%
      \enablelanguagespecifics[\currentlanguage]}}

\def\dododohandleaccent#1#2%
  {\bgroup
   \ifundefined{\characterencoding#1\string#2}%
%     \def\\{\getvalue{\nocharacterencoding#1}#2\egroup}%
     \def\\{\getvalue{\characterencoding#1}#2\egroup}%
   \else
     \def\\{\getvalue{\characterencoding#1\string#2}\egroup}%
   \fi
   \\}


% Hans, die 'indien-braces-dan-plain' quasi-feature is nogal onzinnig.

\def\sa#1{%
\string#1: \processcommalist[a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,\i]#1
\par
}

\def\ca#1{%
	\def\test##1{#1##1}%
\string #1: \processcommalist[a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,\i]\test
\par
}

\starttext

\setcoding[ec]
\sa\"

\bigskip

\ca\'
\ca\`
\ca\^
\ca\~
\ca\"
\ca\H
\ca\r
\ca\v
\ca\u
\ca\=
\ca\b
\ca\d
\ca\.
\ca\c
\ca\k

{\tracingall

b: \b b \quad k: \k b \quad c: \c b \quad t: \t ae =: \= b cc: \cc
}

\stoptext

