Re: [NTG-context] problem with MkIV/TeXlive/TEXMFCACHE

2021-08-30 Thread luigi scarso via ntg-context
On Mon, Aug 30, 2021 at 12:48 PM Rainer J.H. Brandt via ntg-context <
ntg-context@ntg.nl> wrote:

> luigi scarso via ntg-context writes:
> > > > On Fri, Aug 27, 2021 at 10:35 AM Rainer J.H. Brandt via ntg-context <
> > > > ntg-context@ntg.nl> wrote:
> > > > > The TeXlive documentation says that ConTeXt uses TEXMFCACHE,
> > > > > which uses the default $TEXMFSYSVAR;$TEXMFVAR in my texmf.cnf.
> > > > > My TEXMFSYSVAR is /var/opt/texlive, but ConTeXt doesn't use it.
> > >
> > hm, my
> > $> mtxrun --variables
> > says
> > resolvers   | lists | TEXMFCACHE
> > resolvers   | lists |   env: unset
> > resolvers   | lists |   var: TEXMFCACHE
> > resolvers   | lists |   exp:
> > selfautoparent:texmf-var;home:.texlive2021/texmf-var
> >
> > and it's ok. So perhaps  your selfautoparent it's not ok.
>
> I will check that.
>
> But, as I said, my texmf.cnf sets TEXMFCACHE to $TEXMFSYSVAR;$TEXMFVAR,
> and TEXMFSYSVAR is /var/opt/texlive.  Why is that ignored?
>

look at
 texmfcnf.lua

-- 
luigi
___
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] problem with MkIV/TeXlive/TEXMFCACHE

2021-08-30 Thread luigi scarso via ntg-context
On Mon, Aug 30, 2021 at 11:49 AM Rainer J.H. Brandt via ntg-context <
ntg-context@ntg.nl> wrote:

> Hello Luigi,
>
> you asked:
> > On Fri, Aug 27, 2021 at 10:35 AM Rainer J.H. Brandt via ntg-context <
> > ntg-context@ntg.nl> wrote:
> >
> > > Dear experts,
> > >
> > > I want to use ConTeXt MkIV as supplied by TeXlive 2021.
> > > After installation, I ran "mtxrun --generate".
> > > I also tried "context --generate".
> > > Both create output in the wrong place.
> > >
> > > The TeXlive documentation says that ConTeXt uses TEXMFCACHE,
> > > which uses the default $TEXMFSYSVAR;$TEXMFVAR in my texmf.cnf.
> > > My TEXMFSYSVAR is /var/opt/texlive, but ConTeXt doesn't use it.
> > > Instead, it creates /opt/texmf-var and creates its output there.
> > > I don't understand why it used that path; I've never used or configured
> > > it.
> > >
> > > How can I convice ConTeXt to use TEXMFSYSVAR?
> > > [...]
> >
> > What does
> > $> tlmgr conf
> > say ?
>
> The output is appended below and looks reasonable.  In particular, it shows
> that I installed under /opt/local/share/texlive and doesn't mention the
> "mtxrun --generate" output path /opt/texmf-var at all.
>
> Please note that I don't use tlmgr and also that I didn't use the TeX Live
> installer.  I built the binaries from their sources and then installed
> the rest from the texmf archive file. I use other engines on a daily basis,
> mostly pdflatex, and they work flawlessly.
>
> Thanks, Rainer
>
>
hm, my
$> mtxrun --variables
says
resolvers   | lists | TEXMFCACHE
resolvers   | lists |   env: unset
resolvers   | lists |   var: TEXMFCACHE
resolvers   | lists |   exp:
selfautoparent:texmf-var;home:.texlive2021/texmf-var

and it's ok. So perhaps  your selfautoparent it's not ok.


-- 
luigi
___
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] problem with MkIV/TeXlive/TEXMFCACHE

2021-08-27 Thread luigi scarso via ntg-context
On Fri, Aug 27, 2021 at 10:35 AM Rainer J.H. Brandt via ntg-context <
ntg-context@ntg.nl> wrote:

> Dear experts,
>
> I want to use ConTeXt MkIV as supplied by TeXlive 2021.
> After installation, I ran "mtxrun --generate".
> I also tried "context --generate".
> Both create output in the wrong place.
>
> The TeXlive documentation says that ConTeXt uses TEXMFCACHE,
> which uses the default $TEXMFSYSVAR;$TEXMFVAR in my texmf.cnf.
> My TEXMFSYSVAR is /var/opt/texlive, but ConTeXt doesn't use it.
> Instead, it creates /opt/texmf-var and creates its output there.
> I don't understand why it used that path; I've never used or configured
> it.
>
> How can I convice ConTeXt to use TEXMFSYSVAR?
>
> Or is this a question for the TeXlive folks?
>
> Thanks for looking at this.
>


What does
$> tlmgr conf
say ?

-- 
luigi
___
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] ConTeXt exporter for Org Mode

2021-08-10 Thread luigi scarso via ntg-context
On Tue, Aug 10, 2021 at 10:01 AM Jason Ross via ntg-context <
ntg-context@ntg.nl> wrote:

> Hello,
>
> I have developed a ConTeXt exporter for Org Mode. It is available at
> https://github.com/Jason-S-Ross/ox-context
>
> The exporter provides custom environments for each Org Mode entity
> in an effort to make customization easier, in contrast to the Pandoc
> exporter which uses built-in environments for document elements.
>
> I appreciate any feedback.
>

Perhaps just add a README.md that explains how to install it,  and a short
example.


-- 
luigi
___
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] lmtx upload

2021-06-24 Thread luigi scarso
On Thu, Jun 24, 2021 at 7:29 PM Hans Hagen  wrote:

> Hi,
>
> I uploaded a new version. I got sidetracked by an experiment. We can
> read from zip files, but as I had some tar archives I wondered if we
> could read from them. They happened to be compressed. It uses an already
> present infrastructure (early mkiv I played a bit with reading from zip
> files).
>
>
libarchive looks quite useful
http://libarchive.org/
(see
https://docs.microsoft.com/en-us/virtualization/community/team-blog/2017/20171219-tar-and-curl-come-to-windows
)



-- 
luigi
___
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] [#1] CJK regression? | lmtx-20210613 .

2021-06-17 Thread luigi scarso
On Thu, Jun 17, 2021 at 11:33 AM luigi scarso 
wrote:

>
>
> On Wed, Jun 16, 2021 at 10:53 PM Alan Braslau 
> wrote:
>
>> On Wed, 16 Jun 2021 17:14:22 +0200
>> luigi scarso  wrote:
>>
>> > > Did you try this one?
>> > >
>> > > http://www.xpdfreader.com/download.html
>> >
>> >
>> > I doesn't workunder ubuntu 20.04
>> > libicudata.so.56 => not found
>> > I have libicudata.so.66
>>
>> The ubuntu package must be built incorrectly, for I have
>> /usr/local/lib/libicudata.so.69
>> and xpdf works fine (freebsd).
>>
>> Alan
>>
>
>
> Hm, I think you  have libicui18n.so.56 installed somewhere or your copy is
> using the "69" version.
>
> $> export LD_DEBUG=all; ./xpdf &>out ; unset LD_DEBUG
> says
>  1525647: file=libicui18n.so.56 [0];  needed by
> /tmp/xpdf/xpdf/XpdfReader-linux64-4.03/lib/libQt5Core.so.5 [0]
>   1525647: find library=libicui18n.so.56 [0]; searching
> :
> :
> :
> 1525647:
> ./xpdf.bin: error while loading shared libraries: libicui18n.so.56: cannot
> open shared object file: No such file or directory
>
>
OK, in my case it seems that I don't need the  libQt*so under lib/. So I
have renamed it as _lib, and now xpdf runs ok.

-- 
luigi
___
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] [#1] CJK regression? | lmtx-20210613 .

2021-06-17 Thread luigi scarso
On Wed, Jun 16, 2021 at 10:53 PM Alan Braslau 
wrote:

> On Wed, 16 Jun 2021 17:14:22 +0200
> luigi scarso  wrote:
>
> > > Did you try this one?
> > >
> > > http://www.xpdfreader.com/download.html
> >
> >
> > I doesn't workunder ubuntu 20.04
> > libicudata.so.56 => not found
> > I have libicudata.so.66
>
> The ubuntu package must be built incorrectly, for I have
> /usr/local/lib/libicudata.so.69
> and xpdf works fine (freebsd).
>
> Alan
>


Hm, I think you  have libicui18n.so.56 installed somewhere or your copy is
using the "69" version.

$> export LD_DEBUG=all; ./xpdf &>out ; unset LD_DEBUG
says
 1525647: file=libicui18n.so.56 [0];  needed by
/tmp/xpdf/xpdf/XpdfReader-linux64-4.03/lib/libQt5Core.so.5 [0]
  1525647: find library=libicui18n.so.56 [0]; searching
:
:
:
1525647:
./xpdf.bin: error while loading shared libraries: libicui18n.so.56: cannot
open shared object file: No such file or directory


-- 
luigi
___
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] [#1] CJK regression? | lmtx-20210613 .

2021-06-16 Thread luigi scarso
On Tue, Jun 15, 2021 at 9:00 PM Hans Hagen  wrote:

> On 6/15/2021 8:47 PM, luigi scarso wrote:
> >
> >
> > On Tue, Jun 15, 2021 at 8:29 PM Hans Hagen  > <mailto:j.ha...@xs4all.nl>> wrote:
> >
> > On 6/15/2021 7:53 PM, Alan Braslau wrote:
> >  > On Tue, 15 Jun 2021 13:07:04 +0200
> >  > Hans Hagen mailto:j.ha...@xs4all.nl>> wrote:
> >  >
> >  >> the windows mupdf viewer is somewhat crippled (no selection) but
> >  >> searching for something shows the right bbox
> >  >
> >  > I do not know about Windows ports, but mupdf and mupdf-gl differ,
> not
> >  > only in their rendering but also in their keystrokes and mouse
> > bindings.
> >
> >
> > mupdf-gl (the advanced one) uses opengl,  but unfortunately it breaks
> > when the drivers are updated;
> > mupdf uses x11, and it's much more stable.
> > To be honest, under ubuntu okular and evince are still better than mupdf.
> Did you try this one?
>
> http://www.xpdfreader.com/download.html


I doesn't workunder ubuntu 20.04
libicudata.so.56 => not found
I have libicudata.so.66

-- 
luigi
___
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] [#1] CJK regression? | lmtx-20210613 .

2021-06-15 Thread luigi scarso
On Tue, Jun 15, 2021 at 8:29 PM Hans Hagen  wrote:

> On 6/15/2021 7:53 PM, Alan Braslau wrote:
> > On Tue, 15 Jun 2021 13:07:04 +0200
> > Hans Hagen  wrote:
> >
> >> the windows mupdf viewer is somewhat crippled (no selection) but
> >> searching for something shows the right bbox
> >
> > I do not know about Windows ports, but mupdf and mupdf-gl differ, not
> > only in their rendering but also in their keystrokes and mouse bindings.
>

mupdf-gl (the advanced one) uses opengl,  but unfortunately it breaks when
the drivers are updated;
mupdf uses x11, and it's much more stable.
To be honest, under ubuntu okular and evince are still better than mupdf.


-- 
luigi
___
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] [#1] CJK regression? | lmtx-20210613 .

2021-06-15 Thread luigi scarso
On Tue, Jun 15, 2021 at 9:13 AM Hans Hagen  wrote:

> On 6/15/2021 12:21 AM, Richard Mahoney wrote:
> > Thank you very much for this Hans. And especially for resolving
> > what looks like quite a complex issue in next to no time.
> >
> > As it happens I've found LMTX just fine for "production", so long as
> > I keep copies of a few versions that I know are working well.
>  >
> > I settled on SciTE a long time ago and tend to keep a few start
> > up scripts that make reverting to a previous version simple:
> >
> > -r-x-- 1 rbm49 rbm49 210 Dec 20 16:54 SciTE-start-lmtx-20200920.sh
> > -r-x-- 1 rbm49 rbm49 210 Jun 13 22:04 SciTE-start-lmtx-20210509.sh
> > -rwx-- 1 rbm49 rbm49 210 Jun 15 08:50 SciTE-start-lmtx-latest.sh
>
> btw, When testing your example I noticed that sumatra pdf (which i use
> as viewer) doesn't handle selecting the cjk text well. I looked at the
> source (on github) and get the impression that it might be some font
> bbox issue (these asian fonts have hugee bboxes); (also old) acrobat and
> browsers do fine as does an old windows okular I have installed.
>
> Does anyone know of a minimalistic mupdf based pdf viewer that has a
> decent gui but not all this (semi) epub, xps, reflow, etc stuff on
> board? Just the mupdf pdf core.
>


perhaps the mupdf app for android.
Another one is  evince for windows:
https://portableapps.com/apps/office/evince_portable


-- 
luigi
___
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] Incorrect sorting in \completelistofabbreviations for numbers

