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 [EMAIL PROTECTED]@\outerencoding#1\endcsname [EMAIL PROTECTED]@\outerencoding [EMAIL PROTECTED]@\mathcollection#1\endcsname [EMAIL PROTECTED]@\mathcollection [EMAIL PROTECTED]@\nomathcollection#1\endcsname [EMAIL PROTECTED]@\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 [EMAIL PROTECTED]@\outerencoding#1\endcsname [EMAIL PROTECTED]@\outerencoding [EMAIL PROTECTED]@\mathcollection#1\endcsname \strippedcsname\mathematics [EMAIL PROTECTED]@\mathcollection [EMAIL PROTECTED]@\nomathcollection#1\endcsname \strippedcsname\mathematics [EMAIL PROTECTED]@\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 ----------------------------------------------------------------- _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context