Re: [NTG-context] Access violation

2020-09-10 Thread Christoph Reller
On Thu, Sep 10, 2020 at 8:43 PM Hans Hagen  wrote:

> On 9/9/2020 2:44 PM, Christoph Reller wrote:
> > Does this help or do you really need a MWE?
> A wme would help indeed (no need to be real minimal, as you need enough
> to trigger bumping node mem so just make somethign that crashes).
>
I will try my best to produce something.
Cheers, Christoph
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Access violation

2020-09-10 Thread Hans Hagen

On 9/9/2020 2:44 PM, Christoph Reller wrote:

Dear developers,

I am using ConTeXt LMTX version 2020.09.05 21:18 on Windows 46bit.

I have a large project for which I can reproduce an access violation:
     mtx-context     | fatal error: return code: -1073741819
Unfortunately, the error vanishes as soon as I alter any detail in the 
project's source code.


The access violation happens always at the same location. I have 
produced a log file for which I have enabled \tracingall just before the 
error happens. I suspect that the error is triggered due to tagging 
information written to the PDF (\setuptagging[state=start]), because 
disabling tagging prevents the error. The log file (as a ZIP archive) is 
here 
. 
Does this help or do you really need a MWE?
A wme would help indeed (no need to be real minimal, as you need enough 
to trigger bumping node mem so just make somethign that crashes).


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 / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] \definefontfamily not finding fonts

2020-09-10 Thread Hans Hagen

On 9/10/2020 6:20 PM, Aditya Mahajan wrote:

On Thu, 10 Sep 2020, Wolfgang Schuster wrote:


Any idea on what is going on and how to debug.

I can't reproduce your Libertinus problem but the sans serif and monospaced
fonts just use the wrong names.

In by defense, it used to work for the last 5 years :-)


Are you mixing \definetypeface and \definefontfamily?


This is an old style and I understand that the current syntax is wrong. But it 
did work previously. But the correct syntax does not find the fonts either.

Anyways, for now, I switched to typeface based interface

\starttypescript[mainface]
   \definetypeface[mainface][rm][serif][libertine][default]
   \definetypeface[mainface][ss][sans] [heros][default]
   \definetypeface[mainface][tt][mono] [dejavu]   [default] [rscale=0.85]
   \definetypeface[mainface][mm][math] [libertine][default]
\stoptypescript

and it works correctly. So, it appears to be an issue with font name to 
filename mapping.

I'll try a clean install on a docker image and check it that works ... or just 
wait for the newer version, which often fixes such things :-)
there have been no fundamental changes, but the names of these liber* 
fonts change occasionally


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 / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] \definefontfamily not finding fonts

2020-09-10 Thread Aditya Mahajan
On Thu, 10 Sep 2020, Wolfgang Schuster wrote:

> >>> Any idea on what is going on and how to debug.
> >> I can't reproduce your Libertinus problem but the sans serif and monospaced
> >> fonts just use the wrong names.
> > In by defense, it used to work for the last 5 years :-)
> 
> Are you mixing \definetypeface and \definefontfamily?

This is an old style and I understand that the current syntax is wrong. But it 
did work previously. But the correct syntax does not find the fonts either.

Anyways, for now, I switched to typeface based interface

\starttypescript[mainface]
  \definetypeface[mainface][rm][serif][libertine][default] 
  \definetypeface[mainface][ss][sans] [heros][default]  
  \definetypeface[mainface][tt][mono] [dejavu]   [default] [rscale=0.85]
  \definetypeface[mainface][mm][math] [libertine][default] 
\stoptypescript

and it works correctly. So, it appears to be an issue with font name to 
filename mapping.

I'll try a clean install on a docker image and check it that works ... or just 
wait for the newer version, which often fixes such things :-)

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] \definefontfamily not finding fonts

2020-09-10 Thread Wolfgang Schuster

Aditya Mahajan schrieb am 10.09.2020 um 17:53:

On Thu, 10 Sep 2020, Wolfgang Schuster wrote:


Aditya Mahajan schrieb am 10.09.2020 um 05:16:

Did something change with regard to \definefontfamily recently.

I have an old document where I use:

\starttypescript[mainface]
\definefontfamily[mainface][rm][Libertinus Serif][features=default]
\definefontfamily[mainface][ss] [heros]  [features=default]
\definefontfamily[mainface][tt] [dejavu] [features=none, rscale=0.85]
\definefontfamily[mainface][mm] [LibertinusMath]
\stoptypescript

\setupbodyfont[mainface,12pt]

On the recent LMTX (2020.09.05) I get

selectfont  > the requested font 'Libertinus Serif' has no files for the
'tf' alternative, Latin Modern is used instead.
selectfont  > the requested font 'heros' has no files for the 'tf'
alternative, Latin Modern is used instead.
selectfont  > the requested font 'dejavu' has no files for the 'tf'
alternative, Latin Modern is used instead.
selectfont  > the requested font 'LibertinusMath' has no files for the
'tf' alternative, Latin Modern is used instead.