2021-06-10 Thread luigi scarso
On Thu, Jun 10, 2021 at 11:39 AM Markus Brandt <
markus.bra...@sit.tu-darmstadt.de> wrote:

> yes, seems like they are sorted by tag. But that’s not useful, since you
> cannot use numbers in a tag. This tag is just the workaround for
> abbreviations that include numbers.
>
>
>

\abbreviation[0123]{123}{One, Two, and Three}
\abbreviation{ABC}{A, B, and C}
\abbreviation{ZYX}{Z, Y, and X}

\starttext
\csname 0123\endcsname
\completelistofabbreviations[criterium=all]
\stoptext
-- 
luigi
___
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] Incorrect sorting in \completelistofabbreviations for numbers

2021-06-10 Thread luigi scarso
On Thu, Jun 10, 2021 at 11:08 AM Markus Brandt <
markus.bra...@sit.tu-darmstadt.de> wrote:

> Hi everyone,
>
> I think I've found a sorting bug in \completelistofabbreviations in the
> latest LMTX (and probably also MKIV). When using this minimal example
>
> \abbreviation[OTT]{123}{One, Two, and Three}
> \abbreviation{ABC}{A, B, and C}
> \abbreviation{ZYX}{Z, Y, and X}
>
> \starttext
> \completelistofabbreviations[criterium=all]
> \stoptext
>
> I get
>
> ABCA, B, and C
> 123One, Two, and Three
> ZYXZ, Y, and X
>
> Numbers should go before letters. Do you know any workaround/fix for
> that?
>

aren't they sorted by the tag ?
By default the synonim is the tag; only the first one has an explicit tag
(OTT)
so the order  is ABC, OTT,  ZXY, which looks ok.

-- 
luigi
___
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] LMTX install

2021-05-23 Thread luigi scarso
Il Dom 23 Mag 2021, 12:14 jbf  ha scritto:

> Then something is not making sense (to me).
>
> .bashrc clearly shows: export
> PATH=$PATH:/home/me/bin/context/tex/texmf-linux-64/bin, so does that not
> mean that bin can be found via the path? So why does 'context
> myfile.tex' not work?
>
> If I run a full path (.
> /home/me/bin/context/tex/texmf-linux-64/bin/mtxrun context myfile.tex) I
> get the message 'cannot execute binary file' and yet mtxrun is
> executable. I checked. Clearly I am making a basic error, but cannot
> work out what.
>
> Julian


In general I always set
export PATH=:$PATH

>
--
luigi
___
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] \char not working with private unicodes

2021-05-12 Thread luigi scarso
On Tue, May 11, 2021 at 3:41 PM Taco Hoekwater  wrote:

>
>
> > On 11 May 2021, at 15:16, Hans Hagen  wrote:
> >
> > On 5/11/2021 2:08 PM, Jairo A. del Rio wrote:
> >> Hi, list! Following this thread:
> https://tex.stackexchange.com/questions/596610/how-to-use-luatex-with-large-unicode-codepoint
> <
> https://tex.stackexchange.com/questions/596610/how-to-use-luatex-with-large-unicode-codepoint>,
> I tried to replicate it in ConTeXt. Both LMTX and LMTX fail to display the
> right symbol and, as it's discussed in the linked page, there's an offset
> by 14. Is this intentional (in ConTeXt)? A bug? Minimal (non-)working
> example:
> >> %Font available here: https://materialdesignicons.com/ <
> https://materialdesignicons.com/>
> >> \starttext
> >> \definedfont[file:materialdesignicons-webfont.ttf]\char"F1372\relax
> >> \stoptext
> > You need to employ a sense of humour for that font:
> >
> > \starttext
> >\definefontfeature[materialicons][default][rlig=yes]
> >\definedfont[file:materialiconsregular.ttf*materialicons]
> >baby_changing_station
> > \stoptext
>
> That only works with the regular font, not with the webfont version from
> the ‘easy download’
> link (it is cool, though :)).
>
> But that is not the issue. The issue is that you have this super-useful
> page online:
>
>   https://pictogrammers.github.io/@mdi/font/5.4.55/
>
>
another link for the records, just in case
https://www.nerdfonts.com


-- 
luigi
___
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] Adjusting parameters for a single page

2021-05-11 Thread luigi scarso
On Tue, May 11, 2021 at 10:29 AM  wrote:

> -Ursprüngliche Nachricht-
> > Von: Hans Hagen 
> > Gesendet: Dienstag, 11. Mai 2021 00:13
> > An: mailing list for ConTeXt users ; Maier, Denis
> > Christian (UB) 
> > Betreff: Re: [NTG-context] Adjusting parameters for a single page
> >
> > On 5/10/2021 5:15 PM, denis.ma...@ub.unibe.ch wrote:
> > > Hi everyone,
> > >
> > > I know it is possible to make local changes by enclosing text in
> > > \start \stop pairs to make local changes. Then, there are also
> > > commands that only affect the next/current paragraph, such as
> \looseness.
> > >
> > > But is there a similar mechanism for page-layout changes? For example
> > > your penalty settings allow widows and orphans, but on one particular
> > > page you want to change the penalties. Or, you use
> > > \setupalign[height], but on one page you want to use
> > > \setupalign[bottom] instead. Is there a way to do this ?
> > it works per paragraph so then you need to adapt it for a specific
> paragraph
>
> So, that means you cannot make changes to a page, but only to paragraph.
> If a paragraph goes over page boundaries, you cannot add stretch or shrink
> interlinespace for just one page... correct?
>

this looks more a otr technique, e.g.
 https://www.tug.org/TUGboat/tb11-1/tb27salomon.pdf
(or grep the context code for otr)


-- 
luigi
___
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] simpleslides gives 'input stack overflow'

2021-05-11 Thread luigi scarso
On Sun, May 9, 2021 at 11:25 PM Adam Reviczky  wrote:

> Hi,
>
> Looks like it is a problem with "StartPage" and "StopPage" in metapost.
>
> I get the same error with any MP graphic using those commands.
>
> More minimal example (without simpleslides) as per the wiki:
> https://wiki.contextgarden.net/Cover_Pages
>
> colors  > 'rgb' color space is supported
> colors  > 'cmyk' color space is supported
> fonts   > preloading latin modern fonts (second stage)
> fonts   > 'fallback modern-designsize rm 12pt' is loaded
> metapost> initializing instance 'metafun:1' using format 'metafun'
> and method 'default'
> metapost> loading 'metafun' as
> '/usr/share/texmf/metapost/context/base/mpiv/metafun.mpiv' using method
> 'default'
> metapost> initializing number mode 'scaled'
> input stack overflow
> mtx-context | fatal error: return code: 256
>
> Commenting out "StartPage" and "StopPage" compiles.
>
> mtx-context | current version: 2021.05.09 17:14
> This is LuaTeX, Version 1.14.0
> Development id: 7438
>

it should be ok now in Development id: 7439
 (just for the records)

-- 
luigi
___
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] How to write readable source files?

2021-04-24 Thread luigi scarso
On Sat, Apr 24, 2021 at 11:53 AM Jan U. Hasecke 
wrote:

>
> Hi all,
>
> how do you format your ConTeXt source files?
>
> I recently discovered prettier which reformats source files for
> different markup
> and programming languages such as html, markdown, json etc.
>
> There are some other tools around but I don't find anything for ConTeXt.
>
> Do you know of any prettifying tool?
>
> Is there a best practice for ConTeXt source files, at all?
>
>
you should consider that in TeX (but also in Python, for example) spaces
matter.
Sometimes unwanted results are triggered by unseen blanks, and they  are
hard to discover.

--
luigi
___
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] Bug: missing Lua API in binaries

2021-04-23 Thread luigi scarso
On Sat, Apr 24, 2021 at 1:33 AM Sylvain Hubert 
wrote:

> You're right, I just checked the symbols of luatex and they contain all
> the APIs of lua 5.3.
> So I guess the problem is specific to luametatex and the latest context.
>
> > but in any case you should compile against the luatex headers, not the
> stock lua 5.3.6.
>
> Does luatex have dedicated headers different from the ones for stock lua?
>

There are some small differences, because we had to harmonize luajit and
lua .

-- 
luigi
___
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] Bug: missing Lua API in binaries

2021-04-23 Thread luigi scarso
On Fri, Apr 23, 2021 at 10:08 PM Sylvain Hubert 
wrote:

