ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Anyone ?? (Math symbols missing)
@ 2010-05-23 20:40 gummybears
  2010-05-24 10:59 ` Hans Hagen
  2010-05-24 16:32 ` Aditya Mahajan
  0 siblings, 2 replies; 4+ messages in thread
From: gummybears @ 2010-05-23 20:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 591 bytes --]

Anyone ?

The glyphs are present in the Asana Math font.

---------- Forwarded message ----------
From: gummybears <oracleopp@gmail.com>
Date: Thu, May 13, 2010 at 5:03 PM
Subject: Math symbols missing
To: mailing list for ConTeXt users <ntg-context@ntg.nl>


Hi

The following math symbols are missing,

0x222B normal integral \int
0x222C double integral \iint
0x222D triple integral \iiint
0x222E contour integral \oint
0x222F surface integral \oiint
0x2230 volume integral \oiiint

I also need the space-time integral \iiiint (4 i's)

Kind regards

PS Using latest stable context (MK-IV)

[-- Attachment #1.2: Type: text/html, Size: 885 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Anyone ?? (Math symbols missing)
  2010-05-23 20:40 Anyone ?? (Math symbols missing) gummybears
@ 2010-05-24 10:59 ` Hans Hagen
  2010-05-24 16:32 ` Aditya Mahajan
  1 sibling, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2010-05-24 10:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 23-5-2010 10:40, gummybears wrote:
> Anyone ?

waiting for Aditya ...


> The glyphs are present in the Asana Math font.
>
> ---------- Forwarded message ----------
> From: gummybears<oracleopp@gmail.com>
> Date: Thu, May 13, 2010 at 5:03 PM
> Subject: Math symbols missing
> To: mailing list for ConTeXt users<ntg-context@ntg.nl>
>
>
> Hi
>
> The following math symbols are missing,
>
> 0x222B normal integral \int
> 0x222C double integral \iint
> 0x222D triple integral \iiint
> 0x222E contour integral \oint
> 0x222F surface integral \oiint
> 0x2230 volume integral \oiiint
>
> I also need the space-time integral \iiiint (4 i's)
>
> Kind regards
>
> PS Using latest stable context (MK-IV)
>
>
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Anyone ?? (Math symbols missing)
  2010-05-23 20:40 Anyone ?? (Math symbols missing) gummybears
  2010-05-24 10:59 ` Hans Hagen
@ 2010-05-24 16:32 ` Aditya Mahajan
  2010-05-24 20:33   ` Hans Hagen
  1 sibling, 1 reply; 4+ messages in thread
From: Aditya Mahajan @ 2010-05-24 16:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sun, 23 May 2010, gummybears wrote:

> The following math symbols are missing,
>
> 0x222B normal integral \int
> 0x222C double integral \iint
> 0x222D triple integral \iiint
> 0x222E contour integral \oint
> 0x222F surface integral \oiint
> 0x2230 volume integral \oiiint

I get these symbols (Wrong spacing between ints, see below):

\usetypescript[asana]
\setupbodyfont[asana]

\starttext
\startlines
0x222B normal integral  $\int$
0x222C double integral  $\iint$
0x222D triple integral  $\iiint$
0x222E contour integral $\oint$
0x222F surface integral $\oiint$
0x2230 volume integral  $\oiiint$
\stoplines
\stoptext

Does it give the glyphs for you? If not, then something really is broken 
in your setup. Can you send me your log and output file offlist.

The spacing around \int is different in MkII and MkIV. One can get the 
right spacing by playing around with \dointkern

\def\dointkern
   {\mkern-6mu\mathchoice{\mkern-3mu}{}{}{}}

For asana, change -6mu to -16mu.

> I also need the space-time integral \iiiint (4 i's)

\definemathcommand[iiiint] {\repeatintegral{4}}

Is there a unicode slot for this?

Hans, we need a proper fallback mechanism for math glyphs. LM does not 
contain iint, etc, so we need to fake them, Asana and cambria do have 
them, so we should use the glyph from the font. Currently, the glyph is 
always faked.



Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Anyone ?? (Math symbols missing)
  2010-05-24 16:32 ` Aditya Mahajan
@ 2010-05-24 20:33   ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2010-05-24 20:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 24-5-2010 6:32, Aditya Mahajan wrote:
> \def\dointkern
>    {\mkern-6mu\mathchoice{\mkern-3mu}{}{}{}}
>
> For asana, change -6mu to -16mu.

\def\fakerepeatintegral#1%
   {\scratchtoks\emptytoks
    \dorecurse{#1}{\appendtoks \integralrepeatsymbol \dointkern \to 
\scratchtoks}%
    \appendtoks \intop \dointlimits \dodointlimits \to \scratchtoks
    \edef\dodorepeatintegral{\the\scratchtoks}}

\def\repeatintegral#1#2#3%
   {\let\dointlimits\donothing
    \let\dodointlimits\intlimits
    \iffontchar\textfont\zerocount#1\relax
     %\edef\dodorepeatintegral{\utfchar{#1}}%
      \let\dodorepeatintegral#2%
    \else
      \fakerepeatintegral{#3}%
    \fi
    \futurelet\next\dorepeatintegral}

% This is a temporary solution, as we will make a virtual glyph in lm.

\definemathcommand [iint]   {\repeatintegral{"222B}\normaliint  \plusone  }
\definemathcommand [iiint]  {\repeatintegral{"222C}\normaliiint \plustwo  }
\definemathcommand [iiiint] {\repeatintegral{"222D}\normaliiiint\plusthree}


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-05-24 20:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-23 20:40 Anyone ?? (Math symbols missing) gummybears
2010-05-24 10:59 ` Hans Hagen
2010-05-24 16:32 ` Aditya Mahajan
2010-05-24 20:33   ` Hans Hagen

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