ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* latest standalone—lua error
@ 2021-04-29 16:29 Alan Bowen
  2021-04-29 18:24 ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Alan Bowen @ 2021-04-29 16:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

With  ConTeXt  ver: 2021.04.28 18:39 LMTX  fmt: 2021.4.29  int, I am now
getting the following error on compiling with files that were OK
previously. Is there something that I need to change?

Alan

lua error       > lua error on line 232 in file ../../env_Aestimatio-00.tex:

registered function call [1151]:
...TeX/tex/texmf-context/tex/context/base/mkiv/font-sel.lua:648: attempt to
index a nil value (field 'tf')
stack traceback:
...TeX/tex/texmf-context/tex/context/base/mkiv/font-sel.lua:648: in field
'filefallback'
...TeX/tex/texmf-context/tex/context/base/mkiv/font-sel.lua:666: in field
'mathfallback'
...TeX/tex/texmf-context/tex/context/base/mkiv/font-sel.lua:692: in field
'fallback'
...TeX/tex/texmf-context/tex/context/base/mkiv/font-sel.lua:782: in
function <...TeX/tex/texmf-context/tex/context/base/mkiv/font-sel.lua:777>
(...tail calls...)

222     expansion=quality,
223     mode=node,
224     force=yes,
225     ]
226     \definefallbackfamily[mainface] [mm] [STIX Two Text]
227         [range=digitsnormal,
228     force=yes,
229     features=f:oldstyle]
230
231     \definefontfamily[mainface][mm][STIX Two Math]
232 >>
233     \setupbodyfont[mainface, 10pt]
234
235     \setupalign[hanging, stretch, hz]
236
237     %%%%%%%%%% French
238     %At beginning insert:
239     % \mainlanguage[fr]
240     % \setcharacterspacing[frenchpunctuation]
241     % \startsetups[footnote:french]
242     %\setcharacterspacing[frenchpunctuation]

mtx-context     | fatal error: return code: 256

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

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

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

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

* Re: latest standalone—lua error
  2021-04-29 16:29 latest standalone—lua error Alan Bowen
@ 2021-04-29 18:24 ` Wolfgang Schuster
  2021-04-30 11:19   ` Alan Bowen
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2021-04-29 18:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Alan Bowen schrieb am 29.04.2021 um 18:29:
> With  ConTeXt  ver: 2021.04.28 18:39 LMTX  fmt: 2021.4.29  int, I am 
> now getting the following error on compiling with files that were OK 
> previously. Is there something that I need to change?

The error is caused by the fallback font for math but you have create a 
minimal example because I'm unable to reproduce it (copy all font 
settings to a new document and run ConTeXt).

Can you also check if the font files are found by ConTeXt:

         mtxrun --script fonts --list --all stixtwotext*

Wolfgang


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

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

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

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

* Re: latest standalone—lua error
  2021-04-29 18:24 ` Wolfgang Schuster
@ 2021-04-30 11:19   ` Alan Bowen
  2021-04-30 13:44     ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Alan Bowen @ 2021-04-30 11:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hi, Wolfgang—

I copied all the fonts to a new document (file attached) and ran ConTeXt.
The problem persists. The cause, I think, comes in the lines:

\definefallbackfamily[mainface] [mm] [STIX Two Text]
  [range=digitsnormal,
force=yes,
features=f:oldstyle]
which used to give me oldstyle numerals.

bowen1@acbs-mbp ~ %  mtxrun --script fonts --list --all stixtwotext
yields
identifier           familyname    fontname            filename
                               subfont   instances

stixtwotext          stixtwotext   stixtwotext
/Users/bowen1/Library/Fonts/STIX2Text-Regular.otf
stixtwotextnormal    stixtwotext   stixtwotextitalic
STIXTwoText-Italic.otf
stixtwotextregular   stixtwotext   stixtwotextmedium
STIXTwoText-Medium.otf


On Thu, Apr 29, 2021 at 2:25 PM Wolfgang Schuster <
wolfgang.schuster.lists@gmail.com> wrote:

> Alan Bowen schrieb am 29.04.2021 um 18:29:
>
> With  ConTeXt  ver: 2021.04.28 18:39 LMTX  fmt: 2021.4.29  int, I am now
> getting the following error on compiling with files that were OK
> previously. Is there something that I need to change?
>
>
> The error is caused by the fallback font for math but you have create a
> minimal example because I'm unable to reproduce it (copy all font settings
> to a new document and run ConTeXt).
>
> Can you also check if the font files are found by ConTeXt:
>
>         mtxrun --script fonts --list --all stixtwotext*
>
> 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
>
> ___________________________________________________________________________________
>

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