> Dear Devs,
>
> Sorry if this is not the best place for reporting bugs.
>
> I'm trying to use the lpeglabel library written in C and delivered as
> lpeglabel.so.
>
> $ ls
> testlabel.lua lpeglabel.so
> $ cat testlabel.lua
> require("lpeglabel")
>
> The ConTeXt binary cannot load the library because it lacks certain Lua
> API:
>
> $ context --forcecld --permitloadlib testlabel.lua
> ...
> fatal lua error:
> registered function call [1542]:
> ...tx/tex/texmf-context/tex/context/base/mkiv/l-package.lua:348: error
> loading module 'lpeglabel' from file './lpeglabel.so':
> ./lpeglabel.so: undefined symbol: lua_gettop
>
>
hm, lua_gettop  is a global symbol in latest luatex, it's not undefined...


>
> nor does LuaTeX:
> $ luatex -luaonly testlabel.lua
> error loading module 'lpeglabel' from file './lpeglabel.so':
> ./lpeglabel.so: undefined symbol: lua_getiuservalue
>
>
lua_getiuservalue is in lua 5.4 API, luatex is lua 5.3.6 API
but in any case you should compile against the luatex headers, not the
stock lua 5.3.6.
I don't know lpeglabel, but luatex has the lpeg embedded and perhaps it can
clash with the library.

-- 
luigi
___
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] Luatex 1.13.1 announcement.

2021-04-02 Thread luigi scarso
==
LuaTeX 1.13.1 2021-04-02
==

Fixed an unwanted space in btex etex in metapost, introduced
after a patch for troff.


--
luigi
___
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] Luatex 1.13.0 announcement.

2021-03-28 Thread luigi scarso
==
LuaTeX 1.13.0 2021-03-12
==

This is the release for TeX live 2021.
Callback for nesting level used in tracingmacros.
It is is a variant of \tracingstacklevels
by Petr Olsak implemented in pdftex and xetex.
Two TeX January 2021 DEK buglet fixes (H.Hagen)
Mark math glyphs as protected (in order to prevent processing
as text in base mode).
Removed width/ic compensation for traditional math code path.
When restricted system commands is enabled  os.setenv has no effect.
Minor clean-up and bugs fixed (see ChangeLog)


-- 
luigi
___
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] composing commands

2021-02-05 Thread luigi scarso
On Fri, Feb 5, 2021 at 11:47 PM Hans Hagen  wrote:

>
> never call a diaeresis an umlaut and vise versa ...


hm
latin is  vice versa (or versa vice)
italian is viceversa
english is vice versa

https://forvo.com/word/vice_versa/
I think that  the latin one is the classic (or "restituta") pronunciation,
the
ecclesiastic should be more or less like the italian .

-- 
luigi
___
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] midi

2021-02-04 Thread luigi scarso
On Thu, Feb 4, 2021 at 4:16 AM Fabrice L  wrote:

>
> I usually do images ; if you or the list ever want to see more, the site
> https://art-aleatoire.com is to show my work, and all you can see there
> is made by me using 100% MetaFun, with sometimes the help of you and the
> list, and all the time the help of your wonderful MetaFun manual. I’m often
> so much impressed by what could be done with a couples of lines of MetaFun
> code; life is made from DNA, art (perhaps illustrations would be a better
> world) could be made by the MetaFun « randomized » function.
>
> « art-aleatoire »  is french, and can be translated to «  random art ». So
> the function I use the most in MetaFun is « randomized » !
>
>

https://www.contextfreeart.org/index.html
So the next challenge is implementing CFDG with lpeg...
and then post  to gigapixels
https://artsandculture.google.com/project/gigapixels

-- 
luigi
___
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] dutch calendars 3 months

2021-01-05 Thread luigi scarso
On Tue, Jan 5, 2021 at 1:14 PM Taco Hoekwater  wrote:

>
>
> Being Dutch, I never realised there was such a thing as a “Dutch
> calendar”.
>
> These are just calendars? What makes them “Dutch” from an Italian
> viewpoint?
>
> Best wishes,
> Taco
>
>
The  reference site treccani says
https://www.treccani.it/vocabolario/olandese/
 Calendario o., quello formato da 12 o 6 fogli contenenti ciascuno uno o
due mesi con i giorni disposti in colonna, che si appende alla parete.

So, a wall calendar with 12 or 6 sheets, each one within one or two months,
but the canonical form is  with  12 sheets  with the previous month on the
left, the current month at the center and the next month on the right,
each one with the days in a single column.
Of course there are now many variations, but the canonical form is the
better one.
I don't know the origin of the term.
-- 
luigi
___
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] dutch calendars 3 months

2021-01-05 Thread luigi scarso
I guess this is a challenge for Willi :
a module to typeset "dutch calendars"
as in
https://www.calendari.it/
(I am not involved at all with the site, it's the first I have found )

I like the slim version, with 3 months, the saint(s) of the day, the moon
phases, the week number,
the day from the beginning and to the end of the year 


-- 
luigi
___
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] Off-topic: Struggles with LPEG grammar

2020-12-21 Thread luigi scarso
On Mon, Dec 21, 2020 at 2:36 PM Taco Hoekwater  wrote:

>
>
> > On 21 Dec 2020, at 14:08, Mojca Miklavec 
> wrote:
> >
> > Dear Taco,
> >
> > On Mon, 21 Dec 2020 at 13:46, Taco Hoekwater wrote:
> >>> On 21 Dec 2020, at 13:16, Mojca Miklavec wrote:
> >>>
> >>> My only explanation would be that perhaps "^1" is so greedy that the
> >>> rest of the pattern doesn't get found. But I don't want to believe
> >>> that explanation.
> >>
> >> Which (of course) means that that is exactly what happens ;)
> >>
> >> The ones that match are
> >>
> >> ababbb (a (ba+bb) b) => r4 r1(r3(r5 r4) r2(r5 r5)) r5
> >> abbbab (a (bb+ba) b) => r4 r1(r2(r5 r5) r3(r5 r4)) r5
> >>
> >> With the ^1, in the “bb” cases the first “b” eats all three “b”s:
> >>
> >> ababbb fails the r5 at the end
> >>
> >> abbbab fails the first r2 already (since the second r5 therein never
> happens)
> >
> > Is this a deliberate choice, a limitation of the grammar
> > expressiveness, some misuse on my side that could/should/needs to be
> > implemented in a different way, or does it count as a "bug" on the
> > lpeg side?
> >
> > For example, I wouldn't expect a regexp "b+b" to fail on "bbb" just
> > because "b+" would eat all three "b"s at once (the regexp "b+b" in
> > fact finds "bbb", and I would expect a less-than-totally-greedy hit
> > with lpeg as well). Or is my reasoning wrong here?
>
> PEGs are greedy by design, which is a consequence of the fact that PEGS do
> not backtrack, which goes back to the underlying assumptive rule of PEGs
> that there is one (and only one!) ‘correct’ way to parse the input.
> Allowing backtracking destroys that assumption and by doing so would
> complicate the system to a level that would make it comparable to PCRE
> (with all the associated penalties on processing speed and a much greater
> codebase).
>

greedy vs non-greedy is one of the things that I always keep in mind when I
start with lpeg, and regularly I fail to apply -- because I think in the
"perl regex way".
Anyway,
http://www.gammon.com.au/lpeg
has some good lines:
e.g. this one (from the lpeg site) find the pattern anywhere in the line:

function anywhere (p)
  return lpeg.P { p + 1 * lpeg.V(1) }
end
print (lpeg.match (anywhere ("dog"), target))

-- 
luigi
___
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] Install Problems with 64 bit ARM Linux

2020-11-28 Thread luigi scarso
On Sat, Nov 28, 2020 at 11:18 AM Hans Hagen  wrote:

> looks nice (specs and such) indeed, maybe as a next tablet (i haven't
> tested tex on the very old nexus in a while); probably a little faster
> than the rpi 4
>

these also look interesting
 e.g.
https://tinker-board.asus.com/prod_tinker-board-2s.html

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

2020-11-26 Thread luigi scarso
On Thu, Nov 26, 2020 at 6:10 PM Hans Hagen  wrote:

> On 11/26/2020 6:07 PM, luigi scarso wrote:
> >
> >
> > Il Gio 26 Nov 2020, 18:00 Hans Hagen  > <mailto:j.ha...@xs4all.nl>> ha scritto:
> >
> > On 11/26/2020 5:10 PM, luigi scarso wrote:
> >  >
> >  >
> >  > On Thu, Nov 26, 2020 at 5:00 PM Hans Hagen  > <mailto:j.ha...@xs4all.nl>
> >  > <mailto:j.ha...@xs4all.nl <mailto:j.ha...@xs4all.nl>>> wrote:
> >  >
> >  >   Of course, if they care about luatex cs support they
> >  > could send an M1 mini to Mojca for the compile farm for some
> real
> >  > testing.
> >  >
> >  >
> >  > very likely luatex will run full native on M1 on next texlive,
> > following
> >  > http://www.tug.org/mactex/aboutarm.html
> > <http://www.tug.org/mactex/aboutarm.html>
> >  > <http://www.tug.org/mactex/aboutarm.html
> > <http://www.tug.org/mactex/aboutarm.html>>
> > that's with universal binaries (as happened before when apple
> switched
> > from powerpc to intel)
> >
> >
> > Full native:
> > """
> > Full native Arm support will arrive with MacTeX-2021 next spring.
> > """
>
> sure, but by using a unversal bin:
>

it's not bad,  13MB (or less, due the shared data) vs 6.5MB for downloading
is  still acceptable for the user.
Of course for the provider it doubles the space, but I fear that this
cannot be avoided for the next five years.

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

2020-11-26 Thread luigi scarso
Il Gio 26 Nov 2020, 18:00 Hans Hagen  ha scritto:

> On 11/26/2020 5:10 PM, luigi scarso wrote:
> >
> >
> > On Thu, Nov 26, 2020 at 5:00 PM Hans Hagen  > <mailto:j.ha...@xs4all.nl>> wrote:
> >
> >   Of course, if they care about luatex cs support they
> > could send an M1 mini to Mojca for the compile farm for some real
> > testing.
> >
> >
> > very likely luatex will run full native on M1 on next texlive, following
> > http://www.tug.org/mactex/aboutarm.html
> > <http://www.tug.org/mactex/aboutarm.html>
> that's with universal binaries (as happened before when apple switched
> from powerpc to intel)


Full native:
"""
Full native Arm support will arrive with MacTeX-2021 next spring.
"""

--
luigi

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

2020-11-26 Thread luigi scarso
On Thu, Nov 26, 2020 at 5:00 PM Hans Hagen  wrote:

>  Of course, if they care about luatex cs support they
> could send an M1 mini to Mojca for the compile farm for some real testing.
>

