[NTG-context] Re: externalfigure crashed

2023-12-06 Thread Pablo Rodriguez via ntg-context
On 12/4/23 20:44, Hans Hagen via ntg-context wrote:
> On 12/4/2023 5:38 PM, Pablo Rodriguez via ntg-context wrote:
>>> […]
>> Does the above mean that ConTeXt will be able to sign PDF documents with
>> digital certificates?
> Well, that's what singing is, right? The problem is actually less in the
> signing than in the certificates themselves.
>
> Basically one can sign (with some certificate) and then validate.

Many thanks for your explanation, Hans.

These are great news. I wonder whehter it would be feasible to extend
this to use smart cards (through Firefox).

Many thanks the new implementations,

Pablo

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: externalfigure crashed

2023-12-04 Thread Hans Hagen via ntg-context

On 12/4/2023 5:38 PM, Pablo Rodriguez via ntg-context wrote:

On 11/24/23 18:16, Hans Hagen via ntg-context wrote:

[…]
will do for now ... i can't upload a new installer .. pending the built;
the advantage is that i can do some experiments that would otherwise
break the current version (making compact font mode very close to
normal, pdf signing […]


Sorry, Hans, if I am missing the point.

Does the above mean that ConTeXt will be able to sign PDF documents with
digital certificates?
Well, that's what singing is, right? The problem is actually less in the 
signing than in the certificates themselves.


Basically one can sign (with some certificate) and then validate.


% sign-001.tex

\setupinteraction[state=start]

\definefield[signature][signed]

\defineoverlay[signature][my signature]

\starttext
\startTEXpage[offset=1ts,frame=on,framecolor=darkblue]
sign: \inframed
  [background=signature,framecolor=darkred]
  {\fieldbody[signature][width=3cm,option=hidden]}
\stopTEXpage
\stoptext

after neing processed:

mtxrun --script pdf --sign --certificate=sign-001.pem --password=test 
sign-001 (--library)


and:

mtxrun --script pdf --validate --certificate=sign-001.pem 
--password=test sign-001 (--library)


etc. works here.

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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: externalfigure crashed

2023-12-04 Thread Pablo Rodriguez via ntg-context
On 11/24/23 18:16, Hans Hagen via ntg-context wrote:
> […]
> will do for now ... i can't upload a new installer .. pending the built;
> the advantage is that i can do some experiments that would otherwise
> break the current version (making compact font mode very close to
> normal, pdf signing […]

Sorry, Hans, if I am missing the point.

Does the above mean that ConTeXt will be able to sign PDF documents with
digital certificates?

Many thanks for your help,

Pablo
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: externalfigure crashed

2023-12-03 Thread Fabrice Couvreur
Hi Hans,
It works, thank you very much.

Le sam. 2 déc. 2023 à 16:24, Hans Hagen  a écrit :

> On 12/2/2023 4:57 PM, Fabrice Couvreur wrote:
> > Hi Hans,
> > I have the same problem and definitely need to use \externalfigure[]
> > this weekend. In which file should this patch be added ?
> > Thanks.
> cont-new.mkxl
>
> -
>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 /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: externalfigure crashed

2023-12-02 Thread Hans Hagen

On 12/2/2023 4:57 PM, Fabrice Couvreur wrote:

Hi Hans,
I have the same problem and definitely need to use \externalfigure[] 
this weekend. In which file should this patch be added ?

Thanks.

cont-new.mkxl

-
  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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: externalfigure crashed

2023-12-02 Thread Fabrice Couvreur
Hi Hans,
I have the same problem and definitely need to use \externalfigure[] this
weekend. In which file should this patch be added ?
Thanks.
Fabrice

Le ven. 24 nov. 2023 à 17:16, Hans Hagen via ntg-context 
a écrit :

> On 11/22/2023 10:02 PM, Hans van der Meer via ntg-context wrote:
> > Here too, I find 'undefined' from \meaning\expandeddetokenize
> \ifdefined\expandeddetokenize\else
> \let\expandeddetokenize\detokenize
> \fi
>
> will do for now ... i can't upload a new installer .. pending the built;
> the advantage is that i can do some experiments that would otherwise
> break the current version (making compact font mode very close to
> normal, pdf signing, adapting to the latest validation, math magick,
> etc); so fixes have to wait (but are done anyway)
>
> 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 /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: externalfigure crashed

2023-11-24 Thread Hans Hagen via ntg-context

On 11/22/2023 10:02 PM, Hans van der Meer via ntg-context wrote:

Here too, I find 'undefined' from \meaning\expandeddetokenize

\ifdefined\expandeddetokenize\else
\let\expandeddetokenize\detokenize
\fi

will do for now ... i can't upload a new installer .. pending the built; 
the advantage is that i can do some experiments that would otherwise 
break the current version (making compact font mode very close to 
normal, pdf signing, adapting to the latest validation, math magick, 
etc); so fixes have to wait (but are done anyway)


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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: externalfigure crashed

2023-11-22 Thread Hans van der Meer via ntg-context
Here too, I find 'undefined' from \meaning\expandeddetokenize

yours sincerely
dr. Hans van der Meer



> On 22 Nov 2023, at 21:55, Aditya Mahajan  wrote:
> 
> On Wed, 22 Nov 2023, Wolfgang Schuster wrote:
> 
>> Hans van der Meer schrieb am 22.11.2023 um 21:22:
>>> The problem persists. Here the new logfile.
>> 
>> 1. What is the version of your Luametatex binary?
>> 
>> luametatex --version
>> This is LuaMetaTeX, Version 2.10.11
> 
> For me, it is the same:
> 
> This is LuaMetaTeX, Version 2.10.11
> 
>> 
>> 2. What do you get in your log-file with the following example!
>> 
>> \starttext
>> \show\expandeddetokenize
>> \stoptext
>> 
>> On my system I can find the following line:
>> 
>> > \expandeddetokenize=primitive \expandeddetokenize
> 
> \expandeddetokenize=undefined
> 
> Not sure why this is the case!
> 
> Aditya___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: externalfigure crashed

2023-11-22 Thread Aditya Mahajan
On Wed, 22 Nov 2023, Wolfgang Schuster wrote:

> Hans van der Meer schrieb am 22.11.2023 um 21:22:
> > The problem persists. Here the new logfile.
> 
> 1. What is the version of your Luametatex binary?
> 
>     luametatex --version
>     This is LuaMetaTeX, Version 2.10.11

For me, it is the same:

This is LuaMetaTeX, Version 2.10.11

> 
> 2. What do you get in your log-file with the following example!
> 
>     \starttext
>     \show\expandeddetokenize
>     \stoptext
> 
> On my system I can find the following line:
> 
>     > \expandeddetokenize=primitive \expandeddetokenize

\expandeddetokenize=undefined

Not sure why this is the case!

Aditya___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: externalfigure crashed

2023-11-22 Thread Aditya Mahajan
On Wed, 22 Nov 2023, Wolfgang Schuster wrote:

> Hans van der Meer via ntg-context schrieb am 22.11.2023 um 20:55:
> > When \externalfigure could not find the file it used to graciously place a
> > rectangle kindly telling the user that the file has not been found.
> > But now, however, it seems the default in this case is a crash. Very
> > annoying in comparison with the earlier behaviour.
> > I might make a mistake, but the MWE is as simple as can be.
> 
> Can you update your ConTeXt installation and check if the error remains,
> I tries to your example on my machine (Windows 11) and wasn't able
> to reproduce the problem.

I get the same error on linux. I am using 2023.09.26 which appears to be the 
latest version available for linux.

The issue is that \expandeddetokenize used in the definition of 
grph_include_replacement is not defined.

A simple \def\expandeddetokenize{\relax} fixes the error, but clearly that is 
not a proper solution.

Aditya
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: externalfigure crashed

2023-11-22 Thread Wolfgang Schuster

Hans van der Meer schrieb am 22.11.2023 um 21:22:

The problem persists. Here the new logfile.


1. What is the version of your Luametatex binary?

    luametatex --version
    This is LuaMetaTeX, Version 2.10.11


2. What do you get in your log-file with the following example!

    \starttext
    \show\expandeddetokenize
    \stoptext

On my system I can find the following line:

    > \expandeddetokenize=primitive \expandeddetokenize


Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: externalfigure crashed

2023-11-22 Thread Wolfgang Schuster

Hans van der Meer via ntg-context schrieb am 22.11.2023 um 20:55:
When \externalfigure could not find the file it used to graciously 
place a rectangle kindly telling the user that the file has not been 
found.
But now, however, it seems the default in this case is a crash. Very 
annoying in comparison with the earlier behaviour.

I might make a mistake, but the MWE is as simple as can be.


Can you update your ConTeXt installation and check if the error remains,
I tries to your example on my machine (Windows 11) and wasn't able
to reproduce the problem.

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___