Re: [NTG-context] PDF forms not creating proper children

2021-05-01 Thread Adam Reviczky
Hi,

I cannot get the signature working either, but almost certain it did work
in February this year, as I have done some with MKIV.

>From the test suite:

fields-007.tex
\nopdfcompression
\setupinteraction[state=start]
\starttext
\definefield[x][signature]
\field[x]
\stoptext

Using the https://live.contextgarden.net/ with (LuaTeX 2.06 20200630 +
ConTeXt MkIV 2020.06.30 17:30) looks good, but evince does not display the
field.

Adam

On Fri, Apr 23, 2021 at 8:52 PM Leonard Janis Robert König 
wrote:

> Hello,
>
> I currently try to build a document with AcroForms, e.g., the examples
> from [1] also linked in the Wiki.  The most recent example is in the
> form/ subdirectory and dated mid 2020.  However, when building the
> file(s) with my ConTeXt distribution the file created is broken, in
> comparison to the PDF checked in into the Git.
>
> The more obvious difference is that the PDF in the repository can be
> filled in the Firefox 89 beta, while the other PDF doesn't even display
> the fields as forms.  Running pdfinfo also yields:
>
> > Syntax Error: Form field child is not a dictionary
>
> I suspect that due to some breakage the forms children aren't set in
> the AcroForms dictionary anymore?  My ConTeXt versions are:
>
> # ArchLinux Repos
>
> context --version
> mtx-context | ConTeXt Process Management 1.04
> mtx-context |
> mtx-context | main context file: /usr/share/texmf-
> dist/tex/context/base/mkiv/context.mkiv
> mtx-context | current version: 2021.03.05 19:11
> mtx-context | main context file: /usr/share/texmf-
> dist/tex/context/base/mkxl/context.mkxl
> mtx-context | current version: 2021.03.05 19:11
>
> # Debian Buster Repos
> mtx-context | ConTeXt Process Management 1.02
> mtx-context |
> mtx-context | main context file:
> /usr/share/texmf/tex/context/base/mkiv/context.mkiv
> mtx-context | current version: 2018.04.04 00:51
>
> # Docker Image: Current
>
> mtx-context | ConTeXt Process Management 1.03
> mtx-context |
> mtx-context | main context file: /context/tex/texmf-
> context/tex/context/base/mkiv/context.mkiv
> mtx-context | current version: 2020.01.30 14:13
> mtx-context | main context file: /context/tex/texmf-
> context/tex/context/base/mkiv/context.mkxl
> mtx-context | current version: 2020.01.30 14:13
>
> # Docker Image: Beta
> mtx-context | ConTeXt Process Management 1.03
> mtx-context |
> mtx-context | main context file: /context/tex/texmf-
> context/tex/context/base/mkiv/context.mkiv
> mtx-context | current version: 2020.01.30 14:13
> mtx-context | main context file: /context/tex/texmf-
> context/tex/context/base/mkiv/context.mkxl
> mtx-context | current version: 2020.01.30 14:13
>
> # Docker Image: LMTX
> mtx-context | ConTeXt Process Management 1.04
> mtx-context |
> mtx-context | main context file: /context/tex/texmf-
> context/tex/context/base/mkiv/context.mkiv
> mtx-context | current version: 2021.04.14 22:58
> mtx-context | main context file: /context/tex/texmf-
> context/tex/context/base/mkxl/context.mkxl
> mtx-context | current version: 2021.04.14 22:58
>
> # Docker Image: Beta from 2019-09
> mtx-context | ConTeXt Process Management 1.03
> mtx-context |
> mtx-context | main context file: /context/tex/texmf-
> context/tex/context/base/mkiv/context.mkiv
> mtx-context | current version: 2019.09.10 20:03
> mtx-context | main context file: /context/tex/texmf-
> context/tex/context/base/mkiv/context.mkxl
> mtx-context | current version: 2019.09.10 20:03
>
> The ConTeXt version of the checked in file on GitHub is (according to
> pdfinfo):
>
> > Creator:LuaTeX 1.10 7138 + ConTeXt MkIV 2019.08.20 17:20
> > Producer:   macOS Version 10.14.6 (Build 18G5033) Quartz
> PDFContext
>
> I also remebered another time were I toyed around with it and indeed
> that PDF also had broken form field children:
>
>
> > Creator:LuaTeX 1.12 7306 + ConTeXt MkIV 2020.03.10 14:44
> > Producer:   LuaTeX-1.12
>
> A broken version that I built locally using the :current IslandOfTeX
> [2] can be found at [3].
>
> The version difference between the broken and not-broken PDFs hints
> that the breakage occured between 2019.08.20 and 2019.09.10-beta, while
> the Debian breackage might be due to a backport(?)
>
> Alternatively, this could just be a mistake on my side?
>
> Cheers
> Leo König
>
>
> [1]: https://github.com/fiee/ConTeXt
> [2]: https://gitlab.com/islandoftex/images/context/
> [3]:
> https://mega.nz/file/ThcghTqb#JqRCSsd59bBbMgTMr3ahaPdU4LPlZd0cpA3ZFBJLJ3A
>
>
>
>
> ___
> 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/

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

