Aditya Mahajan wrote:
I have no knowledge of how Context's font stuff works. The first definition looks better to me, as one would not need to worry about the encoding while defining symbols (one needs to worry about the encoding while defining \textbreve etc, anyway). Though the second does have the advantage that it works right away, so there is no need to change the definition of \definemathsymbol.
what a mess \unprotect \def\dohandlemathtoken#1% {\csname \ifmmode \ifcsname\@mt@\outerencoding#1\endcsname \@mt@\outerencoding \else\ifcsname\@mt@\mathcollection#1\endcsname \@mt@\mathcollection \else\ifcsname\@mt@\nomathcollection#1\endcsname \@mt@\nomathcollection \else\ifcsname\characterencoding#1\endcsname \characterencoding \else \nocharacterencoding \fi\fi\fi\fi \else \ifcsname\characterencoding#1\endcsname \characterencoding \else\ifcsname\nocharacterencoding#1\endcsname \nocharacterencoding \else\ifcsname\@mt@\outerencoding#1\endcsname \@mt@\outerencoding \else\ifcsname\@mt@\mathcollection#1\endcsname \strippedcsname\mathematics \expandafter\endcsname\csname\@mt@\mathcollection \else\ifcsname\@mt@\nomathcollection#1\endcsname \strippedcsname\mathematics \expandafter\endcsname\csname\@mt@\nomathcollection \else \nocharacterencoding \fi\fi\fi\fi\fi \fi #1\endcsname} \let\dohandlecommand\dohandlemathtoken \def\checkoutermathencoding {\ifx\outerencoding\empty \ifx\outerencoding\s!default\else \edef\outerencoding{\currentencoding}% \fi \fi} \startmathcollection[texnansi] \definemathsymbol [breve] [accent] [tf] ["15] \stopmathcollection \startmathcollection[ec] \definemathsymbol [breve] [accent] [tf] ["08] \stopmathcollection \prependtoks \checkoutermathencoding \to \everymathematics \let\outerencoding\empty $\breve e$ \end so ... up to you to define the missing pieces (maybe we should use \startmathencoding for this stuff) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------