[NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-04-30 Thread Nicola
I'd like to run ConTeXt on Alpine Linux (ultimately, to run it on an
iPad with the iSH app). I am currently testing it with Docker. This is
what I have done:

docker pull econcz/x86-alpine-glibc:ish-import
docker run -it econcz/x86-alpine-glibc:ish-import /bin/sh
cp /etc/apk/repositories /tmp/repositories
cat /etc/os-release
ALPINE_VERSION=3.12  # Set accordingly to previous command
echo "http://nl.alpinelinux.org/alpine/v${ALPINE_VERSION}/main/; | tee 
/etc/apk/repositories
echo "http://nl.alpinelinux.org/alpine/v${ALPINE_VERSION}/community/; | tee 
-a /etc/apk/repositories
apk update

This installs and configures repos for Alpine Linux 3.12. Then,
I install TeX Live as follows:

apk add texlive-full texlive-xetex texlive-luatex texlive-dev
apk add ghostscript ghostscript-fonts ghostscript-dev
apk add graphicsmagick graphicsmagick-dev

Then, I run `mtxrun --generate`, which exits instantly with the output
reported below. However, that is apparently not enough. I still get:

$ context Hello-world.tex
mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'

$ context --version
mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'

$ mtxrun --version
mtxrun  | ConTeXt TDS Runner Tool 1.32
mtxrun  | source path

$ mtxrun --script context
mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'

$ luatools --generate
mtxrun  | unknown script 'base.lua' or 'mtx-base.lua'

$ find / -name context.lua
/usr/share/texmf-dist/scripts/context/lua/context.lua

$ find / -name mtx-context.lua
/usr/share/texmf-dist/scripts/context/lua/mtx-context.lua

$ find / -name base.lua
[Nothing found]

$ find / -name mtx-base.lua
/usr/share/texmf-dist/scripts/context/lua/mtx-base.lua

Anyone running ConTeXt on Alpine? Any idea what is wrong?

Nicola

>mtxrun --generate
resolvers   | resolving | variable 'SELFAUTOLOC' set to '/usr/bin'
resolvers   | resolving | variable 'SELFAUTODIR' set to '/usr'
resolvers   | resolving | variable 'SELFAUTOPARENT' set to '.'
resolvers   | resolving | variable 'TEXMFCNF' set to ''
resolvers   | resolving | variable 'TEXMF' set to ''
resolvers   | resolving | variable 'TEXOS' set to 'usr'
resolvers   | resolving |
resolvers   | resolving | using configuration specification 
'home:texmf/web2c;{selfautoloc:,selfautoloc:/share/texmf-local/web2c,selfautoloc:/share/texmf-dist/web2c,selfautoloc:/share/texmf/web2c,selfautoloc:/texmf-local/web2c,selfautoloc:/texmf-dist/web2c,selfautoloc:/texmf/web2c,selfautodir:,selfautodir:/share/texmf-local/web2c,selfautodir:/share/texmf-dist/web2c,selfautodir:/share/texmf/web2c,selfautodir:/texmf-local/web2c,selfautodir:/texmf-dist/web2c,selfautodir:/texmf/web2c,$SELFAUTOGRANDPARENT/texmf-local/web2c,selfautoparent:,selfautoparent:/share/texmf-local/web2c,selfautoparent:/share/texmf-dist/web2c,selfautoparent:/share/texmf/web2c,selfautoparent:/texmf-local/web2c,selfautoparent:/texmf-dist/web2c,selfautoparent:/texmf/web2c}'
resolvers   | resolving |
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/root/texmf/web2c' from specification 'home:texmf/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on weird path 
'/usr/bin' from specification 'selfautoloc:'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/usr/bin/share/texmf-local/web2c' from specification 
'selfautoloc:/share/texmf-local/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/usr/bin/share/texmf-dist/web2c' from specification 
'selfautoloc:/share/texmf-dist/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/usr/bin/share/texmf/web2c' from specification 'selfautoloc:/share/texmf/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/usr/bin/texmf-local/web2c' from specification 'selfautoloc:/texmf-local/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/usr/bin/texmf-dist/web2c' from specification 'selfautoloc:/texmf-dist/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/usr/bin/texmf/web2c' from specification 'selfautoloc:/texmf/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on weird path 
'/usr' from specification 'selfautodir:'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/usr/share/texmf-local/web2c' from specification 
'selfautodir:/share/texmf-local/web2c'
resolvers   | resolving | looking for regular 'texmfcnf.lua' on given path 
'/usr/share/texmf-dist/web2c' from specification 
'selfautodir:/share/texmf-dist/web2c'
resolvers   | resolving | found regular configuration file 
'/usr/share/texmf-dist/web2c/texmfcnf.lua'
resolvers   | resolving | looking for 

Re: [NTG-context] latest standalone—lua error

2021-04-30 Thread Hans Hagen

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
___


Re: [NTG-context] latest standalone—lua error

2021-04-30 Thread Hans Hagen

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


Re: [NTG-context] latest standalone—lua error

2021-04-30 Thread Alan Bowen
I removed and then reinstalled luametex: the problem persists.
A.

On Fri, Apr 30, 2021 at 11:21 AM Alan Bowen  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.li...@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
>>
>> ___
>>
>
___
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] latest standalone—lua error

2021-04-30 Thread Alan Bowen
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.li...@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
>
> ___
>
___
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] latest standalone—lua error

2021-04-30 Thread Wolfgang Schuster

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
___


Re: [NTG-context] latest standalone—lua error

2021-04-30 Thread Alan Bowen
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   familynamefontnamefilename
   subfont   instances

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


On Thu, Apr 29, 2021 at 2:25 PM Wolfgang Schuster <
wolfgang.schuster.li...@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
>
> ___
>


FontTest.tex
Description: TeX document
___
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
___