Re: [NTG-context] Set luatex cache directory path

2021-04-10 Thread Thangalin
Are two runs always required to generate a PDF when TEXMFCACHE is set?

$ sudo su -
$ mkdir -p /opt/context
$ cd /opt/context
$ wget http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip
$ unzip *zip
$ sh install.sh
$ exit
$ cat test.tex
\starttext
Test
\stoptext
$ export TEXMFCACHE=/tmp
$ rm -rf $TEXMFCACHE/luatex-cache
$ /opt/context/tex/texmf-linux-64/bin/mtxrun --autogenerate --script
mtx-context --autopdf test.tex
...
resolvers   | resolving | remembered file 'mtx-context.lua'
resolvers   | resolving | remembered file 'mtx-contexts.lua'
resolvers   | resolving | remembered file 'mtx-context.lua'
resolvers   | resolving | remembered file 'mtx-t-mtx-context.lua'
resolvers   | resolving | remembered file 'mtx-t-mtx-contexts.lua'
resolvers   | resolving | remembered file 'mtx-t-mtx-context.lua'
resolvers   | resolving | remembered file 'mtx-context.lua'
mtxrun  | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua'
$ /opt/context/tex/texmf-linux-64/bin/mtxrun --script context --version
mtx-context | current version: 2021.04.10 17:09
$ mtxrun --autogenerate --script mtx-context --autopdf test.tex
...
mkiv lua stats  > runtime: 0.432 seconds, 1 processed pages, 1 shipped
pages, 2.315 pages/second
system  | total runtime: 3.318 seconds of 3.372 seconds

The first run fails; the second run succeeds.

If TEXMFCACHE is not set, then the first run succeeds. If TEXMFCACHE is set
to any non-empty value and $TEXMFCACHE/luatex-cache has not been created,
mtxrun always terminates with the same unknown script error.

What am I missing to ensure that ConTeXt will create luatex-cache in /tmp
when TEXMFCACHE is set and successfully build the PDF on first run?

Thank you!
___
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] Arabic place names

2021-04-10 Thread jbf
Thanks for that tip, Arthur. I, too, considered that it might be the 
font that was giving me problems (among other things, mainly my lack of 
understanding of r2l!), so I swapped to Amiri and then used the setup 
below which I then called in whenever needed -- it seems to work. But I 
will take a look at DejaVu Sans.


\definefont[ArabicFont][file:Amiri-Regular.ttf*arabic at 11pt]

\startsetups arabic
\setupalign[r2l]
\ArabicFont
\stopsetups

Julian

On 10/4/21 10:39 pm, Arthur Rosendahl wrote:

On Sat, Apr 10, 2021 at 09:05:37AM +1000, jbf wrote:

 The font, BTW is
Arslan Wessam A.ttf

   Do you need to use this font in particular?  I do have problems with
it too.  Replacing it with e. g. DejaVu Sans gives good results.

Arthur
___
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] files not readable

2021-04-10 Thread Jano Kula
On Sat, Apr 10, 2021 at 5:17 PM Hans Hagen  wrote:

>
> backend > xmp > using file
> 'c:/data/develop/context/sources/lpdf-pdx.xml'


looks like lpdf-pdx.xml is used in the end:
backend   > xmp > using file
'C:/data/context/bin/beta-win64/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
only  \enabletrackers[resolvers.details] adds the information "file not
readable", likely without any real effect.

I'm getting different results on windows and linux in more complex setup
and "file not readable" was the only difference in log files.
That's why I became interested in "file not readable" information, which
seems to be misleading.

In the end all files are are listed in
system > start used files
section and context doesn't complain it cannot open or read those files
(file not found).

The mystery of the log information remains unresolved.

Thank you,
Jano
___
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] arm osx

2021-04-10 Thread Hans Hagen

Hi,

Thanks to Mojca's persistent efforts we now generate arm osx binaries on 
the build infrastructure, so lmtx now ships native arm bins for apples. 
There are also intel solaris builds now but no installers for those 
platforms (yet).


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] files not readable

2021-04-10 Thread Hans Hagen

On 4/10/2021 4:54 PM, Jano Kula wrote:

Hello Hans,

more specific resolver now:
\enabletrackers[resolvers.details]
\starttext
Readable?
\stoptext

On Sat, Apr 10, 2021 at 3:29 PM Hans Hagen > wrote:


On 4/10/2021 3:10 PM, Jano Kula wrote:

 > resolvers       > resolving > file 'type-imp-loc.mkxl' is not
readable
 > resolvers       > resolving > file './type-imp-loc.mkxl' is not
readable
 > resolvers       > resolving > file 'type-imp-loc.mkxl' is not
readable
 > resolvers       > resolving > file 'type-imp-loc.mkiv' is not
readable
 > resolvers       > resolving > file './type-imp-loc.mkiv' is not
readable

resolvers       > resolving > file 'type-imp-loc.tex' is not readable
resolvers       > resolving > file './type-imp-loc.tex' is not readable
resolvers       > resolving > file 'type-imp-loc.tex' is not readable


this is ok, at startup context loads:

cont-new.* -- patch file (overwritten by update)
cont-loc.* -- local patch / preferences file (not touched by update)
cont-exp.* -- local experiments file (for wolfgang and, we can enable 
new stuff there)


the type-imp-loc file for users who want to test / overload fonts or 
whatever (not in distribution)