I can find the fonts using mtxrun --script fonts. For example:

$mtxrun --script fonts --list --pattern="LibertinusSerif" --all
identifier   familynamefontname
filename  subfont   instances

libertinusserif  libertinusserif   libertinusserif
libertinusserif-regular.otf
libertinusserifdisplaynormal libertinusserifdisplay
libertinusserifdisplaylibertinusserifdisplay-regular.otf
libertinusserifdisplayregularlibertinusserifdisplay
libertinusserifdisplaylibertinusserifdisplay-regular.otf
libertinusserifinitialsnormallibertinusserifinitials
libertinusserifinitials   libertinusserifinitials-regular.otf
libertinusserifinitialsregular   libertinusserifinitials
libertinusserifinitials   libertinusserifinitials-regular.otf
libertinusserifnormallibertinusserif
libertinusserifitalic libertinusserif-italic.otf
libertinusserifregular   libertinusserif   libertinusserif
libertinusserif-regular.otf

and similar for the other fonts.

Any idea on what is going on and how to debug.

I can't reproduce your Libertinus problem but the sans serif and monospaced
fonts just use the wrong names.

In by defense, it used to work for the last 5 years :-)


Are you mixing \definetypeface and \definefontfamily?

Wolfgang

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] \definefontfamily not finding fonts

2020-09-10 Thread Aditya Mahajan
On Thu, 10 Sep 2020, Wolfgang Schuster wrote:

> Aditya Mahajan schrieb am 10.09.2020 um 05:16:
> > Did something change with regard to \definefontfamily recently.
> > 
> > I have an old document where I use:
> > 
> > \starttypescript[mainface]
> >\definefontfamily[mainface][rm][Libertinus Serif][features=default]
> >\definefontfamily[mainface][ss] [heros]  [features=default]
> >\definefontfamily[mainface][tt] [dejavu] [features=none, rscale=0.85]
> >\definefontfamily[mainface][mm] [LibertinusMath]
> > \stoptypescript
> > 
> > \setupbodyfont[mainface,12pt]
> > 
> > On the recent LMTX (2020.09.05) I get
> > 
> > selectfont  > the requested font 'Libertinus Serif' has no files for the
> > 'tf' alternative, Latin Modern is used instead.
> > selectfont  > the requested font 'heros' has no files for the 'tf'
> > alternative, Latin Modern is used instead.
> > selectfont  > the requested font 'dejavu' has no files for the 'tf'
> > alternative, Latin Modern is used instead.
> > selectfont  > the requested font 'LibertinusMath' has no files for the
> > 'tf' alternative, Latin Modern is used instead.
> > 
> > 
> > I can find the fonts using mtxrun --script fonts. For example:
> > 
> > $mtxrun --script fonts --list --pattern="LibertinusSerif" --all
> > identifier   familynamefontname
> > filename  subfont   instances
> > 
> > libertinusserif  libertinusserif   libertinusserif
> > libertinusserif-regular.otf
> > libertinusserifdisplaynormal libertinusserifdisplay
> > libertinusserifdisplaylibertinusserifdisplay-regular.otf
> > libertinusserifdisplayregularlibertinusserifdisplay
> > libertinusserifdisplaylibertinusserifdisplay-regular.otf
> > libertinusserifinitialsnormallibertinusserifinitials
> > libertinusserifinitials   libertinusserifinitials-regular.otf
> > libertinusserifinitialsregular   libertinusserifinitials
> > libertinusserifinitials   libertinusserifinitials-regular.otf
> > libertinusserifnormallibertinusserif
> > libertinusserifitalic libertinusserif-italic.otf
> > libertinusserifregular   libertinusserif   libertinusserif
> > libertinusserif-regular.otf
> > 
> > and similar for the other fonts.
> > 
> > Any idea on what is going on and how to debug.
> 
> I can't reproduce your Libertinus problem but the sans serif and monospaced
> fonts just use the wrong names.

In by defense, it used to work for the last 5 years :-)

I'll try to dig deeper on why the fonts are not being found.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] problem embedding TABLE macros within wrapper macros "to reduce repetitive complexity")

2020-09-10 Thread Wolfgang Schuster

Rudd, Kevin schrieb am 09.09.2020 um 17:32:

[Workable solution found]

After more exploration, the following seems to solve the problem of 
creating a simple 2x2 quad chart; thanks for the explanation that the 
\bTD requires a matching \eTD in the immediate (not future expanded) 
evaluation context. I prefer the \start* and \stop* model but for the 
moment this solution works for my current purpose. The good part is that 
it does abstract out the interface so that I can change it in the future 
without needing to change the slide text. I may investigate a better 
(parametrizable/reconfigurable) solution later if I end up needing a 
more complex paned-layout environment that doesn't need direct access to 
the TABLE (or some other more relevant) interface.


MWE demonstrator; there's other cruft in the actual definitions for my 
purposes.


