ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* How to use noto sans math font?
@ 2023-04-05 10:07 Li Yanrui (李延瑞) via ntg-context
  2023-04-05 10:25 ` Mikael Sundqvist via ntg-context
  0 siblings, 1 reply; 8+ messages in thread
From: Li Yanrui (李延瑞) via ntg-context @ 2023-04-05 10:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Li Yanrui (李延瑞)


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

Hi,

I try to use the Noto Sans Math fnt which can be downloaded from
https://fonts.google.com/noto/specimen/Noto+Sans+Math

But I use it like the following

\definefontfamily[myfonts][rm][latin modern roman]
\definefontfamily[myfonts][mm][noto sans math]
\setupbodyfont[myfonts,rm,12pt]
\starttext
Test Noto Sasn Math Fonts
\startformula
a^2 \quad \sqrt{a}
\stopformula
\stoptext

I get the errors `Math error: parameter 'supshiftup' with id 51 in style 0
is not set'.

Is there some method to solve it?


-- 
Best regards,

Li Yanrui

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

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

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: How to use noto sans math font?
  2023-04-05 10:07 How to use noto sans math font? Li Yanrui (李延瑞) via ntg-context
@ 2023-04-05 10:25 ` Mikael Sundqvist via ntg-context
  2023-04-06  0:55   ` Li Yanrui (李延瑞) via ntg-context
  0 siblings, 1 reply; 8+ messages in thread
From: Mikael Sundqvist via ntg-context @ 2023-04-05 10:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Mikael Sundqvist


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

Hi,

No intend to be complete or so (not by computer either, so could not look
into it), it was just for a test a while back. But it could serve as a
start.

/Mikael

Den ons 5 apr. 2023 12:07Li Yanrui (李延瑞) via ntg-context <ntg-context@ntg.nl>
skrev:

> Hi,
>
> I try to use the Noto Sans Math fnt which can be downloaded from
> https://fonts.google.com/noto/specimen/Noto+Sans+Math
>
> But I use it like the following
>
> \definefontfamily[myfonts][rm][latin modern roman]
> \definefontfamily[myfonts][mm][noto sans math]
> \setupbodyfont[myfonts,rm,12pt]
> \starttext
> Test Noto Sasn Math Fonts
> \startformula
> a^2 \quad \sqrt{a}
> \stopformula
> \stoptext
>
> I get the errors `Math error: parameter 'supshiftup' with id 51 in style 0
> is not set'.
>
> Is there some method to solve it?
>
>
> --
> Best regards,
>
> Li Yanrui
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : https://contextgarden.net
>
> ___________________________________________________________________________________
>

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

[-- Attachment #2: type-imp-noto.mkiv --]
[-- Type: application/octet-stream, Size: 2235 bytes --]


\starttypescriptcollection[notosans]

    % \definefontfeature[default-slanted-xcharter][default][slant=.2]
    % \definefontfeature[none-slanted-xcharter]   [none]   [slant=.2]

    \doifunknownfontfeature {noto-math-bold} {\definefontfeature[noto-math-bold][boldened]}

    \starttypescript [\s!serif] [noto] [\s!name]
        \definefontsynonym [\s!Serif]           [\s!file:NotoSerif-Regular]    [\s!features=\s!default]
        \definefontsynonym [\s!SerifItalic]     [\s!file:NotoSerif-Italic]     [\s!features=\s!default]
        \definefontsynonym [\s!SerifBold]       [\s!file:NotoSerif-Bold]       [\s!features=\s!default]
        \definefontsynonym [\s!SerifBoldItalic] [\s!file:NotoSerif-BoldItalic] [\s!features=\s!default]
    \stoptypescript

    \starttypescript [\s!sans] [noto] [\s!name]
        \setups[\s!font:\s!fallback:\s!sans]
        \definefontsynonym [\s!Sans]          [\s!file:NotoSans-Regular]       [\s!features=\s!default]
        \definefontsynonym [\s!SansItalic]    [\s!file:NotoSans-Italic]        [\s!features=\s!default]
        \definefontsynonym [\s!SansBold]      [\s!file:NotoSans-SemiBold]      [\s!features=\s!default]
        \definefontsynonym [\s!SansBoldItalic][\s!file:NotoSans-SemiBoldItalic][\s!features=\s!default]
    \stoptypescript

    \starttypescript [\s!math] [noto][\s!name]
        \checkedmapfontsize[\typescripttwo][\s!script]      [.70]
        \checkedmapfontsize[\typescripttwo][\s!scriptscript][.55]
    \stoptypescript

    \starttypescript [\s!math] [noto][\s!name]
        \definefontsynonym [\s!MathRoman]    [\s!file:NotoSansMath-Regular.ttf][\s!features={\s!math\mathsizesuffix,noto:mathextra,mathextra}]
        \definefontsynonym [\s!MathRomanBold][\s!file:NotoSansMath-Regular.otf][\s!features={\s!math\mathsizesuffix,noto-math-bold,noto:mathextra,mathextra}]
    \stoptypescript

    \starttypescript [noto]
        \definetypeface [\typescriptone] [\s!rm] [\s!serif] [\typescriptone] [\s!default]
        \definetypeface [\typescriptone] [\s!ss] [\s!sans]  [\typescriptone] [\s!default]
        \definetypeface [\typescriptone] [\s!mm] [\s!math]  [\typescriptone] [\s!default]
        \quittypescriptscanning
    \stoptypescript

\stoptypescriptcollection

[-- Attachment #3: 230320-2.mkxl --]
[-- Type: application/octet-stream, Size: 350 bytes --]

\setupbodyfont[noto,ss]

\starttext

\samplefile{knuth}

% \showmakeup[mathglue]
% \showglyphs

\startformula
x = \frac{-b \pm \sqrt{b^2-4ac}}{2a} \breakhere

\int_0^n e^x \dd x \breakhere

\int_a^b f'(x) \dd x = f(b) - f(a) \breakhere

x+\mrightarrow{1+2}{a+b+c} + \wideoverrightharpoon{x+y+z+u+v+w} + \widetilde{x+y+z+u+v+w}
\stopformula

\stoptext

[-- Attachment #4: Type: text/plain, Size: 496 bytes --]

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: How to use noto sans math font?
  2023-04-05 10:25 ` Mikael Sundqvist via ntg-context
