Re: [NTG-context] color conversion eats note

2021-06-27 Thread Wolfgang Schuster

Steffen Wolfrum schrieb am 27.06.2021 um 15:55:

uncommenting the following \setupcolors changes magenta to black when running 
luatex.

but when running luametatex the footnote is crippled to «error»:


\starttext

\definestartstop[UL][color=magenta]

%\setupcolors[state=stop,conversion=never]% <- bw with lualatex, but «error» 
with luametatex?

\input ward \footnote{foo foo \startUL{}foo\stopUL{} foo foo foo foo foo 
\startUL{}foo\stopUL{} error}

\stoptext



Don't use extra stuff (e.g. footnotes) when they aren't necessary to 
reproduce the error.



%\setupcolors[cmyk=no,rgb=no,conversion=no]
%\setupcolors[state=stop,conversion=no]

\setcolormodel[none]

\starttext

\dorecurse{20}{\convertnumber{word}{#1} }%
\color[red]{not a number}
\dorecurse{20}{\convertnumber{word}{#1} }

\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] Install script not working

2021-06-27 Thread Alan Braslau
On Thu, 24 Jun 2021 23:30:00 +0200
Hans Hagen  wrote:

> -- on freebsd always (does anyone know an env var?)

On FreeBSD, there is `uname -m` but also `hostname`.
I find the environment variable $HOST to be set, but I am not sure that
this is done by default (for standard installations).

Alan
___
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] Soft-hyphen in Antykwa.

2021-06-27 Thread Rik Kabel


On 6/27/2021 14:14, Rik Kabel wrote:


On 6/27/2021 07:46, Hans Hagen wrote:

On 6/27/2021 12:38 AM, Rik Kabel wrote:

All,

In recent compilations of a document using Antykwa Torunska 
Condensed (in headings in the margin), I now have no hyphen at a 
word break, and see the following in the log:


    fonts   > checking > char ­ (U+000AD) in font
    'AntykwaTorunskaCond-Regular' with id 73: missing

Is there a way to restore the hyphen that once appeared? (ConTeXt  
ver: 2021.06.25 22:49 LMTX).


fixed in next upload


Thank you for the fix.

For the record, I note that this is still a problem in MkIV.

And additionally, for the record, erasing the font cache and 
regenerating got it back for MkIV (via --luatex).


--
Rik

___
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] Soft-hyphen in Antykwa.

2021-06-27 Thread Rik Kabel


On 6/27/2021 07:46, Hans Hagen wrote:

On 6/27/2021 12:38 AM, Rik Kabel wrote:

All,

In recent compilations of a document using Antykwa Torunska Condensed 
(in headings in the margin), I now have no hyphen at a word break, 
and see the following in the log:


    fonts   > checking > char ­ (U+000AD) in font
    'AntykwaTorunskaCond-Regular' with id 73: missing

Is there a way to restore the hyphen that once appeared? (ConTeXt  
ver: 2021.06.25 22:49 LMTX).


fixed in next upload


Thank you for the fix.

For the record, I note that this is still a problem in MkIV.

--
Rik

___
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] First line of larger font paragraph on grid

2021-06-27 Thread denis.maier
Thanks, Garulfo. I don't use \definedfont in my real document so I should be 
able to port it to my use case. And now I've learned about foregroundstyle. (I 
was already a bit perplexed that \framed has no style key.)

Just out of curiousity, perhaps someone (Hans? Wolfgang?) knows more about the 
underlying issue?

Denis

