Re: [NTG-context] TikZ \shade broken

2023-06-17 Thread Hans Hagen via ntg-context

On 6/17/2023 7:28 PM, Gavin via ntg-context wrote:

Hi List,

First, a big thanks to Aditya for solving the missing pgfsys-luatex.def! That 
was a show-stopper on my Mac.

Now that I can use TikZ again, I am running into a problem with the \shade 
command. Below is a small working example from the TikZ manual [pp.39-41]. The 
first tikzpicture is the example. The second TikZ picture is similar, but 
without any shading.

\usemodule[tikz]
\starttext
\starttikzpicture
\shade[top color=yellow,bottom color=black] (0,0) rectangle +(2,1);
\shade[left color=yellow,right color=black] (3,0) rectangle +(2,1);
\shadedraw[inner color=yellow,outer color=black,draw=yellow] (6,0) rectangle 
+(2,1);
\shade[ball color=green] (9,.5) circle (.5cm);
\stoptikzpicture
\starttikzpicture
\draw[color=black] (0,0) rectangle +(2,1);
\fill[color=yellow] (3,0) rectangle +(2,1);
\filldraw[fill=black,draw =yellow] (6,0) rectangle +(2,1);
\fill[fill=green] (9,.5) circle (.5cm);
\stoptikzpicture
\stoptext
\stoptext

The second picture works. The first picture produces quite an error message 
(below). I’m using

ConTeXt  ver: 2023.06.01 09:42 LMTX  fmt: 2023.6.2

on an M1 Mac with Ventura 13.4

Any help would be greatly appreciated!

Gavin



tex error   > tex error on line 8 in file ./TikZtest.tex: Valid keyword 
expected, likely 'direction'

 \pgfsys@vertshading
