Re: [NTG-context] new in upload

2021-06-09 Thread Floris van Manen



On 09/06/2021 20:42, Hans Hagen wrote:


\startoverlayMPgraphic{mp:whatever-6}
     draw anchorcell (1,1)   withpen pencircle scaled 1pt withcolor 
"blue" ;
     fill anchorspan (2,2) (3,5) withpen pencircle scaled 1pt withcolor 
"yellow" ;
     draw anchorcell (2,2)   withpen pencircle scaled 1pt withcolor 
"green" ;
     draw anchorcell (3,3)   withpen pencircle scaled 1pt withcolor 
"red" ;

\stopoverlayMPgraphic




The fill works with multiple cells, but the draw does not:

fill anchorspan (2,2) (3,5) withpen pencircle scaled 1pt withcolor
draw anchorspan (2,2) (3,5) withpen pencircle scaled 1pt withcolor



___
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] new in upload

2021-06-09 Thread Hans Hagen

\starttext

\enabletrackers[localanchor]

\startoverlayMPgraphic{mp:whatever-6}
draw anchorcell (1,1)   withpen pencircle scaled 1pt withcolor 
"blue" ;
fill anchorspan (2,2) (3,5) withpen pencircle scaled 1pt withcolor 
"yellow" ;
draw anchorcell (2,2)   withpen pencircle scaled 1pt withcolor 
"green" ;
draw anchorcell (3,3)   withpen pencircle scaled 1pt withcolor 
"red" ;

\stopoverlayMPgraphic

\starttabulate[synchronize=background,background=mp:whatever-6,format={|l|c|r|}]
\NC test  \NC test  \NC test  \NC \NR
\NC test  \NC test test \NC test  \NC \NR
\NC test test \NC test  \NC test  \NC \NR
\NC test  \NC test  \NC test  \NC \NR
\NC test  \NC test  \NC test test \NC \NR
\stoptabulate

\stoptext

--

-
  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] Calculating Best Box Width?

2021-06-09 Thread Hans Hagen

On 6/9/2021 7:30 PM, Michael Urban wrote:

I am not especially facile with ConTeXt, and it has been years since I did 
anything complex with TeX, so I am hoping someone could help me with this.  The 
following is probably not great code, but it shows what I am trying to do.
The problems are twofold: a benign problem is that I get underfull hbox errors 
(\dontcomplain notwithstanding).  But the other problem is that with text of a 
certain size, the final line is much shorter than the others.  Is there some 
clever way to repeatedly typeset the text (e.g., put it in an hbox, measure the 
width, and repeatedly try .5, .333, .25 of the hbox width until it fits in the 
allocated space)?  How to go about this?



\defineblank[EpigraphDistance][3pt]

\definestartstop[EpigraphText][
style=\ssa,
before={\blank[EpigraphDistance]
   \setupnarrower[left=.25\textwidth,right=0pt]
   \startnarrower[left,right]
   \setupalign[flushright,nothyphenated,broad]
   \dontcomplain
   \noindent},
after={\stopalignment\stopnarrower
   \blank[EpigraphDistance]
   \indenting[next]}]