@ 2023-04-06  0:55   ` Li Yanrui (李延瑞) via ntg-context
  2023-04-06  4:59     ` Mikael Sundqvist via ntg-context
  0 siblings, 1 reply; 8+ messages in thread
From: Li Yanrui (李延瑞) via ntg-context @ 2023-04-06  0:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Li Yanrui (李延瑞)


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

Mikael Sundqvist via ntg-context <ntg-context@ntg.nl> 于2023年4月5日周三 18:26写道:

> Hi,
>
> No intend to be complete or so (not by computer either, so could not look
> into it), it was just for a test a while back. But it could serve as a
> start.
>
> /Mikael
>

Hi Mikael,

Thanks for your reply. I used the typescript you provided but still get the
error as below

  Math error: parameter 'supshiftup' with id 51 in style 2 is not set


-- 
Best regards,

Li Yanrui

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

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

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: How to use noto sans math font?
  2023-04-06  0:55   ` Li Yanrui (李延瑞) via ntg-context
@ 2023-04-06  4:59     ` Mikael Sundqvist via ntg-context
  2023-04-06  5:45       ` Li Yanrui (李延瑞) via ntg-context
  2023-04-06  7:07       ` Hans Hagen via ntg-context
  0 siblings, 2 replies; 8+ messages in thread
From: Mikael Sundqvist via ntg-context @ 2023-04-06  4:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Mikael Sundqvist

Hi,

On Thu, Apr 6, 2023 at 2:56 AM Li Yanrui (李延瑞) via ntg-context
<ntg-context@ntg.nl> wrote:
>
>
>
> Mikael Sundqvist via ntg-context <ntg-context@ntg.nl> 于2023年4月5日周三 18:26写道:
>>
>> Hi,
>>
>> No intend to be complete or so (not by computer either, so could not look into it), it was just for a test a while back. But it could serve as a start.
>>
>> /Mikael
>
>
> Hi Mikael,
>
> Thanks for your reply. I used the typescript you provided but still get the error as below
>
>   Math error: parameter 'supshiftup' with id 51 in style 2 is not set