> -Ursprüngliche Nachricht-
> Von: ntg-context  Im Auftrag von Garulfo
> Gesendet: Samstag, 26. Juni 2021 12:37
> An: ntg-context@ntg.nl
> Betreff: Re: [NTG-context] First line of larger font paragraph on grid
> 
> To have the two pages similar
> 
> There is something linked with the use of \definefont.
> Don't know if it properly impacts the interlinespace for example.
> 
> %--
> 
> \setuplayout[grid=yes]
> \showgrid
> 
> \definefont  [BigFont]  [Bold at 20pt] [28pt]
> 
> \definefontsize[e]  %   < added
> \definebodyfontenvironment [12pt] [e=20pt]  %   < added
> 
> \unprotect
> \unexpanded\def\section_command#1#2{%
>\framed [
> width=\textwidth,
> frame=off,
> rulethickness=0pt,
> offset=0pt,
> loffset=-0pt,
> before=,
> location=top,
> align=flushleft,]{#2}%
> }
> 
> 
> \setuphead [section] [
>  style=\bfe,
>  after=,
> before={\blank[1*line]},
>command=\section_command,
> ]
> \protect
> 
> 
> \defineframed[myframed][
> width=\textwidth,
> frame=off,
> rulethickness=0pt,
> offset=0pt,
> loffset=-0pt,
> foregroundstyle=\bfe,%   < added
> strut=yes,   %   < added
> before=,
> location=top,
> align=flushleft,]%   < removed dup "]"
> 
> \starttext
> 
> \blank[force,3*line,depth]
> 
> %\begingroup%   < removed
> %\BigFont   %   < removed
> \myframed{Lorem ipsum dolor sit amet consectetur adipisicing elit Lorem
> ipsum dolor sit amet consectetur adipisicing elit}
> %\endgroup  %   < removed
> 
> asdfasdf
> 
> \page
> \blank[force,3*line,depth]
> 
> \startsection [title=Lorem ipsum dolor sit amet consectetur adipisicing elit
> Lorem ipsum dolor sit amet consectetur adipisicing elit]
>asdf
> \stopsection
> 
> \stoptext
> 
> %--
> 
> 
> Le 25/06/2021 à 12:30, denis.ma...@unibe.ch a écrit :
> > Hi,
> >
> > I have some text in a larger font where the first line should be on
> > the grid. Therefore, I’ve tried to adapt the solution from the wiki:
> > https://wiki.contextgarden.net/Grid_typesetting#Placing_titles_on_the_
> > grid
> >  > _grid>
> >
> > The interesting thing is that the section command indeed places the
> > first line on the grid, but using \framed directly does not give the
> > desired results.
> >
> > I must be missing something obvious. Does anyone know a solution ?
> >
> > Thanks for your help,
> >
> > Denis
> >
> > ===
> >
> > \setuplayout[grid=yes]
> >
> > \showgrid
> >
> > \definefont  [BigFont]  [Bold at 20pt] [24pt]
> >
> > \unprotect
> >
> > \unexpanded\def\section_command#1#2{%
> >
> > \framed [
> >
> >     width=\textwidth,
> >
> >         frame=off,
> >
> >         rulethickness=0pt,
> >
> >         offset=0pt,
> >
> >         loffset=-0pt,
> >
> >     before=,
> >
> >     location=top,
> >
> >     align=flushleft,]{#2}%
> >
> > }
> >
> > \setuphead [section] [
> >
> >      style={\BigFont},
> >
> > after=,
> >
> >     before={\blank[1*line]},
> >
> >    command=\section_command,
> >
> > ]
> >
> > \protect
> >
> > \defineframed[myframed][
> >
> >         width=\textwidth,
> >
> >         frame=off,
> >
> >         rulethickness=0pt,
> >
> >         offset=0pt,
> >
> > loffset=-0pt,
> >
> >     before=,
> >
> >     location=top,
> >
> > align=flushleft,]]
> >
> > \starttext
> >
> > \blank[force,3*line,depth]
> >
> > \begingroup
> >
> > \BigFont
> >
> > \myframed{Lorem ipsum dolor sit amet consectetur adipisicing elit
> > Lorem ipsum dolor sit amet consectetur adipisicing elit}
> >
> > \endgroup
> >
> > asdfasdf
> >
> > \page
> >
> > \blank[force,3*line,depth]
> >
> > \startsection [title=Lorem ipsum dolor sit amet consectetur
> > adipisicing elit Lorem ipsum dolor sit amet consectetur adipisicing
> > elit]
> >
> > asdf
> >
> > \stopsection
> >
> > \stoptext
> >
> > =
> >
> >
> >
> 
> __
> > _ If your question is of interest to others as well,
> > please add 

[NTG-context] color conversion eats note

2021-06-27 Thread Steffen Wolfrum
uncommenting the following \setupcolors changes magenta to black when running 
luatex.

but when running luametatex the footnote is crippled to «error»:


\starttext

\definestartstop[UL][color=magenta]

%\setupcolors[state=stop,conversion=never]% <- bw with lualatex, but «error» 
with luametatex?

\input ward \footnote{foo foo \startUL{}foo\stopUL{} foo foo foo foo foo 
\startUL{}foo\stopUL{} error}

\stoptext



Steffen
___
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] Soft-hyphen in Antykwa.

2021-06-27 Thread Hans Hagen

On 6/27/2021 12:38 AM, Rik Kabel wrote:

All,

In recent compilations of a document using Antykwa Torunska Condensed 
(in headings in the margin), I now have no hyphen at a word break, and 
see the following in the log:


fonts   > checking > char ­ (U+000AD) in font
'AntykwaTorunskaCond-Regular' with id 73: missing

Is there a way to restore the hyphen that once appeared? (ConTeXt  ver: 
2021.06.25 22:49 LMTX).


fixed in next upload

-
  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] Invalid keyword \spaceskip

2021-06-27 Thread Hans Hagen

On 6/27/2021 11:36 AM, Steffen Wolfrum wrote:




Am 27.06.2021 um 09:16 schrieb Hans Hagen :