very likely luatex will run full native on M1 on next texlive, following
http://www.tug.org/mactex/aboutarm.html

-- 
luigi
___
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] Guit meeting 2020

2020-09-11 Thread luigi scarso
GuIT (Gruppo Utilizzatori Italiani di TeX, official Italian TUG) is pleased
to announce the GuITmeeting 2020, the 17th edition of the Italian
conference on TeX, LaTeX and digital typography.


The conference, organized by GuIT and  Sissa Medialab srl of Trieste, will
be held online on the 31st of October 2020. Attending the conference is
free of charge and it does not require registration. A link to follow the
oral presentations will be published shortly on the conference official
page.

Authors willing to give an oral presentation are kindly requested to send
their proposals in the form of a full article (in English or Italian) to
arstexn...@guitex.org by the 18th of October 2020. Notification of
acceptance will be sent by the 25th of October 2020. The accepted papers
will be published, after a peer-review process, in the autumn issue of
ArsTeXnica, the Italian journal of TeX, LaTeX. The LaTeX template for
preparing the article and further details can be found at
www.guitex.it/en/collabora-autori

We look forward to hearing from you!

https://www.guitex.org/home/en/guit-meeting-2020

A note about peer-review:
at
https://www.anvur.it/attivita/classificazione-delle-riviste/classificazione-delle-riviste-ai-fini-dellabilitazione-scientifica-nazionale/elenchi-di-riviste-scientifiche-e-di-classe-a/

under
A. Elenco delle riviste scientifiche
at
area 10 (Scienze dell'antichità, filologico-letterarie e storico-artistiche
/ Antiquities, philology, literary studies, art history)

and

area 11 (Scienze storiche, filosofiche, pedagogiche e psicologiche /
History, philosophy, education sciences).

there is a list of scientific journals, and there also  ARS TEXNICA
Articles are considered valid starting from 1 january 2016.


-- 
luigi
___
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] Commands with arguments before in ConTeXt

2020-06-29 Thread luigi scarso
On Sun, Jun 28, 2020 at 10:48 PM Jairo A. del Rio 
wrote:

> I've read the following is not possible in TeX
>
> \def#1\macro{blabla#1}
>
> where arguments come before. The only partial exceptions are commands like
> \atop or \over, which are in fact primitives. Is there a way to do this in
> ConTeXt?
>
>
you can build a lpeg and parse the your "extended tex" source, obtaining a
valid tex source.


-- 
luigi
___
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] Installing on arm64

2020-06-10 Thread luigi scarso
On Wed, Jun 10, 2020 at 9:07 PM Hans Hagen  wrote:

> On 6/10/2020 7:47 PM, luigi scarso wrote:
> >
> >
> > On Wed, Jun 10, 2020 at 7:27 PM Hans Hagen  > <mailto:j.ha...@xs4all.nl>> wrote:
> >
> > On 6/10/2020 7:07 PM, Lutz Haseloff wrote:
> >  > I think, there is simply no rule for aarch64 in install.sh
> >  >
> >  > I now patched it in a better way.
> >
> > ok
> >
> >  > The binaries for aarch64 work like a charm on my device, a Samsung
> >  > Galaxy A50 Smartphone.
> > Does that really work well? I suppose the cpu and mem is ok, but how
> > about the disk. How do you edit on such a device?
> >
> >
> > doable from years already...
> > use termux
> > https://play.google.com/store/apps/details?id=com.termux=it
> > to run and  compile,
> > to cross-compile  you need to setup a tool chain for android using ndk.
> sure, i remember running a binary on the nexus made by harald years ago
> but i think i had to root the device first
>

no need to root  the device with termux.

-- 
luigi
___
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] Installing on arm64

2020-06-10 Thread luigi scarso
On Wed, Jun 10, 2020 at 7:27 PM Hans Hagen  wrote:

> On 6/10/2020 7:07 PM, Lutz Haseloff wrote:
> > I think, there is simply no rule for aarch64 in install.sh
> >
> > I now patched it in a better way.
>
> ok
>
> > The binaries for aarch64 work like a charm on my device, a Samsung
> > Galaxy A50 Smartphone.
> Does that really work well? I suppose the cpu and mem is ok, but how
> about the disk. How do you edit on such a device?
>

doable from years already...
use termux
https://play.google.com/store/apps/details?id=com.termux=it
to run and  compile,
to cross-compile  you need to setup a tool chain for android using ndk.

-- 
luigi
___
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] Checking existence of a macro (control sequence) by Lua

2020-05-27 Thread luigi scarso
On Thu, May 28, 2020 at 12:43 AM  wrote:

> Off-topic:
your email are always marked as spam by my gmail . Are you sure that your
address setup is ok  ?

-- 
luigi
___
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] bug in \doifinset

2020-05-27 Thread luigi scarso
On Wed, May 27, 2020 at 11:28 PM Pablo Rodriguez  wrote:

>
> Without commas, lists are harder both to read and to write (at least, to
> me).
>
>

what about

\starttext
\startTEXpage[offset=1em]
\doifinsetelse{i7}{%
i4,%
i5,%
i7,%
}
{yes}{no}
\stopTEXpage
\stoptext

here seems to work.
-- 
luigi
___
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] METAPOST: How do I get this 'max' cutafter to work?

2020-04-22 Thread luigi scarso
On Wed, Apr 22, 2020 at 9:30 AM Taco Hoekwater  wrote:

>
> In contrast, intersectionpoint finds the first intersection on the
> non-reversed paths, which
> is the base of the arrowhead.
>
>
IIrc ,  it's the first in shuffle order

@ Incidentally, if the given cubics intersect more than once, the process
just sketched will not necessarily find the lexicographically smallest pair
$(t_1,t_2)$. The solution actually obtained will be smallest in ``shuffled
order''; i.e., if $t_1=(.a_1a_2\ldots a_{16})_2$ and
$t_2=(.b_1b_2\ldots b_{16})_2$, then we will minimize
$a_1b_1a_2b_2\ldots a_{16}b_{16}$, not
$a_1a_2\ldots a_{16}b_1b_2\ldots b_{16}$.
Shuffled order agrees with lexicographic order if all pairs of solutions
$(t_1,t_2)$ and $(t_1',t_2')$ have the property that $t_1___
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] Question: Are there any ConTeXt aware scientific pulishers yet

2020-04-16 Thread luigi scarso
On Thu, Apr 16, 2020 at 9:08 AM Henning Hraban Ramm  wrote:

>
>
> > Am 15.04.2020 um 22:52 schrieb denis.maier.li...@mailbox.org:
>
> I’m using a Python script to convert DOCX to ConTeXt.


c# under linux is also a valid option.

-- 
luigi
___
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] Luatex 1.12.0 announcement.

2020-03-30 Thread luigi scarso
==
LuaTeX 1.12.0 2020-03-15
==

This is the release for TeX live 2020.
--shell-restricted now forbids loading of dso (dll/so object)
Scaled virtual font
Aadditional primitives  \eTeXglue[stretch|shrink]order for querying order
the etex way.
Extra features runtoks
tex.getmodenames() (as these can differ per engine/version)
Permit nested runtoks in more complex situations of nesting (HH)
More accurate and correct test for tex.[set|get]math
Minor clean-up and bugs fixed

-- 
luigi
___
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] Quizz

2020-03-17 Thread luigi scarso
On Tue, Mar 17, 2020 at 9:40 AM Hans Hagen  wrote:

>
> I have no problem coming up with additional styles of code for remote
> learning and student support but it has to have some 'direction' and not
> be too random.
>
>
one constrain could be "it works under google chrome > Version
79.0.3945.130"
At least some it's some  grade of cross platforms, as  chrome seems to be
quite ubiquitous .
Kind of least common denominator.

-- 
luigi
___
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] Quizz

2020-03-16 Thread luigi scarso
On Mon, Mar 16, 2020 at 11:14 AM Hans Hagen  wrote:

> On 3/15/2020 10:34 AM, Fabrice Couvreur wrote:
> > Hi,
> > With the Coronavirus pandemic, my school will close like all the others.
> > We chose to work with Microsoft Teams. I know how to file Math exercises
> > written with ConteXt and export to pdf format. Is it possible with
> > ConteXt to create interactive Quizz?
> it should be doable (in the past we've made those with choice, fill in
> etc questions) but one problem with pdf is that there has been
> introduced some restrictions, for instance one cannot save in the reader
> so one then need to run a server that picks up the filled in stuff and
> regenerates a pdf file ... no big deal but i must admit that i don't
> have that code (if at all) around in loadable module form
>

In google chrome this seems to work, apart the choice fields (the choice
selected has the red frame but  it has  no mark inside):
https://martin-thoma.com/images/2012/02/pdf-form.pdf

-- 
luigi
___
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] Quick question about dual output pdf and epub

2020-03-04 Thread luigi scarso
On Wed, Mar 4, 2020 at 9:51 AM Hans Hagen  wrote:

>
> (in the meantime i actually gave away my ebook reader ... now i wait
> till color shows up in e-ink which might give me a reason to play a bit
> more)
>
>
https://news.lenovo.com/pressroom/press-releases/lenovo-unveils-preview-worlds-first-foldable-pc-thinkpad-x1-family/

>
sound quite interesting 

-- 
luigi
___
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] Unicode 13 – save the \dodo!

2020-02-05 Thread luigi scarso
On Wed, Feb 5, 2020 at 10:38 AM Arthur Reutenauer <
arthur.reutena...@normalesup.org> wrote:

>
>   Just for the record: it is not true at all that Unicode is “mostly
> emojis” nowadays.  Even today, the vast majority of characters added
> each year is 90% non-emoji.  I make this point at every ConTeXt meeting
> I attend, but it really seems nobody is listening ;-)
>

 I was.


-- 
luigi
___
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] Transparency in PNGs becomes black in PDF/X

2019-12-20 Thread luigi scarso
On Fri, Dec 20, 2019 at 11:00 AM Peter Rolf  wrote:

> Hi Hraban,
>
> PDF/X-1a:2001 doesn't support transparency. You have to use PDF/X-4(p)
> for that (the first X variant that supports transparency).
> PDF/A-2|3 may also be an option. These formats also support transparency.
>
>
> Peter
>
>
confirmed, this is ok.

\setupbackend[format=PDF/X-4p]

\starttext
\externalfigure[esel_kl.png]
\stoptext

>


-- 
luigi
___
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] Bug: Segmentation fault

2019-12-11 Thread luigi scarso
On Wed, Dec 11, 2019 at 12:10 AM Hans Hagen  wrote:

> On 12/11/2019 12:03 AM, luigi scarso wrote:
> > I guess that we have to check if catcodetable -1 is already defined...
> i already sent you a patch, probbaly also ok for trunk
>