#1#2#3->{\pgf@parsefunc {#3}\pgfmathparse {#2}\setbox \pgfutil@tempboxa =\hbox 
dir
TLT to\pgfmathresult pt{\vbox to\pgf@max {\vfil \pgfsys@invoke {/Sh sh}}\hfil 
}\pgf@process {\pgfpoint {#2}{\pgf@max }}\immediate \saveboxresource resources 
{/Shading

luametatex doesn't have the dir keyword

(I could probably add it in a simplified form just for this purpose 
because the performance penalty is less now.)


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
___


[NTG-context] TikZ \shade broken

2023-06-17 Thread Gavin via ntg-context
Hi List,

First, a big thanks to Aditya for solving the missing pgfsys-luatex.def! That 
was a show-stopper on my Mac.

Now that I can use TikZ again, I am running into a problem with the \shade 
command. Below is a small working example from the TikZ manual [pp.39-41]. The 
first tikzpicture is the example. The second TikZ picture is similar, but 
without any shading.

\usemodule[tikz]
\starttext
\starttikzpicture  
\shade[top color=yellow,bottom color=black] (0,0) rectangle +(2,1);
\shade[left color=yellow,right color=black] (3,0) rectangle +(2,1);
\shadedraw[inner color=yellow,outer color=black,draw=yellow] (6,0) rectangle 
+(2,1);
\shade[ball color=green] (9,.5) circle (.5cm);
\stoptikzpicture
\starttikzpicture  
\draw[color=black] (0,0) rectangle +(2,1);
\fill[color=yellow] (3,0) rectangle +(2,1);
\filldraw[fill=black,draw =yellow] (6,0) rectangle +(2,1);
\fill[fill=green] (9,.5) circle (.5cm);
\stoptikzpicture
\stoptext
\stoptext

The second picture works. The first picture produces quite an error message 
(below). I’m using

ConTeXt  ver: 2023.06.01 09:42 LMTX  fmt: 2023.6.2

on an M1 Mac with Ventura 13.4

Any help would be greatly appreciated!

Gavin



tex error   > tex error on line 8 in file ./TikZtest.tex: Valid keyword 
expected, likely 'direction'

 \pgfsys@vertshading 
#1#2#3->{\pgf@parsefunc {#3}\pgfmathparse {#2}\setbox \pgfutil@tempboxa =\hbox 
dir 
TLT to\pgfmathresult pt{\vbox to\pgf@max {\vfil \pgfsys@invoke {/Sh sh}}\hfil 
}\pgf@process {\pgfpoint {#2}{\pgf@max }}\immediate \saveboxresource resources 
{/Shading 
 
...dafter \expandafter \def \expandafter \expandafter \expandafter \@@args 
\expandafter \expandafter \expandafter {\csname pgf@args\pgf@shadingname 
\endcsname }\expandafter \expandafter \expandafter \@temp \expandafter \@args 
\@@args 
\expandafter  ...
 \pgfutil@firstoftwo 
#1#2->#1
 
...r \expandafter \expandafter {\csname pgf@args\pgf@shadingname \endcsname 
}\expandafter \expandafter \expandafter \@temp \expandafter \@args \@@args 
\expandafter \pgfmath@smuggleone \csname \pgf@shadingxname \endcsname \endgroup 
}{}
\pgf@invokesh ...
 \pgfutil@secondoftwo 
#1#2->#2
 \pgfshadepath 
...e@cos }{0pt}{0pt}\pgfsys@transformcm {\pgf@sys@tonumber {\pgf@xc 
}}{0}{0}{\pgf@sys@tonumber {\pgf@yc }}{0pt}{0pt}\ifx \pgf@shade@extra@transform 
\pgfutil@empty \else \pgflowlevel {\pgf@shade@extra@transform }\fi 
\pgfuseshading {#1}
\pgfsys@endsc ...
...

 
\shade[top color=yellow,bottom color=black] (0,0) rectangle +(2,1);

1 % !TEX useAlternatePath
2 % !TEX useConTeXtSyncParser
3 
4 \usemodule[tikz]
5 
6 \starttext
7   \starttikzpicture  
8 >>  \shade[top color=yellow,bottom color=black] (0,0) rectangle +(2,1);
9 \shade[left color=yellow,right color=black] (3,0) rectangle +(2,1);
10 \shadedraw[inner color=yellow,outer color=black,draw=yellow] (6,0) 
rectangle +(2,1);
11 \shade[ball color=green] (9,.5) circle (.5cm);
12   \stoptikzpicture
13   \starttikzpicture  
14 \draw[color=black] (0,0) rectangle +(2,1);
15 \fill[color=yellow] (3,0) rectangle +(2,1);
16 \filldraw[fill=black,draw =yellow] (6,0) rectangle +(2,1);
17 \fill[fill=green] (9,.5) circle (.5cm);
18   \stoptikzpicture
You started a keyword but it seems to be an invalid one. The first character(s)
might give you a clue. You might want to quit unwanted lookahead with \relax.
mtx-context | fatal error: return code: 1

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


Re: [NTG-context] Off topic: Does a 'free for commercial use' flared-sans font exist in the world?

2023-06-17 Thread Hans Hagen via ntg-context

On 6/17/2023 2:06 AM, linguafalsa--- via ntg-context wrote:

On Fri, Jun 16, 2023 at 06:35:49PM +0200, Gerben Wierda via ntg-context wrote:

I know this is off topic, but I suspect this community is actually one of the 
best places to find an answer.



It is the best community. And I tell you what.

What happened is that all TeX engines have neglected fonts from the beginning.


Really? When tex showed up digital font technology was pretty much in 
flux. And, with metafont being part of the tex ecosystem, one can argue 
that tex was quite innovative too.


Potscript and its fonts came aroudn at the same time and were rather 
closed technologies. But as soon possible backend drivers (also part of 
the tex ecosystem) kicked in.


Then we got virtual fonts which enhanced tex's capabilities.


I really like Optima, and what I really like about it is the 'flared style'.

But I would like to move to a flared-sans font that gives me more licensing 
freedom. I haven't been able to find one after extensive searching. The only 
one who were reasonably priced (not free) were the URW Classico ones in Adobe 
Creative Cloud, but those can only be used in Adobe programs like InDesign (and 
not TeX).



Licensing freedom is an oxymoron. There's no freedom in licensing.
Only greed.

The only extension engine that at one point had a plan in mind,
or most of the bases covered in this regard was Omega.


One needs morr than plans. Afaik omega was more about input processing 
and th efont part was mostly going beyond 8 bit fonts but i might have 
missed something (omega was never productin ready).


It is xetex that hooked into opentype although pdftex can actually deal 
with truetype fonts to some extend. Before there was something 
'opentype' we had two competing but similar technologies. And it took a 
while before it was even clear how to interpre the specification (also 
think about reverse engeneering fonts and heuristics and ... bugs or 
features ...). TeX was always pretty fast in picking up new stuff (maybe 
users less so).



When it came to commercial fonts the plan of action ahead was by
including PFC data on these very same commercial fonts that would
benefit primarily its opentype versions in the long run.


What is PFC data?


What do you have right now? Opentype fonts only. Sure. Quality can be
even the same than its type1 counterpart, and at times not so much
according so some folks that have bothered to go the extra length in
making the most accurate comparison that's available between them two.


For most fonts it's just 'more shapes' which then also leads to more 
ligatures, kerns etc btu that is already nice. And when fonts lack 
something we can always tweak them (runtime).



But looking at it from a bright side/perspective, I think we're no
longer facing the same pre-historic constraints of including a font
as before, as long as it's not for commercial purposes, You are well
aware of these non and commercial uses even before  your extensive
search anyway,


I'm not sure what is the difference between commercial fonts and free 
ones as they use the same technology; with some exceptions, fonts are 
not that expensive (take lucida from tug, making fonts takes time after 
all); and for publishers it's noise on their budgets.



p.s many many years ago I read and followed some publications about
the aformentioned extension and just went over them recently, to
have an idea what did and did not work. In regards to typefaces,
its goal was unmatched, or so I think.


It might be comforting to know that right from the start luatex made a 
lot possible wrt fonts (runtime manipulation) and was also one of the 
first to support variable fonts, color fonts etc (not that many care 
about that). And with luametatex we go even further.



I found some flared-sans fonts, but not one with at least regular, italic, 
bold, and bold-italic.

Is there really not a single flared-sans font that is really free (so also for 
commercial use) to use out there?
I had to search the net to figure out that flare sans fonts are sans 
fonts with serifs


For those into fonts:

https://tug.org/TUGboat/tb44-1/tb136carter-romano.pdf

I a very nice overview of how it went with digital fonts (and what we 
probably lost in getting where we are now and might loose soon).


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  : 

Re: [NTG-context] All NUL files in the Context distribution

2023-06-17 Thread linguafalsa--- via ntg-context
On Sat, Jun 17, 2023 at 10:06:09AM +0200, Alain Delmotte via ntg-context wrote:
> Hi,
> 
> Le 14/06/2023 à 17:13, Leah Neukirchen via ntg-context a écrit :
> > Hi,
> > 
> > I was looking into the SciTE setup when I found that
> > tex/texmf-context/context/data/scite/context/scite-context-internal.properties
> > only contained NUL bytes.
> > 
> > Deleting and reinstalling doesn't fix it.
> > 
> > I have now checked the other files there and these files seem to have
> > gotten corrupted at some point.  Does anyone have a working copy to
> > restore them?
> > 
> > tex/texmf-context/context/data/scite/context/scite-context-internal.properties
> > tex/texmf-context/context/data/scite/context/lexers/scite-context-lexer-web-snippets.lua
> > tex/texmf-context/doc/context/sources/general/manuals/start/en/ma-cb-en-commands.tex
> > 
> > Thanks,
> 
> Same for me:
> tex/texmf-context/doc/context/sources/general/manuals/start/en/ma-cb-en-commands.tex
> contains NUL characters.
> 
> > system > ConTeXt ver: 2023.06.04 18:58 LMTX fmt: 2023.6.13 int:
> english/english

not only that version but also 
 ConTeXt  ver: 2023.04.27 17:04 MKIV  fmt: 2023.5.4  int: english/english

no bueno. 


> 
> --
> 
> Alain
> 
> 
> 

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


-- 
As long as there are ill-defined goals, bizarre bugs, and unrealistic
schedules, there will be Real Programmers willing to jump in and Solve
The Problem, saving the documentation for later.

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


Re: [NTG-context] All NUL files in the Context distribution

2023-06-17 Thread Alain Delmotte via ntg-context

Hi,

Le 14/06/2023 à 17:13, Leah Neukirchen via ntg-context a écrit :

Hi,

I was looking into the SciTE setup when I found that
tex/texmf-context/context/data/scite/context/scite-context-internal.properties
only contained NUL bytes.

Deleting and reinstalling doesn't fix it.

I have now checked the other files there and these files seem to have
gotten corrupted at some point.  Does anyone have a working copy to
restore them?

tex/texmf-context/context/data/scite/context/scite-context-internal.properties
tex/texmf-context/context/data/scite/context/lexers/scite-context-lexer-web-snippets.lua
tex/texmf-context/doc/context/sources/general/manuals/start/en/ma-cb-en-commands.tex

Thanks,


Same for me:
tex/texmf-context/doc/context/sources/general/manuals/start/en/ma-cb-en-commands.tex
contains NUL characters.

> system > ConTeXt ver: 2023.06.04 18:58 LMTX fmt: 
2023.6.13 int: english/english


--

Alain



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