On 6/26/2021 11:56 PM, Wolfgang Schuster wrote:

Steffen Wolfrum schrieb am 26.06.2021 um 23:38:

Am 26.06.2021 um 22:43 schrieb Wolfgang Schuster 
:

Steffen Wolfrum schrieb am 26.06.2021 um 22:26:

PS: with

% engine=luatex

it works fine.

Add \relax after the last skip value, i.e.

  \spaceskip = 1pt plus 1pt minus 1.5pt\relax

LMTX allows multiple plus and minus values for a skip value and the M in 
Matilda starts the scan for an additional minus value.

Wow, this sounds interesting. Is there an example of how to use multiple values?

I think the only examples are in mails from Hans. When you set multiple plus or 
minus values (as far as i remember) only the last setting is used and all 
previous ones are ignored.

Maybe in some article. Anyway, here is an example:

\starttext
  test \skip0=10pt plus 10pt minus 10pt plus 20pt

  test \skip0=10pt plus 10pt plus 20pt minus 10pt

  test \vrule width 10pt height 10pt depth 10pt depth 10pt height 10pt

%  test \hbox to 10pt to 10pt {x}

\stoptext

compare pdftex and luametatex.



ok. but why does this run fine

\starttext

Test \spaceskip = 1.0pt plus 1pt minus 1.5pt Wolfgang

\stoptext


while this ends in an error message?


\starttext

Test \spaceskip = 1.0pt plus 1pt minus 1.5pt Matilda

\stoptext


because scanning is case insensitive so the m triggeres the keyword 
error ... keep in mind that by omitting a \relax you've always been 
lucky so far (probably no follow up texts that had plus or minus) .. 
luametatex just warns earlier


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] Invalid keyword \spaceskip

2021-06-27 Thread Steffen Wolfrum


> Am 27.06.2021 um 09:16 schrieb Hans Hagen :
> 
> On 6/26/2021 11:56 PM, Wolfgang Schuster wrote:
>> Steffen Wolfrum schrieb am 26.06.2021 um 23:38:
 Am 26.06.2021 um 22:43 schrieb Wolfgang Schuster 
 :
 
 Steffen Wolfrum schrieb am 26.06.2021 um 22:26:
> PS: with
> 
> % engine=luatex
> 
> it works fine.
 Add \relax after the last skip value, i.e.
 
  \spaceskip = 1pt plus 1pt minus 1.5pt\relax
 
 LMTX allows multiple plus and minus values for a skip value and the M in 
 Matilda starts the scan for an additional minus value.
>>> Wow, this sounds interesting. Is there an example of how to use multiple 
>>> values?
>> I think the only examples are in mails from Hans. When you set multiple plus 
>> or minus values (as far as i remember) only the last setting is used and all 
>> previous ones are ignored.
> Maybe in some article. Anyway, here is an example:
> 
> \starttext
>  test \skip0=10pt plus 10pt minus 10pt plus 20pt
> 
>  test \skip0=10pt plus 10pt plus 20pt minus 10pt
> 
>  test \vrule width 10pt height 10pt depth 10pt depth 10pt height 10pt
> 
> %  test \hbox to 10pt to 10pt {x}
> 
> \stoptext
> 
> compare pdftex and luametatex.


ok. but why does this run fine

\starttext

Test \spaceskip = 1.0pt plus 1pt minus 1.5pt Wolfgang

\stoptext


while this ends in an error message?


\starttext

Test \spaceskip = 1.0pt plus 1pt minus 1.5pt Matilda

\stoptext


Steffen
___
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] Invalid keyword \spaceskip

2021-06-27 Thread Hans Hagen

On 6/26/2021 11:56 PM, Wolfgang Schuster wrote:

Steffen Wolfrum schrieb am 26.06.2021 um 23:38:
Am 26.06.2021 um 22:43 schrieb Wolfgang Schuster 
:


Steffen Wolfrum schrieb am 26.06.2021 um 22:26:

PS: with

% engine=luatex

it works fine.

Add \relax after the last skip value, i.e.

   \spaceskip = 1pt plus 1pt minus 1.5pt\relax

LMTX allows multiple plus and minus values for a skip value and the M 
in Matilda starts the scan for an additional minus value.
Wow, this sounds interesting. Is there an example of how to use 
multiple values?


I think the only examples are in mails from Hans. When you set multiple 
plus or minus values (as far as i remember) only the last setting is 
used and all previous ones are ignored.

Maybe in some article. Anyway, here is an example:

\starttext
test \skip0=10pt plus 10pt minus 10pt plus 20pt

test \skip0=10pt plus 10pt plus 20pt minus 10pt

test \vrule width 10pt height 10pt depth 10pt depth 10pt height 10pt

 %  test \hbox to 10pt to 10pt {x}

\stoptext

compare pdftex and luametatex.

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
___