[-- Attachment #2: FontTest.tex --]
[-- Type: application/x-tex, Size: 2365 bytes --]

[-- Attachment #3: Type: text/plain, Size: 493 bytes --]

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

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

* Re: latest standalone—lua error
  2021-04-30 11:19   ` Alan Bowen
@ 2021-04-30 13:44     ` Wolfgang Schuster
  2021-04-30 15:21       ` Alan Bowen
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2021-04-30 13:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Alan Bowen schrieb am 30.04.2021 um 13:19:
> Hi, Wolfgang—
>
> I copied all the fonts to a new document (file attached) and ran 
> ConTeXt. The problem persists. The cause, I think, comes in the lines:
>
> \definefallbackfamily[mainface] [mm] [STIX Two Text]
> [range=digitsnormal,
> force=yes,
> features=f:oldstyle]
> which used to give me oldstyle numerals.

I'm unable to reproduce the error with your example and most of the 
fallbacks are ignored because I don't have the fonts.

To ensure there is no problem with the format and font database delete 
the cache and rebuild it:

         mtxrun --script cache --erase
         mtxrun --generate

When this doesn't help you simplify your example. First remove one 
\definefallbackfamily at a time and afterwards remove \definefontfamily 
until the error disappears.

Wolfgang


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

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

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

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

* Re: latest standalone—lua error
  2021-04-30 13:44     ` Wolfgang Schuster
@ 2021-04-30 15:21       ` Alan Bowen
  2021-04-30 15:47         ` Alan Bowen
  0 siblings, 1 reply; 8+ messages in thread
From: Alan Bowen @ 2021-04-30 15:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hi, Wolfgang—

The mwe is:
\definefontfamily[mainface][rm][STIX Two Text]
[protrusion=quality,
expansion=quality,
mode=node,
force=yes,
features={default, f:oldstyle},
]
]
\definefallbackfamily[mainface] [mm] [STIX Two Text]
  [range=digitsnormal,
force=yes,
features=f:oldstyle]

\definefontfamily[mainface][mm][STIX Two Math]

\setupbodyfont[mainface, 20pt]

\starttext

Hello world!

123456789

\m{123456789}

\oldstyle{123456789}

\stoptext

The problem disappears if I remove either
\definefallbackfamily[mainface] [mm] [STIX Two Text]
  [range=digitsnormal,
force=yes,
features=f:oldstyle]
or
\definefontfamily[mainface][mm][STIX Two Math]

But in neither case do I get oldstyle numerals.

Note too that, when I remove \definefontfamily[mainface][mm][STIX Two
Math], my log file has
mkiv lua stats  > loaded fonts: 2 files: lmmono10-regular.otf,
lmroman10-regular.otf
with no mention of STIX Two Text.

Yet ConTeXt is aware of the STIX Two Math and STIX Two Text fonts.

WE had a power failure very recently. I wonder if that has screwed things
up.

Alan

On Fri, Apr 30, 2021 at 9:45 AM Wolfgang Schuster <
wolfgang.schuster.lists@gmail.com> wrote:

> Alan Bowen schrieb am 30.04.2021 um 13:19:
>
> Hi, Wolfgang—
>
> I copied all the fonts to a new document (file attached) and ran ConTeXt.
> The problem persists. The cause, I think, comes in the lines:
>
> \definefallbackfamily[mainface] [mm] [STIX Two Text]
>   [range=digitsnormal,
> force=yes,
> features=f:oldstyle]
> which used to give me oldstyle numerals.
>
>
> I'm unable to reproduce the error with your example and most of the
> fallbacks are ignored because I don't have the fonts.
>
> To ensure there is no problem with the format and font database delete the
> cache and rebuild it:
>
>         mtxrun --script cache --erase
>         mtxrun --generate
>
> When this doesn't help you simplify your example. First remove one
> \definefallbackfamily at a time and afterwards remove \definefontfamily
> until the error disappears.
>
> 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
>
> ___________________________________________________________________________________
>

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

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

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

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

* Re: latest standalone—lua error
  2021-04-30 15:21       ` Alan Bowen
@ 2021-04-30 15:47         ` Alan Bowen
  2021-04-30 15:57           ` Hans Hagen
  2021-04-30 16:08           ` Hans Hagen
  0 siblings, 2 replies; 8+ messages in thread
From: Alan Bowen @ 2021-04-30 15:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

I removed and then reinstalled luametex: the problem persists.
A.

On Fri, Apr 30, 2021 at 11:21 AM Alan Bowen <bowenalan03@gmail.com> wrote:

> Hi, Wolfgang—
>
> The mwe is:
> \definefontfamily[mainface][rm][STIX Two Text]
> [protrusion=quality,
> expansion=quality,
> mode=node,
> force=yes,
> features={default, f:oldstyle},
> ]
> ]
> \definefallbackfamily[mainface] [mm] [STIX Two Text]
>   [range=digitsnormal,
> force=yes,
> features=f:oldstyle]
>
> \definefontfamily[mainface][mm][STIX Two Math]
>
> \setupbodyfont[mainface, 20pt]
>
> \starttext
>
> Hello world!
>
> 123456789
>
> \m{123456789}
>
> \oldstyle{123456789}
>
> \stoptext
>
> The problem disappears if I remove either
> \definefallbackfamily[mainface] [mm] [STIX Two Text]
>   [range=digitsnormal,
> force=yes,
> features=f:oldstyle]
> or
> \definefontfamily[mainface][mm][STIX Two Math]
>
> But in neither case do I get oldstyle numerals.
>
> Note too that, when I remove \definefontfamily[mainface][mm][STIX Two
> Math], my log file has
> mkiv lua stats  > loaded fonts: 2 files: lmmono10-regular.otf,
> lmroman10-regular.otf
> with no mention of STIX Two Text.
>
> Yet ConTeXt is aware of the STIX Two Math and STIX Two Text fonts.
>
> WE had a power failure very recently. I wonder if that has screwed things
> up.
>
> Alan
>
> On Fri, Apr 30, 2021 at 9:45 AM Wolfgang Schuster <
> wolfgang.schuster.lists@gmail.com> wrote:
>
>> Alan Bowen schrieb am 30.04.2021 um 13:19:
>>
>> Hi, Wolfgang—
>>
>> I copied all the fonts to a new document (file attached) and ran ConTeXt.
>> The problem persists. The cause, I think, comes in the lines:
>>
>> \definefallbackfamily[mainface] [mm] [STIX Two Text]
>>   [range=digitsnormal,
>> force=yes,
>> features=f:oldstyle]
>> which used to give me oldstyle numerals.
>>
>>
>> I'm unable to reproduce the error with your example and most of the
>> fallbacks are ignored because I don't have the fonts.
>>
>> To ensure there is no problem with the format and font database delete
>> the cache and rebuild it:
>>
>>         mtxrun --script cache --erase
>>         mtxrun --generate
>>
>> When this doesn't help you simplify your example. First remove one
>> \definefallbackfamily at a time and afterwards remove \definefontfamily
>> until the error disappears.
>>
>> 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
>>
>> ___________________________________________________________________________________
>>
>

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

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

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

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

