ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: \bar missing in euler
Date: Tue, 11 Jul 2006 10:32:13 +0200	[thread overview]
Message-ID: <44B3620D.4070609@wxs.nl> (raw)
In-Reply-To: <Pine.WNT.4.63.0607061146160.2660@nqvgln>

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
-----------------------------------------------------------------

  reply	other threads:[~2006-07-11  8:32 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-06 13:54 Aditya Mahajan
2006-07-06 15:35 ` Adam Lindsay
2006-07-06 15:53   ` Aditya Mahajan
2006-07-11  8:32     ` Hans Hagen [this message]
2006-07-11  8:34 ` Hans Hagen
2006-07-11 12:51   ` Adam Lindsay
2006-07-11 13:03     ` Hans Hagen
2006-07-21 21:59       ` Aditya Mahajan
2006-09-12 22:34         ` Aditya Mahajan
2006-09-13  0:00           ` Hans Hagen
2006-09-13  1:32             ` Aditya Mahajan
2006-09-14 19:59               ` Hans Hagen
2006-09-15  6:40                 ` Taco Hoekwater

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44B3620D.4070609@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).