2021-05-01 Thread Nicola
On 2021-05-01, Mojca Miklavec  wrote:
> On Fri, 30 Apr 2021 at 20:53, Nicola wrote:
>> 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'
>
> This sounds like a missing or misconfigured texmfcnf.lua (which should
> be next to texmf.cnf).
> This would need to be handled by the distribution (Alpine Linux devs).
>
> Can you try to locate both files and share the contents? (There may
> also be multiple copies of them.)

I report below the content of the two files, as they are in TeX Live
2020 (I have switched to `docker pull alpine`, as suggested in another
post, in which I can install Tex Live 2020).

Nicola


~ # find / -name texmfcnf.lua
/usr/share/texmf-dist/web2c/texmfcnf.lua
~ # cat /usr/share/texmf-dist/web2c/texmfcnf.lua
-- public domain

-- ConTeXt needs a properly expanded TEXMFLOCAL, so here is a
-- bit of lua code to make that happen

local texmflocal = resolvers.prefixes.selfautoparent();
texmflocal = string.gsub(texmflocal, "20%d%d$", "texmf-local");

return {

type= "configuration",
version = "1.1.0",
date= "2012-05-24",
time= "12:12:12",
comment = "ConTeXt MkIV configuration file",
author  = "Hans Hagen, PRAGMA-ADE, Hasselt NL",

content = {

-- Originally there was support for engines and progname but I don't 
expect
-- other engines to use this file, so first engines were removed. After 
that
-- if made sense also to get rid of progname. At some point specific 
formats
-- will be supported but then as a subtable with fallbacks, which 
sounds more
-- natural. Also, at some point the paths will become tables. For the 
moment
-- I don't care too much about it as extending is easy.

variables = {

-- The following variable is predefined (but can be overloaded) and 
in
-- most cases you can leve this one untouched. The built-in 
definition
-- permits relocation of the tree.
--
-- TEXMFCNF = 
"{selfautodir:,selfautoparent:}{,{/share,}/texmf{-local,}/web2c}"
--
-- more readable than "selfautoparent:{/texmf{-local,}{,/web2c},}}" 
is:
--
-- TEXMFCNF = {
-- "selfautoparent:/texmf-local",
-- "selfautoparent:/texmf-local/web2c",
-- "selfautoparent:/texmf-dist",
-- "selfautoparent:/texmf/web2c",
-- "selfautoparent:",
-- }

-- only used for FONTCONFIG_PATH & TEXMFCACHE in TeX Live

TEXMFSYSVAR = "selfautoparent:texmf-var",
TEXMFVAR= "home:.texlive2020/texmf-var",

-- We have only one cache path but there can be more. The first 
writable one
-- will be chosen but there can be more readable paths.

TEXMFCACHE  = "$TEXMFSYSVAR;$TEXMFVAR",
TEXMFCONFIG = "home:.texlive2020/texmf-config",

-- I don't like this texmf under home and texmf-home would make more
-- sense. One never knows what installers put under texmf anywhere 
and
-- sorting out problems will be a pain. But on the other hand ... 
home
-- mess is normally under the users own responsibility.
--
-- By using prefixes we don't get expanded paths in the cache 
__path__
-- entry. This makes the tex root relocatable.

TEXMFOS = "selfautodir:",
TEXMFDIST   = "selfautoparent:texmf-dist",

TEXMFLOCAL  = texmflocal,
TEXMFSYSCONFIG  = "selfautoparent:texmf-config",
TEXMFFONTS  = "selfautoparent:texmf-fonts",
TEXMFPROJECT= "selfautoparent:texmf-project",

TEXMFHOME   = "home:texmf",
 -- TEXMFHOME   = os.name == "macosx" and "home:Library/texmf" or 
"home:texmf",

-- We need texmfos for a few rare files but as I have a few more 
bin trees
-- a hack is needed. Maybe other users also have texmf-platform-new 
trees.

TEXMF   = 
"{$TEXMFCONFIG,$TEXMFHOME,!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!!$TEXMFDIST}",

TEXFONTMAPS = 
".;$TEXMF/fonts/data//;$TEXMF/fonts/map/{pdftex,dvips}//",
ENCFONTS= 
".;$TEXMF/fonts/data//;$TEXMF/fonts/enc/{dvips,pdftex}//",
VFFONTS = ".;$TEXMF/fonts/{data,vf}//",
TFMFONTS= ".;$TEXMF/fonts/{data,tfm}//",
T1FONTS = ".;$TEXMF/fonts/{data,type1}//;$OSFONTDIR",
AFMFONTS= ".;$TEXMF/fonts/{data,afm}//;$OSFONTDIR",
TTFONTS = 

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

2021-05-01 Thread Nicola
On 2021-05-01, Bruce Horrocks  wrote:
>> On 30 Apr 2021, at 19:53, Nicola  wrote:
>>
>> 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
>
> Why is your first line not
>
>$ docker pull alpine

I was following the documentation of iSH, which is where I want to use
the container eventually. But I may probably use the alpine image as
well, which is more up to date and allows me to install TeX Live 2020.

> I would start with that then test each new step at the interactive
> shell before adding to the compose file and moving onto the next step.

Unfortunately, even with the image above I get the same errors.

Nicola

___
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] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-01 Thread Nicola
On 2021-05-01, Pablo Rodriguez  wrote:
> On 4/30/21 8:53 PM, Nicola wrote:
>> 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:
>> [...]
>> Anyone running ConTeXt on Alpine? Any idea what is wrong?
>
> Hi Nicola,
>
> I don’t run Alpine or Docker, but this might help you.
>
>   mtxrun --script cache --erase &&  mtxrun --generate

Unfortunately, mtxrun --script cache results in the same error I have
already posted.

> BTW, TeX Live 2021 is already available (https://www.tug.org/texlive/).

I am using the release I can get from the package manager. It seems that
Tex Live 2021 has not landed in Alpine's official repos yet.

Nicola

___
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] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-01 Thread Pablo Rodriguez
On 4/30/21 8:53 PM, Nicola wrote:
> 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:
> [...]
> Anyone running ConTeXt on Alpine? Any idea what is wrong?

Hi Nicola,

I don’t run Alpine or Docker, but this might help you.

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

BTW, TeX Live 2021 is already available (https://www.tug.org/texlive/).

Just in case it helps,

Pablo
--
http://www.ousia.tk
___
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] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-01 Thread Mojca Miklavec
On Fri, 30 Apr 2021 at 20:53, Nicola wrote:
>
> 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'

This sounds like a missing or misconfigured texmfcnf.lua (which should
be next to texmf.cnf).
This would need to be handled by the distribution (Alpine Linux devs).

Can you try to locate both files and share the contents? (There may
also be multiple copies of them.)

Mojca
___
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] issue with Public Sans

2021-05-01 Thread Pablo Rodriguez
Dear listt,

I have problems with current latest (from 2021.04.29 23:09) to get
proper character spacing using Public Sans
(https://public-sans.digital.gov/):

  \definefontfamily[mainface][rm]
  [Public Sans]
  \setupbodyfont[mainface]
  \starttext
  \doloopoverlist{\rm,\it,\bf,\bi}
{\startpar\recursestring\input zapf\stoppar}
  \stoptext

Could anyone confirm this? I wonder whether the typeface itself is
missing something.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-01 Thread Bruce Horrocks


> On 30 Apr 2021, at 19:53, Nicola  wrote:
> 
> 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

Why is your first line not

   $ docker pull alpine

?

I would start with that then test each new step at the interactive shell before 
adding to the compose file and moving onto the next step.
—
Bruce Horrocks
Hampshire, UK

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