\long\def\epigraph#1#2#3{%
  \startEpigraphText #1 \par \stopEpigraphText
  \ifx\hfuzz#3\hfuzz
   \rightaligned{\ssa\sl --- #2}
  \else
   \rightaligned{\ssa\sl --- #2, \tf\ssa\symbol[leftquote]#3\symbol[rightquote]}
  \fi
}

\starttext
Testing epigraph

\epigraph{% para
\quotation{My birthday-present!} he whispered to himself, as he had often done
in the endless dark days. \quotation{That's what we\unknown}
}{J.R.R. Tolkien}{The Hobbit}

That was an epigraph.

\stoptext

I assume that when you see some trickery that you can do the rest yourself.


\starttext

First we typeset the box ad one line and then flush it in a vertical box 
(paragraph). We can of course also typeset each time. When we're okay 
with the fit (naturalwidth == less than max width) we quit. We can 
assume that spaces have enough stretch to deal with the close fit.


\protected\def\makeitfit#1#2#3%
  {\begingroup
   \hsize#1\relax
   \setbox\scratchboxone\hbox\bgroup#3\egroup
   \doloop {%
  \setbox\scratchboxtwo\vbox\bgroup\unhcopy\scratchboxone\egroup
  \scratchdimenone\boxlinenw\scratchboxtwo\boxlines\scratchboxtwo
  \scratchdimentwo\boxlinewd\scratchboxtwo\boxlines\scratchboxtwo
  \ifdim\scratchdimenone<\scratchdimentwo
\advance\hsize-#2\relax
  \else
\unhbox\scratchboxone
\exitloop
  \fi
   }%
   \endgroup}

This variant is more neat as it returns the to b eused width. It doesn't 
flush the content.


\protected\def\guessbestwidth#1#2#3% no \protected when no \dimexpr
  {\beginlocalcontrol
   \begingroup
   \hsize#1\relax
   \setbox\scratchboxone\hbox\bgroup#3\egroup
   \doloop {%
  \setbox\scratchboxtwo\vbox\bgroup\unhcopy\scratchboxone\egroup
  \scratchcounter\boxlines\scratchboxtwo % n of lines
  \scratchdimenone\boxlinenw\scratchboxtwo\scratchcounter
  \scratchdimentwo\boxlinewd\scratchboxtwo\scratchcounter
  \ifdim\scratchdimenone<\scratchdimentwo
\advance\hsize-#2\relax
  \else
\exitloop
  \fi
   }%
 % \normalexpanded{\endgroup\endlocalcontrol\the\hsize}}
   \normalexpanded{\endgroup\endlocalcontrol\dimexpr\the\hsize\relax}}

Here are some tests:

\makeitfit{10cm}{1mm}{\input{ward}}

\hsize \guessbestwidth{10cm}{1mm}{\input{ward}}

\input{ward}

\the\guessbestwidth{10cm}{1mm}{\input{ward}}

\stoptext

The mechanisms used are relatively simple:

- good old tex primitives
- few scratch registers
- a loop that we quit
- the boxlines mechanism discussed in some manual (i admit that i 
already had forgotten about it)
- and in the last example some local processing magic which makes sure 
that all these calculations are unseen


One can then of course try to make it more compact:

\protected\def\guessbestwidth#1#2#3%
  {\beginlocalcontrol
   \begingroup
   \hsize#1\relax
   \setbox\scratchboxone\hbox\bgroup#3\egroup
   \doloop {%
  \setbox\scratchboxtwo\vbox\bgroup\unhcopy\scratchboxone\egroup
  \scratchcounter\boxlines\scratchboxtwo

\ifdim\boxlinenw\scratchboxtwo\scratchcounter<\boxlinewd\scratchboxtwo\scratchcounter
\advance\hsize-#2\relax
  \else
\exitloop
  \fi
   }%
   \normalexpanded{\endgroup\endlocalcontrol\dimexpr\the\hsize\relax}}

And of course you now need to wikify it.

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 / 

[NTG-context] Calculating Best Box Width?

2021-06-09 Thread Michael Urban
I am not especially facile with ConTeXt, and it has been years since I did 
anything complex with TeX, so I am hoping someone could help me with this.  The 
following is probably not great code, but it shows what I am trying to do.
The problems are twofold: a benign problem is that I get underfull hbox errors 
(\dontcomplain notwithstanding).  But the other problem is that with text of a 
certain size, the final line is much shorter than the others.  Is there some 
clever way to repeatedly typeset the text (e.g., put it in an hbox, measure the 
width, and repeatedly try .5, .333, .25 of the hbox width until it fits in the 
allocated space)?  How to go about this?



\defineblank[EpigraphDistance][3pt]

\definestartstop[EpigraphText][
   style=\ssa,
   before={\blank[EpigraphDistance]
  \setupnarrower[left=.25\textwidth,right=0pt]
  \startnarrower[left,right]
  \setupalign[flushright,nothyphenated,broad]
  \dontcomplain
  \noindent},
   after={\stopalignment\stopnarrower
  \blank[EpigraphDistance]
  \indenting[next]}]


\long\def\epigraph#1#2#3{%
 \startEpigraphText #1 \par \stopEpigraphText
 \ifx\hfuzz#3\hfuzz
  \rightaligned{\ssa\sl --- #2}
 \else
  \rightaligned{\ssa\sl --- #2, \tf\ssa\symbol[leftquote]#3\symbol[rightquote]}
 \fi
}

\starttext
Testing epigraph

\epigraph{% para
\quotation{My birthday-present!} he whispered to himself, as he had often done
in the endless dark days. \quotation{That's what we\unknown}
}{J.R.R. Tolkien}{The Hobbit}

That was an epigraph.

\stoptext





___
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] Font Maguntia not rendering correctly...

2021-06-09 Thread Henning Hraban Ramm

> Am 08.06.2021 um 19:20 schrieb Willi Egger :
> i have a text from an old publication typeset in Fraktur. — The font I would 
> like to use here is Unifraktur Maguntia. This Font worked before quite well, 
> however now I get wrong renderings. Please refer to the attached MWE.

I had similar problems with other fonts, i.e. single characters being scaled 
and shifted. I remember "8" of Alegreya. Can’t remember how I solved it, but 
wiping the cache and force-reloading fonts often makes sense.

Hraban
___
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] PDF forms not creating proper children

2021-06-09 Thread Taco Hoekwater
Hi,

> On 9 Jun 2021, at 16:41, Pablo Rodriguez  wrote:
> 
> 
> Only mupdf-gl sees the signature annotation after signing it. Acrobat,
> Evince, Okular and xpdf cannot deal with the signature.

Just FYI:

On the Mac, I can sign the processed example using Adobe Acrobat Reader DC,
and it can save a signed pdf as well as re-open it, including showing that
verification bar that says it is a signed pdf.

mupdf-gl ‘sees’ the original field also, but mine is compiled without openssl 
so it cannot actually sign. It happily correctly opens the signed version 
from AR DC, of course.

Apple Preview does not recognize the signature field (well, it has zero
support for signing to begin with, so that is not a surprise).



— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] PDF forms not creating proper children