* Re: latest standalone—lua error
  2021-04-30 15:47         ` Alan Bowen
@ 2021-04-30 15:57           ` Hans Hagen
  2021-04-30 16:08           ` Hans Hagen
  1 sibling, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2021-04-30 15:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Alan Bowen

On 4/30/2021 5:47 PM, Alan Bowen wrote:
> I removed and then reinstalled luametex: the problem persists.
> A.
> 
> On Fri, Apr 30, 2021 at 11:21 AM Alan Bowen <bowenalan03@gmail.com 
> <mailto:bowenalan03@gmail.com>> wrote:
> 
>     Hi, Wolfgang—
> 
>     The mwe is:
>     \definefontfamily[mainface][rm][STIX Two Text]
>     [protrusion=quality,
>     expansion=quality,
>     mode=node,
>     force=yes,
>     features={default, f:oldstyle},
>     ]
>     ]

two ] here so you start rendering too soon


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

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

* Re: latest standalone—lua error
  2021-04-30 15:47         ` Alan Bowen
  2021-04-30 15:57           ` Hans Hagen
@ 2021-04-30 16:08           ` Hans Hagen
  1 sibling, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2021-04-30 16:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Alan Bowen

On 4/30/2021 5:47 PM, Alan Bowen wrote:
> I removed and then reinstalled luametex: the problem persists.
The stix fonts changed names (again) so the 2 in the names are gone and 
text is in the filenames ...

Can you check if your names.tma has 2 in names?

Here it works ok with 'two's.

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
___________________________________________________________________________________

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

end of thread, other threads:[~2021-04-30 16:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-29 16:29 latest standalone—lua error Alan Bowen
2021-04-29 18:24 ` Wolfgang Schuster
2021-04-30 11:19   ` Alan Bowen
2021-04-30 13:44     ` Wolfgang Schuster
2021-04-30 15:21       ` Alan Bowen
2021-04-30 15:47         ` Alan Bowen
2021-04-30 15:57           ` Hans Hagen
2021-04-30 16:08           ` Hans Hagen

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