Re: [NTG-context] hash for buffer contents

2022-09-21 Thread Max Chernoff via ntg-context
Hi Pablo,

> Is there any way to get "utilities.sha2.hash512" with the contents of
> the "abc" buffer?

You can use "buffers.getcontent" or "buffers.raw":

   \startbuffer[test]
   One
   Two
   Three
   \stopbuffer[test]
   
   \starttext
   \startluacode
   require("util-sha")
   
   local content = buffers.getcontent("test")
   -- local content = buffers.raw("test") -- same result
   local sha512 = utilities.sha2.hash512(content)
   context(sha512)
   \stopluacode
   \stoptext

Depending on what you're trying to do, the "filter" module may be
helpful here.

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] hash for buffer contents

2022-09-21 Thread Pablo Rodriguez via ntg-context
Dear list,

I have the following sample:

  \ctxlua{require("util-sha")}

  \starttext

  \startbuffer[abc]
  samples
  \stopbuffer

  \cldcontext{utilities.sha2.hash512("buffer-name")}
  \stoptext

Is there any way to get "utilities.sha2.hash512" with the contents of
the "abc" buffer?

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://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] missing space with French quotation

2022-09-21 Thread Peter Münster via ntg-context
Hi,

With the latest ConTeXt version, there is a missing space:

\mainlanguage[fr]
\setcharacterspacing[frenchpunctuation]
\starttext
bla \quotation{OK} bla\\
bla «OK» bla
\startquotation
  Here is missing space
\stopquotation
\stoptext

How could I get back the space before "»" please?

TIA for any help,
-- 
   Peter
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] cannot update ConTeXt to 2022.09.16

2022-09-21 Thread Pablo Rodriguez via ntg-context
On 9/21/22 09:36, Hans Hagen via ntg-context wrote:
> On 9/21/2022 9:03 AM, Marco Patzer via ntg-context wrote:
>> Pablo Rodriguez via ntg-context  wrote:
>>
>>> Could anyone confirm the issue?
>>
>> I can confirm. On a fresh install I'm getting
>>
>>2022.09.11 20:44
> which is fine ... there is no later update ... Mojca and I are setting
> up repositories and that happens in parallel (including an alternative
> installer from git)

Hi Hans,

sorry, but I’m afraid I get from
https://github.com/contextgarden/context/blob/main/tex/context/base/mkxl/context.mkxl#L32
(supossedly comming from you):

  \immutable\edef\contextversion{2022.09.16 14:39}

BTW, it would be great if the installer could include all modules from
https://modules.contextgarden.net.

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://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] cannot update ConTeXt to 2022.09.16

2022-09-21 Thread Hans Hagen via ntg-context

On 9/21/2022 9:03 AM, Marco Patzer via ntg-context wrote:

On Mon, 19 Sep 2022 17:16:19 +0200
Pablo Rodriguez via ntg-context  wrote:


Could anyone confirm the issue?


I can confirm. On a fresh install I'm getting

   2022.09.11 20:44
which is fine ... there is no later update ... Mojca and I are setting 
up repositories and that happens in parallel (including an alternative 
installer from git)


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://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] cannot update ConTeXt to 2022.09.16

2022-09-21 Thread Hans Hagen via ntg-context

On 9/20/2022 5:21 PM, Pablo Rodriguez via ntg-context wrote:

On 9/19/22 18:23, Otared Kavian via ntg-context wrote:

Hi Pablo,

I had the same issue and, as this was discussed a few years or months
ago, after removing the three files with extension « .tma » the
update goes through normally.> On my machine, running MacOS X, I had to remove the 
following files:>

texmf.tma

texmf-osx-64.tma
texmf-context.tma


Hi Otared,

what is really weird, installing both brand-new versions for Win64 and
Linux64 is that I cannot get current latest from 2022.09.16 14:39 (but
only from 2022.09.11 20:44).

What am I doing wrong here?

Many thanks for your help,
only bins were updted (when we released), not the installer ... i need 
to do that when i'm at home and can access the dmz directly (and have 
bandwidth)


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://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] cannot update ConTeXt to 2022.09.16

2022-09-21 Thread Marco Patzer via ntg-context
On Mon, 19 Sep 2022 17:16:19 +0200
Pablo Rodriguez via ntg-context  wrote:

> Could anyone confirm the issue?

I can confirm. On a fresh install I'm getting

  2022.09.11 20:44

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___