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
___


Re: [NTG-context] Invalid keyword \spaceskip

2021-06-26 Thread Wolfgang Schuster

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.


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

2021-06-26 Thread Steffen Wolfrum


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

Thanks for the fix! 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-26 Thread 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.


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

2021-06-26 Thread Steffen Wolfrum
PS: with 

% engine=luatex

it works fine.

Steffen



> Am 26.06.2021 um 22:12 schrieb Steffen Wolfrum :
> 
> This mwe gives the error below:
> 
> 
> \starttext
> 
> {\spaceskip=1.0pt plus1pt minus1.5pt Matilda, 24, 345, 348, 361, 366}
> 
> \stoptext
> 
> 
> Steffen
> 
> –––
> 
> … $ ~/context-osx-64/tex/texmf-osx-64/bin/mtxrun --script context 
> --autogenerate /Users/steffen/Desktop/error_1.tex 
> 
> resolvers   | formats | executing runner 'run luametatex format': 
> /Users/steffen/context-osx-64/tex/texmf-osx-64/bin/luametatex 
> --jobname="error_1" 
> --fmt=/Users/steffen/context-osx-64/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
>  
> --lua=/Users/steffen/context-osx-64/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
>   --c:autogenerate --c:currentrun=1 
> --c:fulljobname="/Users/steffen/Desktop/error_1.tex" 
> --c:input="/Users/steffen/Desktop/error_1.tex" --c:kindofrun=1 
> --c:maxnofruns=9 
> --c:texmfbinpath="/Users/steffen/context-osx-64/tex/texmf-osx-64/bin"
> fonts   > beware: no fonts are loaded yet, using 'lm mono' in box
> system  > 
> system  > ConTeXt  ver: 2021.06.25 22:49 LMTX  fmt: 2021.6.26  int: 
> english/english
> system  > 
> system  > 'cont-new.mkxl' loaded
> open source > level 1, order 1, name 
> '/Users/steffen/context-osx-64/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
> system  > beware: some patches loaded from cont-new.mkiv
> close source> level 1, order 1, name 
> '/Users/steffen/context-osx-64/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
> system  > files > jobname 'error_1', input 
> '/Users/steffen/Desktop/error_1', result 'error_1'
> fonts   > latin modern fonts are not preloaded
> languages   > language 'en' is active
> open source > level 1, order 2, name '/Users/steffen/Desktop/error_1.tex'
> fonts   > preloading latin modern fonts (second stage)
> fonts   > 'fallback modern-designsize rm 12pt' is loaded
> tex error   > tex error on line 4 in file 
> /Users/steffen/Desktop/error_1.tex: Valid keyword expected, likely 'minus'
> 
>  {\spaceskip=1.0pt plus1pt minus1.5pt Ma
>   tilda, 24, 345, 348, 361, 366}
> 1 
> 2 \starttext
> 3 
> 4 >>  {\spaceskip=1.0pt plus1pt minus1.5pt Matilda, 24, 345, 348, 361, 366}
> 5 
> 6 \stoptext
> 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: 256
> 
> 
> ___
> 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
> ___

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

2021-06-26 Thread Steffen Wolfrum
This mwe gives the error below:


\starttext

{\spaceskip=1.0pt plus1pt minus1.5pt Matilda, 24, 345, 348, 361, 366}

\stoptext


Steffen

–––

… $ ~/context-osx-64/tex/texmf-osx-64/bin/mtxrun --script context 
--autogenerate /Users/steffen/Desktop/error_1.tex 

resolvers   | formats | executing runner 'run luametatex format': 
/Users/steffen/context-osx-64/tex/texmf-osx-64/bin/luametatex 
--jobname="error_1" 
--fmt=/Users/steffen/context-osx-64/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
 
--lua=/Users/steffen/context-osx-64/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
  --c:autogenerate --c:currentrun=1 
--c:fulljobname="/Users/steffen/Desktop/error_1.tex" 
--c:input="/Users/steffen/Desktop/error_1.tex" --c:kindofrun=1 --c:maxnofruns=9 
--c:texmfbinpath="/Users/steffen/context-osx-64/tex/texmf-osx-64/bin"
fonts   > beware: no fonts are loaded yet, using 'lm mono' in box
system  > 
system  > ConTeXt  ver: 2021.06.25 22:49 LMTX  fmt: 2021.6.26  int: 
english/english
system  > 
system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name 
'/Users/steffen/context-osx-64/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 1, order 1, name 
'/Users/steffen/context-osx-64/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname 'error_1', input 
'/Users/steffen/Desktop/error_1', result 'error_1'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 2, name '/Users/steffen/Desktop/error_1.tex'
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
tex error   > tex error on line 4 in file 
/Users/steffen/Desktop/error_1.tex: Valid keyword expected, likely 'minus'

 {\spaceskip=1.0pt plus1pt minus1.5pt Ma
   tilda, 24, 345, 348, 361, 366}
1 
2 \starttext
3 
4 >>  {\spaceskip=1.0pt plus1pt minus1.5pt Matilda, 24, 345, 348, 361, 366}
5 
6 \stoptext
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: 256


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