\starttext
     \define\startPaneSlide{\bTABLE}
     \define\stopPaneSlide{\eTABLE}
     \long\def\PaneRow#1{\bTR #1 \eTR}
     \long\def\Pane#1{\bTD #1 \eTD}

     \startPaneSlide
         \PaneRow{\Pane{aaa bbb ccc ddd}\Pane{eee fff ggg hhh}}
         \PaneRow{\Pane{iii jjj kkk lll}\Pane{mmm nnn ooo ppp}}
     \stopPaneSlide
\stoptext


For very short texts like in your example you can use the short form of 
natural tables.


\starttext

\startTABLE
\NC aaa bbb ccc ddd \NC eee fff ggg hhh \NC\NR
\NC iii jjj kkk lll \NC mmm nnn ooo ppp \NC\NR
\stopTABLE

\stoptext

Wolfgang
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] How do I specify a fallback to Symbola for the playing card range?

2020-09-10 Thread Wolfgang Schuster

T. Kurt Bond schrieb am 09.09.2020 um 21:40:
I want to use the Unicode Character PLAYING CARD ACE OF SPADES in a 
ConTeXt document.  Because of the way the source document is created it 
has to be as the actual unicode character itself, rather than a 
reference to a specific character in a specific font.


Here's what I've tried, but it doesn't work:

\definefontfallback[mainface][rm][Symbola][preset=range:playingcards,force=yes]


Try

\definefontfallback[mainface][rm][Symbola][range=playingcards,force=yes]

The "range:..." presets are just a comma separated list of name which 
are passed to the range key.


Wolfgang
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] https

2020-09-10 Thread Taco Hoekwater
Hi,

The certificate for *.contextgarden.net expired this morning. I installed a new 
certificate just now, but it is possible that I missed one of the uses of the 
old certificate.

If you find that you get an error about ‘Connection is not private’ still, even 
after a hard reload, please send me message as I likely forgot to update some 
file.

Best wishes,
Taco
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] \definefontfamily not finding fonts

2020-09-10 Thread Wolfgang Schuster

Aditya Mahajan schrieb am 10.09.2020 um 05:16:

Did something change with regard to \definefontfamily recently.

I have an old document where I use:

\starttypescript[mainface]
   \definefontfamily[mainface][rm][Libertinus Serif][features=default]
   \definefontfamily[mainface][ss] [heros]  [features=default]
   \definefontfamily[mainface][tt] [dejavu] [features=none, rscale=0.85]
   \definefontfamily[mainface][mm] [LibertinusMath]
\stoptypescript

\setupbodyfont[mainface,12pt]

On the recent LMTX (2020.09.05) I get

selectfont  > the requested font 'Libertinus Serif' has no files for the 
'tf' alternative, Latin Modern is used instead.
selectfont  > the requested font 'heros' has no files for the 'tf' 
alternative, Latin Modern is used instead.
selectfont  > the requested font 'dejavu' has no files for the 'tf' 
alternative, Latin Modern is used instead.
selectfont  > the requested font 'LibertinusMath' has no files for the 'tf' 
alternative, Latin Modern is used instead.


I can find the fonts using mtxrun --script fonts. For example:

$mtxrun --script fonts --list --pattern="LibertinusSerif" --all
identifier   familynamefontname 
 filename  subfont   instances

libertinusserif  libertinusserif   libertinusserif  
 libertinusserif-regular.otf
libertinusserifdisplaynormal libertinusserifdisplay
libertinusserifdisplaylibertinusserifdisplay-regular.otf
libertinusserifdisplayregularlibertinusserifdisplay
libertinusserifdisplaylibertinusserifdisplay-regular.otf
libertinusserifinitialsnormallibertinusserifinitials   
libertinusserifinitials   libertinusserifinitials-regular.otf
libertinusserifinitialsregular   libertinusserifinitials   
libertinusserifinitials   libertinusserifinitials-regular.otf
libertinusserifnormallibertinusserif   
libertinusserifitalic libertinusserif-italic.otf
libertinusserifregular   libertinusserif   libertinusserif  
 libertinusserif-regular.otf

and similar for the other fonts.

Any idea on what is going on and how to debug.


I can't reproduce your Libertinus problem but the sans serif and 
monospaced fonts just use the wrong names.


\definefontfamily [mainface] [rm] [Libertinus Serif]
\definefontfamily [mainface] [ss] [TeX Gyre Heros] [rscale=0.85]
\definefontfamily [mainface] [tt] [DejaVu Sans Mono] 
[features=none,rscale=0.85]

\definefontfamily [mainface] [mm] [Libertinus Math]

\setupbodyfont[mainface]

\starttext

\rm\tf Regular \it Italic \bf Bold \bi BoldItalic

\ss\tf Regular \it Italic \bf Bold \bi BoldItalic

\tt\tf Regular \it Italic \bf Bold \bi BoldItalic

\stoptext

Wolfgang
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___