2021-06-09 Thread Leonard Janis Robert König
On Wed, 2021-06-09 at 16:41 +0200, Pablo Rodriguez wrote:
> On 6/8/21 11:07 PM, Leonard Janis Robert König wrote:
> > On Tue, 2021-06-08 at 17:41 +0200, Pablo Rodriguez wrote:
> > > [...]
> > > Try to open a PDF document signed with mupdf-gl in Acrobat
> > > (Reader or
> > > not). You will see that the signature is wrong.
> > 
> > Hm, I tested with Okular, Firefox and MasterPDF as I don't have
> > Acrobat
> > on Linux [...]
> 

Hi Pablo,

> 
> Acrobat for Linux is available (although the version is too old) at
> ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/9.5.5/enu/.
> 
> Acrobat isn’t able to deal with the signature annotation and with the

yeah, I try to stay away from this pile of security holes :)

> > > Sorry, objects is a very special term in PDF parlance. It has
> > > nothing
> > > to do with signatures.
> 
> Here is a description:
> https://www.adobe.com/content/dam/acom/en/devnet/pdf/PDF32000_2008.pdf#search=4.35
> (link should work with Firefox).

Thanks a bunch!  I wonder why PDF 2.0 still isn't uploaded there, but
probably it's now ISO only(?)

> 
> But you might check yourself with the following sample:
> 
>   \setuppapersize[A10, landscape]
>   \setuplayout[page]
>   \setupinteraction[state=start]
>   \starttext
>   \setupfield[sl][horizontal]
>     [frame=on, width=\textwidth, height=\textheight]
>   \definefield[x][signature][sl]
>   \field[x]
>   \stoptext
> 
> The attached certificate has the password 123456.
> 
> Only mupdf-gl sees the signature annotation after signing it.
> Acrobat,
> Evince, Okular and xpdf cannot deal with the signature.

On my system (but rather recent, Arch-Testing) Okular did see the
signature actually!  However the validator doesn't recognize a thing.

> 
> https://validator.docusign.com/ gives a warning:
> 
>   This document doesn't have any digital signatures.
> 
> I hope it might help,


Luckily(?) I don't have to deal with signatures that much right now,
but my problem is more related to other kinds of forms which seems to
be able to be worked around by not using TABLE.

~ Leo

___
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] PDF forms not creating proper children

2021-06-09 Thread Pablo Rodriguez
On 6/9/21 12:28 PM, Leonard Janis Robert König wrote:
> On Tue, 2021-06-08 at 23:29 +0100, Adam Reviczky wrote:
>> Not sure how good it is, but in the poppler discussion this site was
>> mentioned to verify the signature details:
>> https://validator.docusign.com/
>
> Oh, that's a great tool, thanks!

Many thanks for the link to the tool, Adam.

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] PDF forms not creating proper children