Committed revision 7235.
-- 
luigi
___
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] Bug: Segmentation fault

2019-12-11 Thread luigi scarso
On Wed, Dec 11, 2019 at 1:28 AM Henri Menke  wrote:

> In this case I wanted to generate the thin space (\,).  My expectation
> (which worked elsewhere) was that full expansion will turn "\string\\,"
> into "\\," where the two backslashes have catcode 12 and will not be
> expanded further.  Then the Lua string will turn the escape sequence \\
> into a single backslash, therefore ending up with \, in the Lua string.
>
>


\directlua{token.set_macro("foo","\relax")}
(gdb) x/7c str
0x59376c18: 13 '\r' 101 'e' 108 'l' 97 'a'  120 'x' 32 ' '  0 '\000'
(gdb) p lstr
$24 = 6
where \foo is
 \foo=macro:
->#!.

vs
\directlua{token.set_macro("foo",[==[\relax]==])}
(gdb) x/8c str
0x59376ea8: 92 '\\' 114 'r' 101 'e' 108 'l' 97 'a'  120 'x' 32 ' '  0
'\000'
(gdb) p lstr
$25 = 7
\foo=macro:
->\relax .

Another example is
\directlua{token.set_macro("foo","\medskip")}\show\foo
which gives the error:   invalid escape sequence near '"^^Kskip \m'.
vs
\directlua{token.set_macro("foo",[==[\medskip]==])}\show\foo
 which gives
\foo=macro:
->\vskip \medskipamount .

Your example:
\directlua{token.set_macro("foo","\string\\,")}\show\foo
gives
(gdb) x/3c str
0x593765a8: 92 '\\' 44 ','  0 '\000'
(gdb) p lstr
$29 = 2
 \foo=macro:
->BAD,.

vs
\directlua{token.set_macro("foo",[==[\,]==])}\show\foo
(gdb) x/20c str
0x59376908: 92 '\\' 109 'm' 115 's' 107 'k' 105 'i' 112 'p' 32 ' '  92
'\\'
0x59376910: 116 't' 104 'h' 105 'i' 110 'n' 109 'm' 117 'u' 115 's' 107
'k'
0x59376918: 105 'i' 112 'p' 32 ' '  0 '\000'
(gdb) p lstr
$31 = 19
 \foo=macro:
->\mskip \thinmuskip .


-- 
luigi
___
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] Bug: Segmentation fault

2019-12-10 Thread luigi scarso
On Wed, Dec 11, 2019 at 12:10 AM Hans Hagen  wrote:

> On 12/11/2019 12:03 AM, luigi scarso wrote:
> >
> >
> > On Tue, Dec 10, 2019 at 9:27 PM Henri Menke  > <mailto:henrime...@gmail.com>> wrote:
> >
> > Dear devs,
> >
> > The example below crashes LuaTeX with a segmentation fault.  It is
> > reproducible
> > with LuaTeX 1.10.1 7143 and LuaTeX 1.11.2 7226.  To this end I built
> > 7226 from
> > source with --debugopt to get a backtrace, which can be found below
> > as well.
> >
> > Cheers, Henri
> >
> > ---
> >
> > \directlua{token.set_macro(-1, "foo","\string\\,")}
> > \show\foo
> > \foo
> > \bye
> >
> >
> > I guess that we have to check if catcodetable -1 is already defined...
> i already sent you a patch, probbaly also ok for trunk
>


yes, seen



> but one needs to be careful as fo rinstance \string\foo is seen as
> oo so often one also needs to escape properly
>

 I always start with  [==[ ... ]==]  ie
\directlua{token.set_macro(-1, [==[foo]==],[==[\string\\,]==])}
 gdb reports this [==[\string\\,]==] string as
 ","
which is an array of char of length 3 ie {'\\','\\',','}

With \directlua{token.set_macro(-1, [==[foo]==],"\string\\,")}
gdb reports "\\,"
ie {'\\','\,'}

I always check which one is the correct one...

-- 
luigi
___
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] Bug: Segmentation fault

2019-12-10 Thread luigi scarso
On Tue, Dec 10, 2019 at 9:27 PM Henri Menke  wrote:

> Dear devs,
>
> The example below crashes LuaTeX with a segmentation fault.  It is
> reproducible
> with LuaTeX 1.10.1 7143 and LuaTeX 1.11.2 7226.  To this end I built 7226
> from
> source with --debugopt to get a backtrace, which can be found below as
> well.
>
> Cheers, Henri
>
> ---
>
> \directlua{token.set_macro(-1, "foo","\string\\,")}
> \show\foo
> \foo
> \bye
>

I guess that we have to check if catcodetable -1 is already defined...

--
luigi
___
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] Bug: Segmentation fault

2019-12-10 Thread luigi scarso
On Tue, Dec 10, 2019 at 9:27 PM Henri Menke  wrote:

> Dear devs,
>
> The example below crashes LuaTeX with a segmentation fault.  It is
> reproducible
> with LuaTeX 1.10.1 7143 and LuaTeX 1.11.2 7226.  To this end I built 7226
> from
> source with --debugopt to get a backtrace, which can be found below as
> well.
>
>
confirmed, we will see asap
(btw,  I use --debug ie CFLAGS="-g -O0" because it's hard to follow the
flow of optimized code)


-- 
luigi
___
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/A-3a attachment support query

2019-12-06 Thread luigi scarso
On Fri, Dec 6, 2019 at 4:26 PM Peter Rolf  wrote:

>
> So we have only basic support for "PDF/A-3a", the more advanced features
> of that format are not supported yet. The main problem here is the
> lacking PDF/A documentation (ISO pay wall).
>

A complete installation of verapdf  has  a very detailed "documentation"
(sort of, it's embedded in the code) based on the ISO standard.

--
luigi
___
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] NewComputerModern

2019-11-24 Thread luigi scarso
https://ctan.org/pkg/newcomputermodern

"""
This is a new assembly of Computer Modern fonts plus glyphs for non latin
alphabets which are considered compatible in style to CM fonts.

The fonts contain Latin and accented Latin letters and combinations, Greek
(monotonic and polytonic), and Cyrillic.

"""



-- 
luigi
___
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] R module

2019-11-24 Thread luigi scarso
On Sun, Nov 24, 2019 at 4:12 AM Aditya Mahajan  wrote:

> On Sat, 23 Nov 2019, Fabrice L wrote:
> > Thanks for your answer. I did not know about the filter module. I had a
> > look; the module is powerful… but complex to install.
>
> Why do you say so? If you are using context-minimals, then this can be
> installed like any other module. If you are using texlive, then can be
> installed using tlmgr.
>

I argue that talking of a ffi binding of R is out-of-question ...

-- 
luigi
___
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] ConTeXt as a service

2019-11-23 Thread luigi scarso
On Sat, Nov 23, 2019 at 1:02 PM Henning Hraban Ramm  wrote:

>
> Don’t exaggerate. Or maybe your company didn’t think about which tags are
> really necessary.
> A proper configuration that doesn’t allow nonsense, even if users paste
> text from Word documents, is not such a big effort.
>
> I can’t remember which JS editor I used >10 years ago for the editorial
> system of a city magazine, but I remember I only allowed a few tags
> (authors weren’t allowed to use font and color settings) and also run a
> HTML cleaner before saving. It was an effort until it worked, but not that
> much.
>

another link:
https://coko.foundation/
https://coko.foundation/product-suite/

-- 
luigi
___
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] error, no format found with name: cont-en, aborting

2019-11-13 Thread luigi scarso
On Wed, Nov 13, 2019 at 3:11 PM Henning Hraban Ramm  wrote:

> contextjit or context —jit doesn’t work any more. Use just context.
>

I have just updated mkiv
mtx-context | current version: 2019.11.12 23:58
and contextjit  works.

-- 
luigi
___
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] MKIV: error, no format found with name: cont-en, aborting

2019-11-13 Thread luigi scarso
sent from
cont...@rik.users.panix.com
Note from admin: the email is in defer state because
"Message body is too big: 159549 bytes with a limit of 100 KB"
I have kept the initial part.

"
Dear list,

Since the 20191029 update I have not been able to create a document via
MKIV, suffering from the subject error message (error, no format found
with name: cont-en, aborting).

I have tried cache clearing, regeneration, and complete fresh installs.
None work. I suspect it is something on my system, but cannot think of a
relevant change except possibly a Win10-64 system update.

Attached is the log from the latest install try (with filenames of
copied files removed).

LMTX has no problems.

All suggestions welcome.

-- 
Rik Kabel
""
___
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] Luatex 1.11.1 announcement

2019-10-28 Thread luigi scarso
==
LuaTeX 1.11.1 2019-10-28
==

First release of luahbtex / luajithbtex,
luatex / luajittex with harfbuzz.
Small bug fixes, code clean up and a couple of new primitives
to match eTeX.
A new callback lua.getcodepage()  for diagnostic purposes.
*** DROPPED the   "page_objnum_provider" callback, replaced with
"page_order_index". ***
See ChangeLog and the manual.

-- 
luigi
___
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] ConTeXt groups supports "Public Money, Public Code"

2019-10-23 Thread luigi scarso
On Wed, Oct 23, 2019 at 12:14 PM Henning Hraban Ramm  wrote:

> Hi all,
>
> the previous board of your ConTeXt group decided to support the campaign
> of Free Software Foundation Europe, “Public Software? Public Code!” (see
> https://publiccode.eu/), and we finally got confirmed.
>
>
the site say
PUBLIC MONEY PUBLIC CODE
(as in the subject)
not
“Public Software? Public Code!”


-- 
luigi
___
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] columns and footnotes

2019-10-21 Thread luigi scarso
On Mon, Oct 21, 2019 at 8:24 AM Henning Hraban Ramm  wrote:

> Hi again,
> I’m testing columns again, and before I publish an article on the subject,
> I’d like to check with you.
> Best, Hraban
>

Hi Hraban,
the attachment are  >100K,  I have made an exception but please try to stay
under 100K next time.

-- 
luigi
___
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] LTMX crashes on OpenBSD 6.5 amd64

2019-10-20 Thread luigi scarso
On Sun, Oct 20, 2019 at 12:22 PM Hans Hagen  wrote:

> On 10/20/2019 11:11 AM, Damien Thiriet wrote:
> > Hi,
> >
> >
> > As I wrote yesterday, I have crashes on LTMX, openbsd6.5-amd64.
> > LTMX version:
>


> > Bus error (core dumped)
>

could be pplib related
Can you check also luatex mkiv ?


-- 
luigi
___
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 viewer poll