OK. I see the link to google fonts above. I am not sure they have the
latest version. There were lots of fixes in this font recently (in
particular I think a math table was added, so that the font really is
identified as a math font, but I might be wrong about that). The one I
used was downloaded from

https://github.com/notofonts/math/releases/tag/NotoSansMath-v2.539

and that still seems to be the latest. I now compiled my file again,
and still no error here.

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: How to use noto sans math font?
  2023-04-06  4:59     ` Mikael Sundqvist via ntg-context
@ 2023-04-06  5:45       ` Li Yanrui (李延瑞) via ntg-context
  2023-04-06  7:07       ` Hans Hagen via ntg-context
  1 sibling, 0 replies; 8+ messages in thread
From: Li Yanrui (李延瑞) via ntg-context @ 2023-04-06  5:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Li Yanrui (李延瑞)


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

Mikael Sundqvist via ntg-context <ntg-context@ntg.nl> 于2023年4月6日周四 13:00写道:

> Hi,
>
> On Thu, Apr 6, 2023 at 2:56 AM Li Yanrui (李延瑞) via ntg-context
> <ntg-context@ntg.nl> wrote:
> >
> >
> >
> > Mikael Sundqvist via ntg-context <ntg-context@ntg.nl> 于2023年4月5日周三
> 18:26写道:
> >>
> >> Hi,
> >>
> >> No intend to be complete or so (not by computer either, so could not
> look into it), it was just for a test a while back. But it could serve as a
> start.
> >>
> >> /Mikael
> >
> >
> > Hi Mikael,
> >
> > Thanks for your reply. I used the typescript you provided but still get
> the error as below
> >
> >   Math error: parameter 'supshiftup' with id 51 in style 2 is not set
>
> OK. I see the link to google fonts above. I am not sure they have the
> latest version. There were lots of fixes in this font recently (in
> particular I think a math table was added, so that the font really is
> identified as a math font, but I might be wrong about that). The one I
> used was downloaded from
>


That font is indeed not the latest. I use the font you provided and no
problem now. Thank you very much!

-- 
Best regards,

Li Yanrui

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

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

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: How to use noto sans math font?
  2023-04-06  4:59     ` Mikael Sundqvist via ntg-context
  2023-04-06  5:45       ` Li Yanrui (李延瑞) via ntg-context
@ 2023-04-06  7:07       ` Hans Hagen via ntg-context
  2023-04-06  7:44         ` Mikael Sundqvist via ntg-context
  1 sibling, 1 reply; 8+ messages in thread
From: Hans Hagen via ntg-context @ 2023-04-06  7:07 UTC (permalink / raw)
  To: Mikael Sundqvist via ntg-context; +Cc: Hans Hagen

On 4/6/2023 6:59 AM, Mikael Sundqvist via ntg-context wrote:
> Hi,
> 
> On Thu, Apr 6, 2023 at 2:56 AM Li Yanrui (李延瑞) via ntg-context
> <ntg-context@ntg.nl> wrote:
>>
>>
>>
>> Mikael Sundqvist via ntg-context <ntg-context@ntg.nl> 于2023年4月5日周三 18:26写道:
>>>
>>> Hi,
>>>
>>> No intend to be complete or so (not by computer either, so could not look into it), it was just for a test a while back. But it could serve as a start.
>>>
>>> /Mikael
>>
>>
>> Hi Mikael,
>>
>> Thanks for your reply. I used the typescript you provided but still get the error as below
>>
>>    Math error: parameter 'supshiftup' with id 51 in style 2 is not set
> 
> OK. I see the link to google fonts above. I am not sure they have the
> latest version. There were lots of fixes in this font recently (in
> particular I think a math table was added, so that the font really is
> identified as a math font, but I might be wrong about that). The one I
> used was downloaded from
> 
> https://github.com/notofonts/math/releases/tag/NotoSansMath-v2.539
> 
> and that still seems to be the latest. I now compiled my file again,
> and still no error here.
Wondering. I didn't check but why start with a sans math and not a serif 
... are the sans alphabets replaced by a serif?

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: How to use noto sans math font?
  2023-04-06  7:07       ` Hans Hagen via ntg-context
@ 2023-04-06  7:44         ` Mikael Sundqvist via ntg-context
  2023-04-06 12:29           ` Mikael Sundqvist via ntg-context
  0 siblings, 1 reply; 8+ messages in thread