2021-06-09 Thread Pablo Rodriguez
On 6/8/21 11:07 PM, Leonard Janis Robert König wrote:
> On Tue, 2021-06-08 at 17:41 +0200, Pablo Rodriguez wrote:
>> [...]
>> Try to open a PDF document signed with mupdf-gl in Acrobat (Reader or
>> not). You will see that the signature is wrong.
>
> Hm, I tested with Okular, Firefox and MasterPDF as I don't have Acrobat
> on Linux [...]

Hi Leo,

Acrobat for Linux is available (although the version is too old) at
ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/9.5.5/enu/.

Acrobat isn’t able to deal with the signature annotation and with the
>> Sorry, objects is a very special term in PDF parlance. It has nothing
>> to do with signatures.

Here is a description:
https://www.adobe.com/content/dam/acom/en/devnet/pdf/PDF32000_2008.pdf#search=4.35
(link should work with Firefox).

But you might check yourself with the following sample:

  \setuppapersize[A10, landscape]
  \setuplayout[page]
  \setupinteraction[state=start]
  \starttext
  \setupfield[sl][horizontal]
[frame=on, width=\textwidth, height=\textheight]
  \definefield[x][signature][sl]
  \field[x]
  \stoptext

The attached certificate has the password 123456.

Only mupdf-gl sees the signature annotation after signing it. Acrobat,
Evince, Okular and xpdf cannot deal with the signature.

https://validator.docusign.com/ gives a warning:

  This document doesn't have any digital signatures.

I hope it might help,

Pablo
--
http://www.ousia.tk


JohnDoe.pfx
Description: application/pkcs12
___
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] names of cached images

2021-06-09 Thread Jano Kula
Hello Hans,

On Sun, Jun 6, 2021 at 4:56 PM Hans Hagen  wrote:

> On 6/6/2021 1:16 PM, Jano Kula wrote:
> > Hello list,
> >
> > usingconversion=gray.pdf in lmtx the cached images' names have some
> > string in their name. I thought it's a name of random sequence of luatex
> > cache, but the string is the same on other machines and I don't know,
> > where it comes from. mkiv used to have m_k_i_v_ string there.
> >
> > hacker.pdf = source image
> > hacker_jpg_c60ccda70ef92e32d7a6334f31c23259.gray.pdf = cached linux
> > hacker_jpg_c60ccda70ef92e32d7a6334f31c23259.gray.pdf = cached win
> >
> > MWE
> > \starttext
> > \externalfigure[hacker]
> >  [cache=./,
> >  conversion=gray.pdf]
> > \stoptext
> >
> > Is it intended behavior?
> sure, something like that is always intended; it's an md5 of a hash of
> all relevant parameters so that when you change one (say the resolution)
> we now that we need to update
>

Thank you, wiki updated.
J.
___
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] Project structure: Specifying environment in component

2021-06-09 Thread jethro Reuel
Thanks. Maybe a change of how the wiki is worded is needed. 

> On 9 Jun 2021, at 12:07 PM, denis.ma...@unibe.ch wrote:
> 
> 
> I’ve also struggled with this before as you can see if you search the mailing 
> list.
> My question: https://www.mail-archive.com/ntg-context@ntg.nl/msg97763.html
> Wolfgang’s answer : 
> https://www.mail-archive.com/ntg-context@ntg.nl/msg97775.html
>  
> We should probably change the wiki to make it clear that no inheritance of 
> environments happens here.
> 
> Denis
>  
> Von: ntg-context  Im Auftrag von mastermind_ x
> Gesendet: Mittwoch, 9. Juni 2021 13:36
> An: ntg-context@ntg.nl
> Betreff: [NTG-context] Project structure: Specifying environment in component
>  
> Hello everyone,
>  
> I am creating a project of notes across different areas of mathematics I am 
> studying and the structure looks like this:
>  
> env_notes.tex
> project_notes.tex
> geogroups/groups-prd_geometry-groups.tex
> geogroups/groups-c_chapter1.tex
> 
> 
> I am following this wiki: https://wiki.contextgarden.net/Project_structure
> 
> 
> My question is: Why do I need to specify 
> \environment env_notes
> before It works at the component level? The wiki didn’t say that. Plus it is 
> already specified at the product level. Thanks.
> 
> 
> ~Jethro
> ___
> 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] Project structure: Specifying environment in component

2021-06-09 Thread denis.maier
I’ve also struggled with this before as you can see if you search the mailing 
list.
My question: https://www.mail-archive.com/ntg-context@ntg.nl/msg97763.html
Wolfgang’s answer : 
https://www.mail-archive.com/ntg-context@ntg.nl/msg97775.html