2019-10-16 Thread luigi scarso
>
> mupdf started simple but I think it also grew in a weird
> direction (large codebase, some reflow I think, a strange epub
> substandard support, etc .. all pretty useless to me and I'm not sure
> how optional it it ... so no longer as lightweight as it could be ...)
>

mupdf-1.16.1-source/build/release$ du -sh platform resources source
thirdparty
524K platform
42M resources
7.2M source
6.6M thirdparty

where resources is a directory with 155 fonts compressed and embedded into
the exe.
Following (the quite old) pdf this  should be configurable
https://ghostscript.com/~robin/mupdf_explored.pdf
(ch. 18)

I guess that mupdf's targets are windows/mac/Linux/Android but as a  base
tool (eg ebook reader make senses on Android).

License is AGPL
https://mupdf.com/license.html
like GPL plus
"""
Network Use – However, AGPL also has some conditions even if you are not
distributing the software. For example, if you are using the software on
your own company's equipment, but you are making the functionality of the
software available to users interacting with it remotely through a computer
network, and you make any change to the software, you must make the source
code for your changed version available to users of the software. Take care
to ensure that during network deployment that there is no code change that
could invoke the source code availability obligation. This special
requirement of AGPL is in Section 13; see the GNU web site for more details.

Bottom line, if you distribute our software, or make the functionality of
the software available to users interacting with it remotely through a
computer network, you must share your source code.
"""

and also the "Corresponding Source " subsection.


-- 
luigi
___
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 viewer poll

2019-10-15 Thread luigi scarso
On Sun, Oct 13, 2019 at 12:43 PM Henning Hraban Ramm  wrote:

> Hi, I’d like to update my list of (usable!) PDF viewers.
>

A recent android tablet 10" with HD display is quite ok with Adobe Reader
and  several others apps ( eg foxit pdf reader)
EBookDroid is another app  pdf +djvu reader ,  also quite ok to read a pdf
on screen.

-- 
luigi
___
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 viewer poll

2019-10-15 Thread luigi scarso
On Tue, Oct 15, 2019 at 10:21 AM Hans Hagen  wrote:

> > Most of my PDF debugging is done using 'mutool clean’ (especially with
> the -d switch) and textmate / diff.
> qpdf also has something like that (with comments of where the objects
> come from)


it's the qdf export : pdf -> qdf -> (edit qdf)  -> pdf


-- 
luigi
___
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] Error: your system "Linux aarch64" is not supported yet.

2019-09-27 Thread luigi scarso
On Fri, Sep 27, 2019 at 7:20 AM Mojca Miklavec <
mojca.miklavec.li...@gmail.com> wrote:

>  (But I
> could use the binaries from TL as a starting point.)
>
>
well, something that works is better than nothing but of course one can
always install a scheme from texlive.


> That's either cross-compiling, but probably easier to simply put some
> proper hardware in place, so that we can also run the test suite.
>
> I was thinking of getting hold of another Raspberry and trying to
> install a 64-bit system on it. Or maybe dig out my super old Pine64
> and build on that one.


ubuntu 64bit is ok on rpi3 & rpi3b+
You can try A64 form olimex, also ok with ubuntu 64bit.
And of course the rpi4.



-- 
luigi
___
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] Error: your system "Linux aarch64" is not supported yet.

2019-09-26 Thread luigi scarso
..but aarch is in texlive already from  while ...

-- 
luigi
___
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] formatting index entries: alphabetical order in Unicode

2019-09-13 Thread luigi scarso
On Fri, Sep 13, 2019 at 12:20 PM Robert Zydenbos 
wrote:

> On 22. Aug 2019, at 18:17, Wolfgang Schuster <
> wolfgang.schuster.li...@gmail.com> wrote:
>
> > A PDF with the wrong sorting order doesn't help when you can't show a
> working minimal example to reproduce the problem.  When you need more
> control about the sorting order of the index you should switch to MkIV
> which has more options.
> >
> > Wolfgang
>
> When ConTeXt MkIV (rather: LuaTeX) supports Indic fonts, I'll gladly do
> that. :-)
>


luahbtex (in texlive 2020) has harfbuzz embedded .

-- 
luigi
___
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] Convert SVG to MetaPost

2019-08-12 Thread luigi scarso
On Mon, Aug 12, 2019 at 12:11 PM Jon Wong  wrote:

> Hi all,
>
> Is it possible to convert SVG to MetaPost?
>
> Currently, I have Bash scripts in my workflow to invoke Inkscape
> (converting SVG to PDF). I don’t like to allow shell access to TeX.
>
> If I can convert SVG to MetaPost, I will gladly Git-track MetaPost files
> instead of SVG files. That will do away with having to convert SVG into PDF
> (via Inkscape).
>
>
you can check pstoedit
http://www.calvina.de/pstoedit/pstoedit.htm

it can convert postscript to metapost.
So svg->pdf->ps->mp seems to be possible.
Of course, I am not sure if it fits in  your workflow.

-- 
luigi
___
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] grid+formulas: bug or expected behavior?

2019-07-26 Thread luigi scarso
Hi Luca,
the size of your  message was a bit over the 100KByte limit of the mailing
list, but I have made an exception and approved it .
But (everybody) please stay under 100KByte, space is a precious resource.

-- 
luigi
___
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] [OT] veraPDF v1.14

2019-07-18 Thread luigi scarso
https://www.pdfa.org/verapdf-1-14-released/

-- 
luigi
___
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] [OT] rasperry 4

2019-06-26 Thread luigi scarso
On Mon, Jun 24, 2019 at 2:30 PM luigi scarso  wrote:

> just seen
> https://www.raspberrypi.org/products/raspberry-pi-4-model-b/
>
> I would like to know your impressions
>
> --
> luigi
>

more benchmarks
https://www.tomshardware.com/reviews/raspberry-pi-4-b,6193.html
-- 
luigi
___
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] [OT] rasperry 4

2019-06-25 Thread luigi scarso
On Tue, Jun 25, 2019 at 3:31 PM Rudolf Bahr  wrote:

> On Tue, Jun 25, 2019 at 10:15:29AM +1200, Henri Menke wrote:
> > On 25/06/19 12:30 AM, luigi scarso wrote:
> > > just seen
> > > https://www.raspberrypi.org/products/raspberry-pi-4-model-b/
> > >
> > > I would like to know your impressions
> >
> > Does it still need proprietary binary blobs in the kernel?  Probably
> > yes, so it is as useless as all the models before because it can only
> > run their custom Raspbian distro.
>
>
>
> To this I asked my linux group in Freiburg and got following answer
> in German from Tomas (tuxteam.de):
>
> --
> Die Antwort darauf ist komplizierter, als es einem lieb sein kann :-)
>
> "Blob" hat da nämlich unterschiedliche Bedeutungen (vermutlich lässt
> sich die Liste verlängern):
>
>  (1) zum einen, nicht-freie Treiber, die direkt im Adressraum des Linux
>kernels ausgeführt werden (strenggenommen verletzen sie die GPL,
>aber die Linux-community ist da... "tolerant" [1]
>
>  (2) dann ist die eng verwandte "Cousine", die im Kernel zwar einen
>freien "Treiber" hat, der aber nur eine Hülle ist, die die eigentliche
>Arbeit an ein Programm in user space delegiert, das proprietär ist
>
>  (3) schliesslich ist es so, dass der Broadcom BCM28xx (oder BCM27xx) [2]
>nicht "nur eine ARM CPU" ist, sondern ganz viele verschiedene
>Subsysteme umfasst (im Jargon ist das ein SoC, ein "System on a Chip").
>Jedes dieser Subsysteme hat vielleicht einen, vielleicht mehrere
>Prozessoren, am prominentesten beim Raspi ist wohl der
> Grafik-Coprozessor
>(VideoCore IV), der auch zum Booten des ganzen Systems zuständig ist.
>Auch die wollen Code, der auch als Blobs in Erscheinung treten kann,
>die der Linux-Kernel einfach nur durchreicht.
>
> Also: ohne (3) gibt es beim Raspi nicht mal Booten ;-)
>
> Meines Wissens ist Raspi in (1) und (2) weitgehend "sauber" (Korrekturen
> erwünscht!), (3) ist allerdings weitaus schwieriger (es gibt m.W. aber
> auch Leute, die an dessen reverse engineering dran sind).
>
> Broadcom selbst scheint, nach anfänglichem Zögern, diesen Anstrengungen
> freundlich gegenüberzustehen.
>
> Dies alles mit etwas Fehlermarge, da ich schon lange nicht mehr
> reingeschaut habe. Ergänzungen also willkommen (dann lerne ich auch
> was bei ;-)
>
> lg
>
> [1] Ein Thema für sich, an dem, wie mensch sich das auch denken
>kann, so einige Kontroversen entstehen.
>
> [2] https://en.wikipedia.org/wiki/Raspberry_Pi
> -
>
> If anybody is interested I would try to translate it.
>
>


sure

-- 
luigi
___
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] [OT] rasperry 4

2019-06-25 Thread luigi scarso
On Tue, Jun 25, 2019 at 9:15 AM luigi scarso  wrote:

>
>
> https://wiki.ubuntu.com/ARM/RaspberryPi
> 18.04.2 both 32bit and 64bit work
>
>
I mean in raspberry 3B & 3B+,
pi4 is slightly different :
https://www.element14.com/community/docs/DOC-92641/l/raspberry-pi-4-model-b-frequently-asked-questions-faq
but I expect that ubuntu will run ok
-- 
luigi
___
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] [OT] rasperry 4

2019-06-25 Thread luigi scarso
On Tue, Jun 25, 2019 at 12:15 AM Henri Menke  wrote:

> On 25/06/19 12:30 AM, luigi scarso wrote:
> > just seen
> > https://www.raspberrypi.org/products/raspberry-pi-4-model-b/
> >
> > I would like to know your impressions
>
> Does it still need proprietary binary blobs in the kernel?


dunno


>
> so it is as useless as all the models before because it can only
> run their custom Raspbian distro.
>


https://wiki.ubuntu.com/ARM/RaspberryPi
18.04.2 both 32bit and 64bit work

-- 
luigi
___
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] [OT] rasperry 4

2019-06-24 Thread luigi scarso
just seen
https://www.raspberrypi.org/products/raspberry-pi-4-model-b/

I would like to know your impressions

-- 
luigi
___
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] Tagged PDF Best Practice Guide: Syntax

2019-06-14 Thread luigi scarso
https://www.pdfa.org/resource/tagged-pdf-best-practice-guide-syntax/

-- 
luigi
___
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] No menu bar option for Adobe Reader

2019-05-01 Thread luigi scarso
On Sun, Apr 28, 2019 at 10:38 PM Paul Schalck  wrote:

> @luigi: Version 11. I know, it isn't supported anymore since October 2017.
>