These are not in distribution at all, naturally missing in 
/tex/texmf-cache/luatex-cache/context/.../trees/*.lua



resolvers       > resolving > file 'lm.lfg' is not readable
resolvers       > resolving > file './lm.lfg' is not readable


weird, should be there (in tex/context/fonts/mkiv)


 > resolvers       > resolving > file 'lpdf-pdx.xml' is not readable
 > resolvers       > resolving > file './lpdf-pdx.xml' is not readable


idem, but in tex/context/base/mkxl

These are in the distribution with same access rights as other files 
(linux), also listed in cache files.

Again, same windows and linux.
Don't you have the same result?



system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name 
'c:/data/develop/context/sources/cont-new.mkxl'

system  > beware: some patches loaded from cont-new.mkiv
close source> level 1, order 1, name 
'c:/data/develop/context/sources/cont-new.mkxl'

system  > 'cont-loc.mkxl' loaded
open source > level 1, order 2, name 
'c:/data/develop/context/sources/cont-loc.mkxl'
close source> level 1, order 2, name 
'c:/data/develop/context/sources/cont-loc.mkxl'

system  > 'cont-exp.mkxl' loaded
open source > level 1, order 3, name 
'c:/data/develop/context/sources/cont-exp.mkxl'

system  > beware: running in overload mode 4
system  > beware: \forcecolorhacks is disabled
system  > beware: using metapost fasttrack mode
close source> level 1, order 3, name 
'c:/data/develop/context/sources/cont-exp.mkxl'

system  > files > jobname 'oeps', input './oeps', result 'oeps'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 4, name './oeps.tex'
fonts   > preloading modern-designsize (math)
fonts   > typescripts > unknown library 'modern-designsize'
fonts   > 'fallback modern-designsize mm 12pt' is loaded
fonts   > preloading modern-designsize (mono)
fonts   > 'fallback modern-designsize tt 12pt' is loaded
fonts   > defining > font 'ArslanWessam', feature 'locl', script 
'arab', no language 'dflt'
backend > xmp > using file 
'c:/data/develop/context/sources/lpdf-pdx.xml'


-
  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] files not readable

2021-04-10 Thread Jano Kula
Hello Hans,

more specific resolver now:
\enabletrackers[resolvers.details]
\starttext
Readable?
\stoptext

On Sat, Apr 10, 2021 at 3:29 PM Hans Hagen  wrote:

> On 4/10/2021 3:10 PM, Jano Kula wrote:
>
> > resolvers   > resolving > file 'type-imp-loc.mkxl' is not readable
> > resolvers   > resolving > file './type-imp-loc.mkxl' is not readable
> > resolvers   > resolving > file 'type-imp-loc.mkxl' is not readable
> > resolvers   > resolving > file 'type-imp-loc.mkiv' is not readable
> > resolvers   > resolving > file './type-imp-loc.mkiv' is not readable
>
resolvers   > resolving > file 'type-imp-loc.tex' is not readable
resolvers   > resolving > file './type-imp-loc.tex' is not readable
resolvers   > resolving > file 'type-imp-loc.tex' is not readable

These are not in distribution at all, naturally missing in
/tex/texmf-cache/luatex-cache/context/.../trees/*.lua


resolvers   > resolving > file 'lm.lfg' is not readable
resolvers   > resolving > file './lm.lfg' is not readable

> > resolvers   > resolving > file 'lpdf-pdx.xml' is not readable
> > resolvers   > resolving > file './lpdf-pdx.xml' is not readable
>

These are in the distribution with same access rights as other files
(linux), also listed in cache files.
Again, same windows and linux.
Don't you have the same result?

Jano
___
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] files not readable

2021-04-10 Thread Hans Hagen

On 4/10/2021 3:10 PM, Jano Kula wrote:

Hello,

updated lmtx (ver: 2021.04.09 19:59 LMTX), paths updated, etc.

\enabletrackers[resolvers.*]
\starttext
Readable?
\stoptext

shows in log some file are "not readable":

resolvers       > resolving > file 'type-imp-loc.mkxl' is not readable
resolvers       > resolving > file './type-imp-loc.mkxl' is not readable
resolvers       > resolving > file 'type-imp-loc.mkxl' is not readable
resolvers       > resolving > file 'type-imp-loc.mkiv' is not readable
resolvers       > resolving > file './type-imp-loc.mkiv' is not readable
[...]
resolvers       > resolving > file 'lpdf-pdx.xml' is not readable
resolvers       > resolving > file './lpdf-pdx.xml' is not readable

I have the same problem with some of my own files (some only), but have 
noticed even files in the distro are "not readable". Same on windows and 
linux. Deleting cache didn't help either. What could be the reason?

no clue ... they are like ano other file right?


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


[NTG-context] files not readable

2021-04-10 Thread Jano Kula
Hello,

updated lmtx (ver: 2021.04.09 19:59 LMTX), paths updated, etc.

\enabletrackers[resolvers.*]
\starttext
Readable?
\stoptext

shows in log some file are "not readable":

resolvers   > resolving > file 'type-imp-loc.mkxl' is not readable
resolvers   > resolving > file './type-imp-loc.mkxl' is not readable
resolvers   > resolving > file 'type-imp-loc.mkxl' is not readable
resolvers   > resolving > file 'type-imp-loc.mkiv' is not readable
resolvers   > resolving > file './type-imp-loc.mkiv' is not readable
[...]
resolvers   > resolving > file 'lpdf-pdx.xml' is not readable
resolvers   > resolving > file './lpdf-pdx.xml' is not readable

I have the same problem with some of my own files (some only), but have
noticed even files in the distro are "not readable". Same on windows and
linux.  Deleting cache didn't help either. What could be the reason?

Regards,
Jano
___
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] Arabic place names

2021-04-10 Thread Arthur Rosendahl
On Sat, Apr 10, 2021 at 09:05:37AM +1000, jbf wrote:
> The font, BTW is
> Arslan Wessam A.ttf

  Do you need to use this font in particular?  I do have problems with
it too.  Replacing it with e. g. DejaVu Sans gives good results.

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