We should probably change the wiki to make it clear that no inheritance of 
environments happens here.

Denis

Von: ntg-context  Im Auftrag von mastermind_ x
Gesendet: Mittwoch, 9. Juni 2021 13:36
An: ntg-context@ntg.nl
Betreff: [NTG-context] Project structure: Specifying environment in component

Hello everyone,

I am creating a project of notes across different areas of mathematics I am 
studying and the structure looks like this:

env_notes.tex
project_notes.tex
geogroups/groups-prd_geometry-groups.tex
geogroups/groups-c_chapter1.tex


I am following this wiki: https://wiki.contextgarden.net/Project_structure


My question is: Why do I need to specify
\environment env_notes
before It works at the component level? The wiki didn’t say that. Plus it is 
already specified at the product level. Thanks.


~Jethro
___
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] Project structure: Specifying environment in component

2021-06-09 Thread mastermind_ x
Hello everyone,

I am creating a project of notes across different areas of mathematics I am 
studying and the structure looks like this:

env_notes.tex
project_notes.tex
geogroups/groups-prd_geometry-groups.tex
geogroups/groups-c_chapter1.tex

I am following this wiki: https://wiki.contextgarden.net/Project_structure

My question is: Why do I need to specify 
\environment env_notes
before It works at the component level? The wiki didn’t say that. Plus it is 
already specified at the product level. Thanks.

~Jethro___
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] PDF forms not creating proper children

2021-06-09 Thread Leonard Janis Robert König
On Tue, 2021-06-08 at 23:29 +0100, Adam Reviczky wrote:
> Not sure how good it is, but in the poppler discussion this site was
> mentioned to verify the signature details:  
> https://validator.docusign.com/
> 
> I have tried using with poppler's pdfsig and Okular.
> 

Oh, that's a great tool, thanks!

Leo


> Adam
> 
> On Tue, Jun 8, 2021 at 10:14 PM Leonard Janis Robert König <
> l...@ljrk.org> wrote:
> > On Tue, 2021-06-08 at 17:41 +0200, Pablo Rodriguez wrote:
> > > On 6/7/21 10:43 PM, Leonard Janis Robert König wrote:
> > > > Hi Adam, Hi Pablo,
> > > > 
> > > > I just noticed your replies, sorry for the late answer!
> > > > 
> > > > I could sign forms with both okular as well as mupdf just fine,
> > > > although the behavior is different.  The former assumes that
> > > > the
> > > > field
> > > > is already an existing signature and segfaults when you look at
> > the
> > > > properties, but cann successfully add another signature using
> > > > the
> > > > "Tools" menu.
> > > 
> > 
> > Hi Pablo,
> > 
> > > I’m afraid that I don’t use Okular.
> > > 
> > > >  With the latter you can click on the form field to
> > > > trigger a menu to select the signature you want to sign with,
> > > > and
> > > > it
> > > > "replaces" the "empty" signature generated by ConTeXt.  Both
> > > > work
> > > > fine,
> > > > even with my newer ConTeXt.
> > > 
> > > mupdf-gl signs the document, but in a way that only mupdf-gl
> > > understands it.
> > > 
> > > Try to open a PDF document signed with mupdf-gl in Acrobat
> > > (Reader
> > or
> > > not). You will see that the signature is wrong.
> > 
> > Hm, I tested with Okular, Firefox and MasterPDF as I don't have
> > Acrobat
> > on Linux, and both understand the signature, which is why I thought
> > it'd be correct.
> > 
> > > 
> > > > > On Sun, May 2, 2021 at 5:50 PM Pablo Rodriguez 
> > > > > wrote:
> > > > > > [...]
> > > > > > From my experience, only Acrobat deals with child objects
> > > > > > in
> > > > > > signatures
> > > > > > generating a valid signature (and rewriting the two objects
> > > > > > into a
> > > > > > single one).
> > > > 
> > > > As mentioned above, it seems that mupdf (now?) actually
> > > > rewrites
> > > > "both"
> > > > signatures into one, however Okular doesn't.
> > > 
> > > Sorry, objects is a very special term in PDF parlance. It has
> > nothing
> > > to
> > > do with signatures.
> > > 
> > > Just in case it might help,
> > 
> > Ah, I see.  I'm still a bit unsure what to make of the "fields
> > nested
> > in TABLEs" issue, but maybe further debugging will show at some
> > point.
> > 
> > ~ Leo
> > 
> > ___
> > __
> > __
> > 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
> _
> __


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