From: Aditya Mahajan <adityam@umich.edu>
Subject: Re: \bar missing in euler
Date: Tue, 12 Sep 2006 18:34:28 -0400 (EDT) [thread overview]
Message-ID: <Pine.WNT.4.63.0609121823210.712@nqvgln> (raw)
In-Reply-To: <Pine.WNT.4.63.0607211758350.1348@nqvgln>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1729 bytes --]
On Fri, 21 Jul 2006, Aditya Mahajan wrote:
> On Tue, 11 Jul 2006, Hans Hagen wrote:
>
>> Adam Lindsay wrote:
>>> Makes sense. I'll look at the new definitions you just sent.
>>>
>>> On the "user" side, what do you imagine it would look like:
>>> \definetypeface [e] [mm] [math] [euler] [euler] [encoding=ec]
>>>
>>>
>> ^^^ this one (actually it listens to the outer encoding)
>
> I am missing something. I tried the following (with the alpha,
> cont-new.tex contains the new definitions), but get not accent with
> the following code.
>
> \startmathcollection[euler:texnansi]
> \definemathsymbol [breve] [accent] [tf] ["15]
> \stopmathcollection
> \startmathcollection[euler:ec]
> \definemathsymbol [breve] [accent] [tf] ["08]
> \stopmathcollection
>
>
> \definetypeface [e] [mm] [math] [euler] [euler] [encoding=ec]
> \setupbodyfont[e,10pt]
>
> \starttext
> $\breve e$
> \stoptext
I am restarting one of my old threads, so please be patient.
To restate the problem, some accents are missing from euler font. Adam
suggested using a hack along the lines of latex to pull those accents
from the text font, later Hans posted some code that took care of
encoding and stuff. Hans added the code to cont-new.tex with a example
usage in the comments.
I could never get the example to work.
Hans, the code in cont-new.tex is slightly differnt from the code that
you posted on the ML. The code on the ML works, while the code in
cont-new.tex does not.
The attached file compares the output of the code in cont-new.tex with
the code posted on the ML. Can you look into it to see what is going
on. Since euler is the only incomplete math font, the definitions for
all the accents can be added to math-eul.tex.
Aditya
[-- Attachment #2: Type: TEXT/PLAIN, Size: 2283 bytes --]
\definetypeface [e] [mm] [math] [euler] [euler] [encoding=ec]
\setupbodyfont[e,10pt]
\starttext
\startbuffer
\startmathcollection[euler:texnansi]
\definemathsymbol [breve] [accent] [tf] ["15]
\stopmathcollection
\startmathcollection[euler:ec]
\definemathsymbol [breve] [accent] [tf] ["08]
\stopmathcollection
$\breve e$
\stopbuffer
Testing for code in \filename{cont-new.tex}
\start
\getbuffer\typebuffer
\stop
\startbuffer
\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$
\stopbuffer
\page
Testing for code sent by Hans on the mailing list
\start
\getbuffer\typebuffer
\stop
\stoptext
[-- Attachment #3: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
next prev parent reply other threads:[~2006-09-12 22:34 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
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 [this message]
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=Pine.WNT.4.63.0609121823210.712@nqvgln \
--to=adityam@umich.edu \
--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).