From: Mikael Sundqvist via ntg-context @ 2023-04-06  7:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Mikael Sundqvist


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

I will have to check, but a bit later. Meeting with my student soon.

/Mikael (who did not run the output from ChatGPT. Looked to me as if it was
the wrong way to give flags to shutdown anyways...)

Den tors 6 apr. 2023 09:07Hans Hagen via ntg-context <ntg-context@ntg.nl>
skrev:

> On 4/6/2023 6:59 AM, Mikael Sundqvist via ntg-context wrote:
> > Hi,
> >
> > On Thu, Apr 6, 2023 at 2:56 AM Li Yanrui (李延瑞) via ntg-context
> > <ntg-context@ntg.nl> wrote:
> >>
> >>
> >>
> >> Mikael Sundqvist via ntg-context <ntg-context@ntg.nl> 于2023年4月5日周三
> 18:26写道:
> >>>
> >>> Hi,
> >>>
> >>> No intend to be complete or so (not by computer either, so could not
> look into it), it was just for a test a while back. But it could serve as a
> start.
> >>>
> >>> /Mikael
> >>
> >>
> >> Hi Mikael,
> >>
> >> Thanks for your reply. I used the typescript you provided but still get
> the error as below
> >>
> >>    Math error: parameter 'supshiftup' with id 51 in style 2 is not set
> >
> > OK. I see the link to google fonts above. I am not sure they have the
> > latest version. There were lots of fixes in this font recently (in
> > particular I think a math table was added, so that the font really is
> > identified as a math font, but I might be wrong about that). The one I
> > used was downloaded from
> >
> > https://github.com/notofonts/math/releases/tag/NotoSansMath-v2.539
> >
> > and that still seems to be the latest. I now compiled my file again,
> > and still no error here.
> Wondering. I didn't check but why start with a sans math and not a serif
> ... are the sans alphabets replaced by a serif?
>
> Hans
>
>
> -----------------------------------------------------------------
>                                            Hans Hagen | PRAGMA ADE
>                Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>         tel: 038 477 53 69 | www.pragma-ade.nl | 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 /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : https://contextgarden.net
>
> ___________________________________________________________________________________
>

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

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

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: How to use noto sans math font?
  2023-04-06  7:44         ` Mikael Sundqvist via ntg-context
@ 2023-04-06 12:29           ` Mikael Sundqvist via ntg-context
  0 siblings, 0 replies; 8+ messages in thread
From: Mikael Sundqvist via ntg-context @ 2023-04-06 12:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Mikael Sundqvist

Hi all,

On Thu, Apr 6, 2023 at 9:44 AM Mikael Sundqvist <mickep@gmail.com> wrote:
>
> I will have to check, but a bit later. Meeting with my student soon.
>
> /Mikael (who did not run the output from ChatGPT. Looked to me as if it was the wrong way to give flags to shutdown anyways...)

Sorry for that, I thought I was answering Hans, and tried to answer
two mails in one.

I don't know how the font is supposed to be used. I looked into it,
and found that these alphabets (I only give the first entry) are
indeed sans serif.

0041: an uppercase sans serif A
0061 a lowercase sans serif a
0391 an uppercase sans serif Alpha
03B1 a lowercase sans serif alpha

For the rest of the alphabets, it seems to me (but I might have missed
something) that the font follows the usual pattern, with for example
the lowercase italic alphabet (starting with 1D44E for lowercase
italic a), with serifs.

It has some arabic glyphs. I have not compared to see if they are the
same as the ones from Xits.

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2023-04-06 12:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-05 10:07 How to use noto sans math font? Li Yanrui (李延瑞) via ntg-context
2023-04-05 10:25 ` Mikael Sundqvist via ntg-context
2023-04-06  0:55   ` Li Yanrui (李延瑞) via ntg-context
2023-04-06  4:59     ` Mikael Sundqvist via ntg-context
2023-04-06  5:45       ` Li Yanrui (李延瑞) via ntg-context
2023-04-06  7:07       ` Hans Hagen via ntg-context
2023-04-06  7:44         ` Mikael Sundqvist via ntg-context
2023-04-06 12:29           ` Mikael Sundqvist via ntg-context

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