https://linuxconfig.org/how-to-install-latest-adobe-acrobat-reader-dc-on-ubuntu-18-04-bionic-beaver-linux-with-wine
seems to work,
I have installed
AcroRdrDC1901020099_en_US.exe
and opened a couple of files.

-- 
luigi
___
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] No menu bar option for Adobe Reader

2019-04-28 Thread luigi scarso
On Sun, Apr 28, 2019 at 9:42 PM Paul Schalck  wrote:

>
>  I use Acrord because I'm used to it and because I think it still has the
> best subpixel rendering, at least in the Linux world (with Wine). Mozilla's
> PDF.js comes close though.
>

 which version of adobe reader are you using?

-- 
luigi
___
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] luatex crash around page 1000

2019-04-12 Thread luigi scarso
On Fri, Apr 12, 2019 at 8:03 AM Akira Kakuto  wrote:

> > mtx-context | fatal error: return code: -1073741571
>
> I suspect that may be a limitation in 32bit binary.
> Try to install 64bit ConTeXt if you are using 32bit one
> and your OS is 64bit.
>
>

The other chance is the inclusion of a  pdf with an unusual image.

-- 
luigi
___
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] Can't use MetaFun with mplib anymore

2019-03-14 Thread luigi scarso
On Thu, Mar 14, 2019 at 10:52 AM Hans Hagen  wrote:

> as currently the variable is isn't used we can also comment it
>
>
>
seems so
I have commented the line, and all formats and the plain test run.


-- 
luigi
___
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] Can't use MetaFun with mplib anymore

2019-03-14 Thread luigi scarso
On Thu, Mar 14, 2019 at 5:56 AM Henri Menke  wrote:

>
> Dear list,
>
> Something has changed in MetaFun and it can no longer be used in plain
> LuaTeX,
> with neither of
>
> luatex test.tex
> mtxrun --script plain test.tex
>
> This is the error:
>
> >> LUATEXFUNCTIONALITY
> >> "mp.print(LUATEXFUNCTIONALITY)"
> ! Equation cannot be performed (numeric=string).
>
> MWE is below, as always.
>
> Cheers, Henri
>
> ---
>
> \directlua{
> local mpkpse = kpse.new(arg[0], "mpost")
>
> local function finder(name, mode, ftype)
> if mode == "w" then
> return name
> else
> return mpkpse:find_file(name,ftype)
> end
> end
>
> local mpx = mplib.new {
> find_file = finder
> }
> local ret = mpx:execute[[
> boolean mplib ; mplib := true ;
> input metafun.mp ;
> ]]
>
> print(ret.log)
> }
> \bye
>
>
in mp-mlib.mpiv it seems that we should have
string  LUATEXFUNCTIONALITY ; LUATEXFUNCTIONALITY :=
runscript("mp.print(LUATEXFUNCTIONALITY)") ;
instead of
numeric LUATEXFUNCTIONALITY ; LUATEXFUNCTIONALITY :=
runscript("mp.print(LUATEXFUNCTIONALITY)") ;

Now I have
tex/texmf-context/metapost/context/base/mpiv$ grep -r LUATEXFUNCTIONALITY
mp-mlib.mpiv:%numeric LUATEXFUNCTIONALITY ; LUATEXFUNCTIONALITY :=
runscript("mp.print(LUATEXFUNCTIONALITY)") ;
mp-mlib.mpiv:string  LUATEXFUNCTIONALITY ; LUATEXFUNCTIONALITY :=
runscript("mp.print(LUATEXFUNCTIONALITY)") ;

and your example looks ok.

-- 
luigi
___
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] (huge thanks) attaching files from links

2019-03-04 Thread luigi scarso
On Mon, Mar 4, 2019 at 10:09 PM Pablo Rodriguez  wrote:

>
> PS: I wonder whether ConTeXt/LuaTeX might do my laundry, the dishes,
> home cleaning or cooking... .
>

Yes ---  it's called IoT

https://meeting.contextgarden.net/2018/abstracts.shtml

ConTeXt: unexpected usage
Hans Hagen
The development of ConTeXt (with LuaTeX) is a continuous process and is
driven by user demands, changes in the ecosystem, like fonts, but also by
personal needs. Because we’re not talking of macros alone but also of a
rather large library of Lua code, I can also run applications on top of
LuaTeX with ConTeXt supporting them one way or another. In this talk I will
discuss how I abuse the system in domotica.


-- 
luigi
___
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] util-sha.lua misbehaving?

2019-03-04 Thread luigi scarso
On Mon, Mar 4, 2019 at 8:40 PM Pablo Rodriguez  wrote:

> On 3/4/19 7:33 PM, luigi scarso wrote:
> > [...]
> >  what does
> > $ luatex --credits
> > say ?
>
> $ luatex --credits
> This is LuaTeX, Version 1.09.2 (TeX Live 2019/dev)
> [...]
> Development id: 7075
>

ok , older.
The next one should  be  luatex 1.10 ,  but I dont know exactly when.


-- 
luigi
___
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] util-sha.lua misbehaving?

2019-03-04 Thread luigi scarso
On Mon, Mar 4, 2019 at 7:27 PM Pablo Rodriguez  wrote:

> On 3/4/19 7:12 PM, luigi scarso wrote:
> > [...]
> > Sorry for the impatience (the feature is essential for me): when
> could
> > be the new version expected a beta or stable version of the ConTeXt
> > Suite?
> >
> > r7090 | luigi.sca...@gmail.com <mailto:luigi.sca...@gmail.com> |
> > 2019-02-28 23:52:43 +0100 (Thu, 28 Feb 2019) | 1 line
> >
> > fixed a bug in SHS512 -- trunk
> >
> > Could be that it's  already in beta --- can you check  ?
>
> I have just checked and it isn’t there.
>

 what does
$ luatex --credits
say ?
-- 
luigi
___
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] util-sha.lua misbehaving?

2019-03-04 Thread luigi scarso
On Mon, Mar 4, 2019 at 6:48 PM Pablo Rodriguez  wrote:

> On 3/4/19 4:34 PM, luigi scarso wrote:
> > On Thu, Feb 28, 2019 at 10:37 PM Hans Hagen wrote:
> >
> > On 2/28/2019 6:46 PM, Pablo Rodriguez wrote:
> > > Dear list,
> >
> > > Could anyone tell me what I am missing here?
> > it's bug in the engine ... as a workaround you can uncomment th etop
> > lines in util-sha and fall back on pure lua
> >
> > it should be fixed  now.
>
> Many thanks for the fix, Luigi.
>
> Sorry for the impatience (the feature is essential for me): when could
> be the new version expected a beta or stable version of the ConTeXt Suite?
>
> Many thanks for your help,
>
>


r7090 | luigi.sca...@gmail.com | 2019-02-28 23:52:43 +0100 (Thu, 28 Feb
2019) | 1 line

fixed a bug in SHS512 -- trunk

Could be that it's  already in beta --- can you check  ?


-- 
luigi
___
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] util-sha.lua misbehaving?

2019-03-04 Thread luigi scarso
On Thu, Feb 28, 2019 at 10:37 PM Hans Hagen  wrote:

> On 2/28/2019 6:46 PM, Pablo Rodriguez wrote:
> > Dear list,
>
> > Could anyone tell me what I am missing here?
> it's bug in the engine ... as a workaround you can uncomment th etop
> lines in util-sha and fall back on pure lua
>
>
it should be fixed  now.


-- 
luigi
___
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] TeX Live 2019: attempt to call a nil value (upvalue 'isfile')

2019-03-01 Thread luigi scarso
On Fri, Mar 1, 2019 at 12:01 PM Mojca Miklavec <
mojca.miklavec.li...@gmail.com> wrote:

> On Fri, 1 Mar 2019 at 08:50, luigi scarso wrote:
>
> > ( forget the time, it's a zero-optimized binary (fast to compile))
>
> It takes even longer for me with the binary from the distribution.
>

I know, but  we use the minimals  as checkpoint;
on that platform 47.547 seconds for standard luatex means that something is
(profoundly) wrong.



-- 
luigi
___
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] TeX Live 2019: attempt to call a nil value (upvalue 'isfile')

2019-02-28 Thread luigi scarso
On Fri, Mar 1, 2019 at 8:16 AM Mojca Miklavec <
mojca.miklavec.li...@gmail.com> wrote:

> On Fri, 1 Mar 2019 at 07:39, Mojca Miklavec wrote:
> > On Fri, 1 Mar 2019 at 00:14, Henri Menke wrote:
> > >
> > > Dear list,
> > >
> > > I just installed TeX Live 2019 pretest and running context --make
> fails with
> > ,
> > The latest ConTeXt has just been included yesterday and should be
> > available since today (some time after the usual nightly update cca. 5
> > hours ago + delays to finish the build and sync the mirrors).
> >
> > So please retry.
>
> Here's my attempt of compiling
> doc/context/sources/general/manuals/luatex/luatex.tex
>
> fonts   > defining > font with asked name 'dejavusansmono' is
> not found using lookup 'name'
> fonts   > defining > unknown font 'dejavusansmono', loading aborted
> fonts   > defining > unable to define 'dejavusansmono' as
> 'dejavu-10pt-tt-tf-0--0'
> ! error:  (linebreak): invalid list tail, probably missing
> gluemtx-context | fatal error: return code: 1
>
>



> The first hint is that we should probably include more font
> dependencies in ConTeXt scheme. I can take care of that if you have
> further suggestions (other than dejavu).
>
>
just to be sure in my minimal with latest zip
$> context luatex
 mkiv lua stats  > used platform: linux-64, type: unix, binary subtree:
texmf-linux-64
mkiv lua stats  > used engine: luatex version 1.1 with functionality level
7088, banner: this is luatex, version 1.10.0 (tex live 2019)
mkiv lua stats  > control sequences: 53180 of 65536 + 10
mkiv lua stats  > lua properties: engine: lua 5.3, used memory: 441 MB
(ctx: 437 MB), hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 21.608 seconds, 294 processed pages, 294 shipped
pages, 13.606 pages/second
system  | total runtime: 47.547 seconds

( forget the time, it's a zero-optimized binary (fast to compile))

In general: at every new release I have complains about "how deadly slow is
texlive  installation".
On the other side , some  could wonder why *DejaVu* are not installed by
default regardless of  engine/scheme.


-- 
luigi
___
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] TeX Live 2019: attempt to call a nil value (upvalue 'isfile')

2019-02-28 Thread luigi scarso
On Fri, Mar 1, 2019 at 12:17 AM Henri Menke  wrote:

> Hm, it looks like the macro code hasn't been updated from 2018 yet, because
> after fixing isfile it crashes when trying to load the old pdfe library.
>
>
seems so.
I have just tested luatex 1.10 against the latest zip and it's all ok.

-- 
luigi
___
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] A strange request...

2019-02-20 Thread luigi scarso
On Wed, Feb 20, 2019 at 5:23 PM Willi Egger  wrote:

> Hi all,
>
> I am siting with a project of making a “dwarsligger”, you know these
> books, printed on bible-thin-printing paper, which are about  12 x 8 cm.
> One opens them while holding them ‘landscape’ with the spine on the top…
>
> Now there is of course a little struggle with the page numbering. The
> reading page consists out of the even page together with the following
> uneven page. It is easy to print on the uneven page a page number, however
> this will result in uneven page numbers only throughout the book.
>
> My question is, whether there is an algorithm to print page numbers as
> follows:
>
>
> 1  2  3  4  5  6  7  8  9 (this is the ordinary numbering)
> 1 2 3 4 5 (this is the requested numbering)
>
> Does someone have an idea how to solve this?
>
> Any hints are most appreciated!
>
> Pickup n>=0, and find q and  r such
n = 2q + r,r = 0 or r=1

It's not clear if you have 6 what you want to print (3 or 4 ?)
but playing with that formula can help you .
In many times, it's better to start from zero, so it could be that you
have to translate your input sequence by adding -1
and the output sequence by adding +1 .



>
-- 
luigi
___
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] Macro in a macro with optional argument

2019-02-12 Thread luigi scarso
On Tue, Feb 12, 2019 at 8:27 AM Pierre-Francois Bonnefoi <
bonnefoi...@gmail.com> wrote:

> Hello,
>
> I try to define automatically some macros to include cliparts in my TikZ
> drawings and I've defined the following macro :
>
> \def\clipart#1#2{%
> \expandafter\def\csname tk#1\endcsname{\dosingleempty\expandafter\csname
> dotk#1\endcsname}%
> \expandafter\def\csname
> dotk#1\endcsname[##1]{\iffirstargument\image{cisco/#1}{##1}\else\image{cisco/#1}{#2}\fi}
> }
>
> \clipart{pc}{.8} % defines the macro \tkpc to include the picture
> "cisco/pc"
>
> The issue arises when I use the newly defined \tkpc : the argument is not
> optional and I have to put \kpc[.5] for example.
> To add insult to injury, the value passed in argument is ignored also :
> \iffirtargument return always false...
>
> Do you have any idea ?
>
> Best regards,
> Pierre-François.
>

could be that  \dosingleempty sees \expandafter ?
try
\expandafter\def\csname tk#1\endcsname{\dosingleempty{\expandafter\csname
dotk#1\endcsname}}%

-- 
luigi
___
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] Luatex 1.09.2 announcement

2019-01-30 Thread luigi scarso
==
LuaTeX 1.09.2 2019-01-19
==

This is a transitional release to LuaTeX 1.10 for TeX Live 2019




The LuaTeX team
___
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] New logo proposal

2019-01-30 Thread luigi scarso
On Wed, Jan 30, 2019 at 10:15 AM Floris van Manen  wrote:

> If TeX and Context are about typesetting beautiful readable typography,
> the logos as presented do not reflect that thought per se.
> At first glance is is a pile of incoherent letters and colours.
> e.g. difficult to read and memorise.
>


perhaps a gradient on background can suggest the right orientation of
reading.

-- 
luigi
___
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] textext with plain MetaFun

2019-01-21 Thread luigi scarso
On Mon, Jan 21, 2019 at 10:47 AM Henri Menke  wrote:

> On 1/21/19 10:40 PM, luigi scarso wrote:
> > On Mon, Jan 21, 2019 at 8:57 AM Henri Menke 
> wrote:
> >
> >> Dear list,
> >>
> >> When I process the short MetaFun example
> >>
> >> beginfig(1)
> >> draw textext("MetaFun") ;
> >> endfig;
> >> end
> >>
> >> with plain MetaFun, i.e.
> >>
> >> mpost '' test.mp
> >>
> >>
> >  what does
> > $> mpost -mem=metafun '\relax; tracingall; input test.mp;'
> > say ?
>
> Log is attached.
>

hm.

# cat test.mp
hobbiestextext := true;
beginfig(1)
draw textext("MetaFun") ;
endfig;
end

# mpost -interaction=batchmode -mem=metafun '\relax;   input test.mp;'

# gs test.1

You should see the text at the bottom left.  It seems that there is a
string _s_  not initialized.

-- 
luigi
___
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] textext with plain MetaFun

2019-01-21 Thread luigi scarso
On Mon, Jan 21, 2019 at 8:57 AM Henri Menke  wrote:

> Dear list,
>
> When I process the short MetaFun example
>
> beginfig(1)
> draw textext("MetaFun") ;
> endfig;
> end
>
> with plain MetaFun, i.e.
>
> mpost '' test.mp
>
>
 what does
$> mpost -mem=metafun '\relax; tracingall; input test.mp;'
say ?

-- 
luigi
___
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] LuaTeX manual is broken

2019-01-18 Thread luigi scarso
On Fri, Jan 18, 2019 at 9:33 AM Henri Menke  wrote:

> Dear devs,
>
> The LuaTeX manual hosted at
> http://www.pragma-ade.nl/general/manuals/luatex.pdf is broken.  All the
> pages are offset in all the viewers I tested.  I tried:
>
> - Evince 3.28.4 (uses cairo 1.15.10)
> - PDF.js 2.0.943
> - Foxit 2.4.4.0911
> - muPDF 1.12.0
>

confirmed.

-- 
luigi
___
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] final thoughts on experiments with lua

2019-01-10 Thread luigi scarso
On Thu, Jan 10, 2019 at 12:11 PM Henning Hraban Ramm  wrote:

>
>  a Lua pairs table, the order can be arbitrary.
>

sure ,  the *default*  __pairs gives pseudo-arbitrary order, but you can
always use metatable:
--
-- test.lua
--
local _c,_t=0,{}
local t = {}
setmetatable(t, {
   __newindex = function(tbl, k, v)
  _c=_c+1
  _t[_c]=k
  rawset(tbl, k, v)
   end,

  __pairs = function(tbl)
  local i = 1
  return function(tbl,k)
k = _t[i]
i=i+1
return k,tbl[k]
  end, tbl,nil
end,
})


t['a']= 'aaa'
t['3a']= '3aa'
t['b']= 'baa'
t['2b']= '2ba'
t['c']= 'caa'
t['2c']= '2ca'
t['d']= 'daa'
t['2d']= '2da'
t['e']= 'eaa'
t['2e']= '2ea'


for k,v in pairs(t) do print(k,v) end



$ mtxrun --script test.lua
a aaa
3a 3aa
b baa
2b 2ba
c caa
2c 2ca
d daa
2d 2da
e eaa
2e 2ea

--
luigi
___
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] final thoughts on experiments with lua

2019-01-10 Thread luigi scarso
On Thu, Jan 10, 2019 at 10:27 AM Schmitz Thomas A. <
thomas.schm...@uni-bonn.de> wrote:

>
>
> > On 10. Jan 2019, at 01:08, Hans Hagen  wrote:
> >
> > it all depends on use ... if you can be more specific ...
>
> Hans, Luigi,
>
> thanks for your hints on list sorting - they are appreciated, but I’ve
> been there many many times: it’s impossible to be more specific because
> numbering can be unexpectedly weird. Combinations of Greek and Roman
> letters, sometimes (for historic reasons) even lines that are out of
> numeric sequence. I’ve tried to catch these exceptions in sort functions,
> only to have to add even more ifs and buts when I was processing the next
> author. And I’m pretty sure that the solution is not in sorting a table
> index: the correct sequence is already in the source, it just has to be
> preserved. What I do now, in a nutshell: I have tables such as
>
> sections = { “1”, “2”, “2a” }
>
> words = { [“1”] = { “a”, “b” },
>   [“2a”] = { “c”, “d” } }
>
> so I can iterate through ipairs(sections) in sequence and pick up the word
> lists for each section. In the greater scheme of things, as Hraban pointed
> out: if there were an “ordered table” structure in Lua, this is precisely
> what it would do behind the scenes; it would just make it easier for the
> user.
>

the point is that I believe that is also doable in lua...
maybe could be helpful to have a significative example in python, ton see
if we can mimic it in lua  ?

-- 
luigi
___
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] final thoughts on experiments with lua

2019-01-09 Thread luigi scarso
On Wed, Jan 9, 2019 at 8:57 PM Thomas A. Schmitz 
wrote:

>
> One final thought: one limitation that I still find cumbersome to work
> around is the fact that associative arrays ("pairs" in Lua speak) do not
> have an order. When I analyze my texts, I want book numbers, chapters,
> paragraphs preserved in the order in which they are read (entered into
> the table). In many cases, it is not possible (or extremely awkward) to
> sort these numbers, since chapters may be numbered something like 2, 2a,
> 3, 3α, 3β etc. python has the OrderedDict() in its collections module.
> In Lua, the best I could find was entering the chapter numbers into an
> array (ipair) and then retrieve it from there. Maybe there is a better way?
>
>
table.sort (list [, comp])
Sorts list elements in a given order, in-place, from list[1] to
list[#list]. If comp is given, then it must be a function that receives two
list elements and returns true when the first element must come before the
second in the final order (so that, after the sort, i < j implies not
comp(list[j],list[i])). If comp is not given, then the standard Lua
operator < is used instead

-- 
luigi
___
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] further experiments with lua

2019-01-09 Thread luigi scarso
On Wed, Jan 9, 2019 at 9:47 AM Hans Hagen  wrote:

>
> so you need:
>
> require "char-ini"
>
> local s = "Ä"
>
>
also

if not characters then
require("char-ini")
end
local s = "Ä"
print(characters.uccode(s))

-- 
luigi
___
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] Update problems

2019-01-07 Thread luigi scarso
On Mon, Jan 7, 2019 at 6:47 PM Weber, Matthias  wrote:

>
> I still don’t know what’s going on with PDF inclusion. The ones that cause
> trouble are kind of old (from 2005), and I could “upgrade”
>
>  fixing it now
-- 
luigi
___
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] graphics

2018-12-13 Thread luigi scarso
On Thu, Dec 13, 2018 at 4:45 PM Alan Braslau 
wrote:

> Of course, it is:
>
> double jn(int n,double x);
>
> and
>
> vardef jn(expr n, x) = scantokens(lua("mp.quoted( ffi.C.jn(" & decimal n &
> "," & decimal x & "))")) enddef ;
>
> Alan
>
> (shows that I have yet to use jn ;-)
>

I often use this as reference
source/texk/web2c/luatexdir/luaffi/test.lua

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

  1   2   3   4   5   6   7   8   9   10   >