Re: [NTG-context] Proposal to update the "Manuals" wiki page

2020-05-20 Thread Gerben Wierda


> On 19 May 2020, at 15:22, Garulfo  wrote:
> 
> Hi,
> 
> I hope you're all doing well.
> 
> Please, you will find a proposal to update the Manuals page on the wiki:
> https://wiki.contextgarden.net/ManualsGallery
> 
> 2 objectives:
> 1/ to make something more visual, to help the user identify the different 
> documents, their organization, their date of release.
> 2/ to gather all the updated documents in one place
> 
> Sources were :
> - http://www.pragma-ade.com/overview.htm
> - https://wiki.contextgarden.net/Manuals, and wiki snippets here and there.
> - https://github.com/hmenke/context-examples/blob/master/GUIDE.md
> 
> Depending on your comments, and if there is an interest, I would be happy to 
> improve it (correct errors, change document segmentation, better colors 
> choice, additional data such as authors, number of pages).
> 
> It's mainly built from cvs table + script.
> 
> Finally, if you approve this update, I can arrange to clean up some pages of 
> the wiki about the manuals.
> 
> 
> Best,
> 

Very helpful addition.

G

> 
> 
> 
> 
> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


Re: [NTG-context] Emoji color fonts not working on LMTX/Context MKIV

2020-05-20 Thread Jairo A. del Rio
Pablo pointed out the bug in Evince. Sorry too. I've used another PDF
viewer and SVG color displays correctly. Thanks.

El mié., 20 de may. de 2020 a la(s) 16:32, Jairo A. del Rio (
jairoadelr...@gmail.com) escribió:

> Info from \luatexbanner
>
> For ConTeXt (LuaTeX): This is LuaTeX, Version 1.13.0 (TeX Live 2021/dev)
> For ConTeXt (LMTX): This is LuaMetaTeX, Version 2.06.03
>
> El mié., 20 de may. de 2020 a la(s) 16:25, Hans Hagen (j.ha...@xs4all.nl)
> escribió:
>
>> On 5/20/2020 10:26 PM, Jairo A. del Rio wrote:
>> > I did. It turns out that installing graphicsmagick does the trick (pun
>> > intended) for Noto Color Emoji. However, the issue persists for SVG
>> > fonts and the same message appears, despite of having cleaned the cache
>> > (I've used mtxrun --script cache --erase). Using the code Pablo sent,
>> > with EmojiOne Color instead of Twemoji Mozilla, I get the following
>> > error messages:
>>
>> So, what version do you use?
>>
>> Hans
>>
>> -
>>Hans Hagen | PRAGMA ADE
>>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
>> -
>>
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Emoji color fonts not working on LMTX/Context MKIV

2020-05-20 Thread Jairo A. del Rio
Info from \luatexbanner

For ConTeXt (LuaTeX): This is LuaTeX, Version 1.13.0 (TeX Live 2021/dev)
For ConTeXt (LMTX): This is LuaMetaTeX, Version 2.06.03

El mié., 20 de may. de 2020 a la(s) 16:25, Hans Hagen (j.ha...@xs4all.nl)
escribió:

> On 5/20/2020 10:26 PM, Jairo A. del Rio wrote:
> > I did. It turns out that installing graphicsmagick does the trick (pun
> > intended) for Noto Color Emoji. However, the issue persists for SVG
> > fonts and the same message appears, despite of having cleaned the cache
> > (I've used mtxrun --script cache --erase). Using the code Pablo sent,
> > with EmojiOne Color instead of Twemoji Mozilla, I get the following
> > error messages:
>
> So, what version do you use?
>
> Hans
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Emoji color fonts not working on LMTX/Context MKIV

2020-05-20 Thread Hans Hagen

On 5/20/2020 10:18 PM, Pablo Rodriguez wrote:

On 5/20/20 9:39 PM, Hans Hagen wrote:

[...]
LMTX (2020.05.18 16:50) displays only black and white icons.

I think this might be a bug in LMTX.

Could you confirm the issue?

what if you wipe the cache


Many thanks for your reply, Hans.

icons are black and white, no color after wiping the cache.

Made no difference with a brand-new install either.

Just accidentally, I discovered this is an issue in Evince.

LMTX should handle color in LMTX with other PDF code than in MkIV.


won't happen ... actually, at some point mkiv will use a similar method 
as lmtx



MuPDF displays colorful. So do acroread for Linux, xpdf, SumatraPDF and
even Okular.

Sorry for the noise, since Evince seems to be the culprit.
for me acrobat and mupdf based viewers (sumatra also uses it, actually a 
rather old version) are the reference .. it makes no sense to cripple 
context because of an issue with a viewer


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] ntg-context Digest, Vol 191, Issue 66

2020-05-20 Thread jk...@inradius.net

> Message: 5
> Date: Wed, 20 May 2020 15:38:23 -0400 (EDT)
> From: Aditya Mahajan mailto:adit...@umich.edu>>
> Subject: Re: [NTG-context] metapost boxes error
> 
> On Wed, 20 May 2020, jk...@inradius.net  wrote:
> 
>> Is there a different approach to use boxes.mp?
>> 
>> MNWE:
>> 
>> \startMPpage
>> input boxes.mp;
>> boxit.bl("left");
>> boxit.br ("right");
>> br.sw - bl.ne = (20,0);
>> drawboxed(bl,br);
>> \stopMPpage
> 
> Move `input boxes` outside the `\startMPpage`.
> 
> 
> \startMPdefinitions
>   input boxes.mp;
> \stopMPdefinitions
> 
> \starttext
> \startMPpage
>   boxit.bl("left");
>   boxit.br ("right");
>   br.sw - bl.ne = (20,0);
>   drawboxed(bl,br);
> \stopMPpage
> \stoptext
> 
> 
> Aditya
> 

Of all things. Thanks Aditya!

___
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] Emoji color fonts not working on LMTX/Context MKIV

2020-05-20 Thread Hans Hagen

On 5/20/2020 10:26 PM, Jairo A. del Rio wrote:
I did. It turns out that installing graphicsmagick does the trick (pun 
intended) for Noto Color Emoji. However, the issue persists for SVG 
fonts and the same message appears, despite of having cleaned the cache 
(I've used mtxrun --script cache --erase). Using the code Pablo sent, 
with EmojiOne Color instead of Twemoji Mozilla, I get the following 
error messages:


So, what version do you use?

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Emoji color fonts not working on LMTX/Context MKIV

2020-05-20 Thread Jairo A. del Rio
I did. It turns out that installing graphicsmagick does the trick (pun
intended) for Noto Color Emoji. However, the issue persists for SVG fonts
and the same message appears, despite of having cleaned the cache (I've
used mtxrun --script cache --erase). Using the code Pablo sent, with
EmojiOne Color instead of Twemoji Mozilla, I get the following error
messages:

LMTX (error):

function call [998]:
...mtx/tex/texmf-context/tex/context/base/mkiv/mlib-svg.lua:1471: bad
argument #1 to 'gsub' (string expected, got nil)


MKIV (outlined emojis, flag emojis not working):

fonts > svg conversion > executing runner 'otfsvg': inkscape
--export-area-drawing --shell > temp-otf-svg-shape.log

fonts > svg conversion > processing 1829 svg containers

xml > core > load error: invalid xml file - parsed text

(the line below repeated dozens of times)

fonts > svg conversion > processing can be going on for a while

fonts > svg conversion > processing 1829 pdf results

fonts > svg conversion > there are no converted shapes, fix your setup

fonts > svg conversion > svg conversion time 4.246 seconds


In any event, LMTX prints only black and white emojis.

On 5/20/2020 9:31 PM, Pablo Rodriguez wrote:
> > On 5/20/20 12:26 PM, Jairo A. del Rio wrote:
> >> [...]
> >> Only Twemoji Mozilla and Segoe UI Emoji worked for me, so, what am I
> >> doing wrong?
> >
> > Hi Jairo,
> >
> > using latest ConTeXt with the following sample, I get these results:
> >
> >\definefontfamily[emoj][rm][Twemoji Mozilla][features={color}]
> >\setupbodyfont[emoj]
> >\starttext
> >臘
> >\stoptext
> >
> > MkIV (2020.01.30 14:13) displays colored icons.
> >
> > LMTX (2020.05.18 16:50) displays only black and white icons.
> >
> > I think this might be a bug in LMTX.
> >
> > Could you confirm the issue?
> what if you wipe the cache
>
___
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] Emoji color fonts not working on LMTX/Context MKIV

2020-05-20 Thread Pablo Rodriguez
On 5/20/20 9:39 PM, Hans Hagen wrote:
>> [...]
>> LMTX (2020.05.18 16:50) displays only black and white icons.
>>
>> I think this might be a bug in LMTX.
>>
>> Could you confirm the issue?
> what if you wipe the cache

Many thanks for your reply, Hans.

icons are black and white, no color after wiping the cache.

Made no difference with a brand-new install either.

Just accidentally, I discovered this is an issue in Evince.

LMTX should handle color in LMTX with other PDF code than in MkIV.

MuPDF displays colorful. So do acroread for Linux, xpdf, SumatraPDF and
even Okular.

Sorry for the noise, since Evince seems to be the culprit.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Emoji color fonts not working on LMTX/Context MKIV

2020-05-20 Thread Hans Hagen

On 5/20/2020 9:31 PM, Pablo Rodriguez wrote:

On 5/20/20 12:26 PM, Jairo A. del Rio wrote:

[...]
Only Twemoji Mozilla and Segoe UI Emoji worked for me, so, what am I
doing wrong?


Hi Jairo,

using latest ConTeXt with the following sample, I get these results:

   \definefontfamily[emoj][rm][Twemoji Mozilla][features={color}]
   \setupbodyfont[emoj]
   \starttext
   臘
   \stoptext

MkIV (2020.01.30 14:13) displays colored icons.

LMTX (2020.05.18 16:50) displays only black and white icons.

I think this might be a bug in LMTX.

Could you confirm the issue?

what if you wipe the cache

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] metapost boxes error

2020-05-20 Thread Aditya Mahajan

On Wed, 20 May 2020, jk...@inradius.net wrote:


Is there a different approach to use boxes.mp?

MNWE:

\startMPpage
input boxes.mp;
 boxit.bl("left");
 boxit.br("right");
 br.sw - bl.ne = (20,0);
 drawboxed(bl,br);
\stopMPpage


Move `input boxes` outside the `\startMPpage`.


\startMPdefinitions
  input boxes.mp;
\stopMPdefinitions

\starttext
\startMPpage
  boxit.bl("left");
  boxit.br("right");
  br.sw - bl.ne = (20,0);
  drawboxed(bl,br);
\stopMPpage
\stoptext


Aditya
___
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] Emoji color fonts not working on LMTX/Context MKIV

2020-05-20 Thread Pablo Rodriguez
On 5/20/20 12:26 PM, Jairo A. del Rio wrote:
> [...]
> Only Twemoji Mozilla and Segoe UI Emoji worked for me, so, what am I
> doing wrong?

Hi Jairo,

using latest ConTeXt with the following sample, I get these results:

  \definefontfamily[emoj][rm][Twemoji Mozilla][features={color}]
  \setupbodyfont[emoj]
  \starttext
  臘
  \stoptext

MkIV (2020.01.30 14:13) displays colored icons.

LMTX (2020.05.18 16:50) displays only black and white icons.

I think this might be a bug in LMTX.

Could you confirm the issue?

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] metapost boxes error

2020-05-20 Thread jk...@inradius.net
Is there a different approach to use boxes.mp?

MNWE:

\startMPpage
input boxes.mp;
  boxit.bl("left");
  boxit.br("right");
  br.sw - bl.ne = (20,0);
  drawboxed(bl,br);
\stopMPpage

LOG snippets:

system  > ConTeXt  ver: 2020.04.10 19:11 MKIV beta  fmt: 2020.4.19  
int: english/english

metapost log> loading metafun, including plain.mp version 1.004 for metafun 
iv and xl
metapost log> 
metapost log> >> _dojoin
metapost log> ! Isolated expression.




___
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] Proposal to update the "Manuals" wiki page

2020-05-20 Thread context

Hello Garulfo,

thanks for the great work!

Two suggestions:

1. Obsolete manuals: Could their pictures be scratched somehow? One will 
see on the first sight that he is to investigate "no-more-valid" stuff.


2. Could you add a "download all manuals" hlink/button next to each 
(sub)title to download appropriate manuals as .zip, so to get:


"
Up-to-date Documentation (title) 
[download-all-up-to-date-manuals-in-this-section-inc-subsections 
(hlink)]

...
Graphics and Colors (subtitle) 
[download-all-graphics-and-colors-manuals-inc-subsections (hlink)]

...
"

- IMHO it would be good for offline users (and for those who prefer 
printed form).


Best regards,

Lukas


On 2020-05-19 15:22, Garulfo wrote:

Hi,

I hope you're all doing well.

Please, you will find a proposal to update the Manuals page on the 
wiki:

https://wiki.contextgarden.net/ManualsGallery

2 objectives:
1/ to make something more visual, to help the user identify the
different documents, their organization, their date of release.
2/ to gather all the updated documents in one place

Sources were :
- http://www.pragma-ade.com/overview.htm
- https://wiki.contextgarden.net/Manuals, and wiki snippets here and 
there.

- https://github.com/hmenke/context-examples/blob/master/GUIDE.md

Depending on your comments, and if there is an interest, I would be
happy to improve it (correct errors, change document segmentation,
better colors choice, additional data such as authors, number of
pages).

It's mainly built from cvs table + script.

Finally, if you approve this update, I can arrange to clean up some
pages of the wiki about the manuals.


Best,







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

maillist : ntg-context@ntg.nl / 
http://www.ntg.nl/mailman/listinfo/ntg-context

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

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

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


[NTG-context] Text to be placed into the free space after columns and end of the page

2020-05-20 Thread context

Hello,

suppose the minimal example:


\showboxes
\starttext
  \startcolumns[n=2,balance=no,]
\input knuth
  \stopcolumns
  \vfill
  abcd
\stoptext


This produces two page document with columns on the first page and text 
"abcd" on the second.


But - I want the text "abcd" to be placed to the bottom of the same page 
as columns are (thus I attempted to put \vfill into the code, but it 
doesn't work), so to get one page document looking like:


+-- page width -+
Column text | (unused)
column text |
column text |
column text |
column text |
column text |

(some vertical space)

abcd
+- end of page -+

- How to achieve this?

Best regards,

Lukas
\showboxes
\starttext
  \startcolumns[n=2,balance=no,]
\input knuth
  \stopcolumns
  \vfill
  abcd
\stoptext


Col.pdf
Description: Adobe PDF document
___
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] Proposal to update the "Manuals" wiki page

2020-05-20 Thread Hans Hagen

On 5/20/2020 4:55 PM, cont...@vivaldi.net wrote:

2. Could you add a "download all manuals" hlink/button next to each 
(sub)title to download appropriate manuals as .zip, so to get:


most manuals are in the distribution

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Proposal to update the "Manuals" wiki page

2020-05-20 Thread Denis Maier

Am 19.05.2020 um 15:22 schrieb Garulfo:

Hi,

I hope you're all doing well.

Please, you will find a proposal to update the Manuals page on the wiki:
https://wiki.contextgarden.net/ManualsGallery

2 objectives:
1/ to make something more visual, to help the user identify the 
different documents, their organization, their date of release.

2/ to gather all the updated documents in one place

Sources were :
- http://www.pragma-ade.com/overview.htm
- https://wiki.contextgarden.net/Manuals, and wiki snippets here and there.
- https://github.com/hmenke/context-examples/blob/master/GUIDE.md

Depending on your comments, and if there is an interest, I would be 
happy to improve it (correct errors, change document segmentation, 
better colors choice, additional data such as authors, number of pages).


It's mainly built from cvs table + script.

Finally, if you approve this update, I can arrange to clean up some 
pages of the wiki about the manuals.



Best,


Thanks! That's very helpful.

Best,
Denis

___
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] paperformat=landscape not working

2020-05-20 Thread Wolfgang Schuster

Hans Hagen schrieb am 20.05.2020 um 16:12:

On 5/20/2020 2:46 PM, Wolfgang Schuster wrote:

Peter Münster schrieb am 20.05.2020 um 14:01:

On Wed, May 20 2020, Hans Hagen wrote:


 [offset=\getdocumentargumentdefault{paperformat_to}{0pt}]


shouldn't that one then become

\setuppaper
   [offset=\getdocumentargumentdefault{paperformat_print}{0pt}]


Yes, I guess.


I think this is better.

\setuppaper
   [offset=\getdocumentargumentdefault{paperoffset}{0pt}]

indeed, you got me there,


Also wrong are ()

  o mtx-context-arrange.tex
  o mtx-context-markdown.tex

\doifdocumentargument {paperoffset} {
-   \definepapersize
- [offset=\getdocumentargument{paperoffset}]
+   \setuppaper
+ [offset=\getdocumentargumentdefault{paperoffset}{0pt}]
}

Wolfgang
___
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] Proposal to update the "Manuals" wiki page

2020-05-20 Thread Hans Hagen

On 5/19/2020 3:22 PM, Garulfo wrote:

Hi,

I hope you're all doing well.

Please, you will find a proposal to update the Manuals page on the wiki:
https://wiki.contextgarden.net/ManualsGallery

2 objectives:
1/ to make something more visual, to help the user identify the 
different documents, their organization, their date of release.

2/ to gather all the updated documents in one place

Sources were :
- http://www.pragma-ade.com/overview.htm
- https://wiki.contextgarden.net/Manuals, and wiki snippets here and there.
- https://github.com/hmenke/context-examples/blob/master/GUIDE.md

Depending on your comments, and if there is an interest, I would be 
happy to improve it (correct errors, change document segmentation, 
better colors choice, additional data such as authors, number of pages).


It's mainly built from cvs table + script.

Finally, if you approve this update, I can arrange to clean up some 
pages of the wiki about the manuals.

Nicely done.

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] paperformat=landscape not working

2020-05-20 Thread Hans Hagen

On 5/20/2020 2:46 PM, Wolfgang Schuster wrote:

Peter Münster schrieb am 20.05.2020 um 14:01:

On Wed, May 20 2020, Hans Hagen wrote:


 [offset=\getdocumentargumentdefault{paperformat_to}{0pt}]


shouldn't that one then become

\setuppaper
   [offset=\getdocumentargumentdefault{paperformat_print}{0pt}]


Yes, I guess.


I think this is better.

\setuppaper
   [offset=\getdocumentargumentdefault{paperoffset}{0pt}]

indeed, you got me there,

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] paperformat=landscape not working

2020-05-20 Thread Wolfgang Schuster

Peter Münster schrieb am 20.05.2020 um 14:01:

On Wed, May 20 2020, Hans Hagen wrote:


 [offset=\getdocumentargumentdefault{paperformat_to}{0pt}]


shouldn't that one then become

\setuppaper
   [offset=\getdocumentargumentdefault{paperformat_print}{0pt}]


Yes, I guess.


I think this is better.

\setuppaper
  [offset=\getdocumentargumentdefault{paperoffset}{0pt}]

Wolfgang

___
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] paperformat=landscape not working

2020-05-20 Thread Peter Münster
On Wed, May 20 2020, Hans Hagen wrote:

>> [offset=\getdocumentargumentdefault{paperformat_to}{0pt}]
>
> shouldn't that one then become
>
> \setuppaper
>   [offset=\getdocumentargumentdefault{paperformat_print}{0pt}]

Yes, I guess.


>> With LMTX, --extra=select is not working at all. I get this error:
>>
>> mtx-context | processing extra: mtx-context-select.tex
>> mtx-context | redirect luametatex -> luatex: luatex --luaonly
>> "/opt/context-lmtx/tex/texmf-linux-64/bin/mtxrun.lua" --script mtx-context
>> --extra=select --selection=2 file.pdf --redirected
>> mtx-context | processing extra: mtx-context-select.tex
>> mtx-context | warning: lua mismatch (luv: 0 <> bin: 5.2), forcing remake
>> /usr/share/texmf/scripts/context/lua/mtx-context.lua:1176: attempt to index 
>> field 'instance' (a nil value)

> that's not lmtx, but mkiv that you call

Ok, I've found the problem: context.lua and mtxrun.lua in
texmf-linux-64/bin did not have the execute permissions. It works after
adding the permissions.

Thanks,
-- 
   Peter
___
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] Proposal to update the "Manuals" wiki page

2020-05-20 Thread Rudolf Bahr
On Tue, May 19, 2020 at 03:22:47PM +0200, Garulfo wrote:
> Hi,
> 
> I hope you're all doing well.
> 
> Please, you will find a proposal to update the Manuals page on the wiki:
> https://wiki.contextgarden.net/ManualsGallery
> 
> 2 objectives:
> 1/ to make something more visual, to help the user identify the different
> documents, their organization, their date of release.
> 2/ to gather all the updated documents in one place
> 
> Sources were :
> - http://www.pragma-ade.com/overview.htm
> - https://wiki.contextgarden.net/Manuals, and wiki snippets here and there.
> - https://github.com/hmenke/context-examples/blob/master/GUIDE.md
> 
> Depending on your comments, and if there is an interest, I would be happy to
> improve it (correct errors, change document segmentation, better colors
> choice, additional data such as authors, number of pages).
> 
> It's mainly built from cvs table + script.
> 
> Finally, if you approve this update, I can arrange to clean up some pages of
> the wiki about the manuals.
> 
> 
> Best,
> 

Hi Garulfo,

thank you very much for your excellent work! It will be of great help.

Best wishes,

Rudolf
___
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] \read segfaults in lmtx

2020-05-20 Thread Hans Hagen

On 5/20/2020 12:36 PM, Marcel Fabian Krüger wrote:

On Wed, May 20, 2020 at 12:13:01PM +0200, Hans Hagen wrote:

On 5/20/2020 2:39 AM, Marcel Fabian Krüger wrote:

Hi,

using \read on any existing file seems to trigger a
segfault on lmtx. For example, take the document

\starttext
\newread\myread
\openinputfile\myread{test}
\read\myread to \abc
\closeinputfile\myread
\stoptext

where test.tex is any file (It doesn't matter if the file is empty or
not). On my system (linux x64, latest lmtx) this results in

mtx-context | fatal error: return code: 139


hm, looks like i close the file too soon (these read files are autoclosed on
read) .. i'll fix it


Which file is closed here? Experiments with a custom format suggest that the 
read
files are opened through the `open_data_file` callback, so even if they
are closed they probably should be closed by calling the `.close` member
of the returned table. But that never happens (This might be a related
bug: In my experiments, even for files loaded with `\input`, the close
function is never called.) and the issue seems to occur even if there is
no real file opened for this. So I don't see why LuaMetaTeX should call
fclose here at all. But anyway, thanks for looking into this.
end_file_reading is always called but has to close selectively, 
dependent on what has been opened,  eep in mind that a token list or so 
is also an input stream


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] paperformat=landscape not working

2020-05-20 Thread Hans Hagen

On 5/20/2020 10:34 AM, Peter Münster wrote:

Hi,

When the PDF-document is in landscape format, this does not work:

context --extra=select --selection=X
 --paperformat=A4,landscape*A4,landscape file.pdf

This patch helps:

--- mtx-context-select.tex~ 2020-05-20 10:28:42.702314061 +0200
+++ mtx-context-select.tex  2020-05-20 10:28:53.730225887 +0200
@@ -31,8 +31,8 @@
  \input mtx-context-common.tex
  
  \setuppapersize

-  [\getdocumentargumentdefault{paperformat_from}{A4}]
-  [\getdocumentargumentdefault{paperformat_to}{A4}]
+  [\getdocumentargumentdefault{paperformat_paper}{A4}]
+  [\getdocumentargumentdefault{paperformat_print}{A4}]
  
  \setuppaper

[offset=\getdocumentargumentdefault{paperformat_to}{0pt}]


shouldn't that one then become

\setuppaper
  [offset=\getdocumentargumentdefault{paperformat_print}{0pt}]



With LMTX, --extra=select is not working at all. I get this error:

mtx-context | processing extra: mtx-context-select.tex
mtx-context | redirect luametatex -> luatex: luatex --luaonly 
"/opt/context-lmtx/tex/texmf-linux-64/bin/mtxrun.lua" --script mtx-context 
--extra=select --selection=2 file.pdf --redirected
mtx-context | processing extra: mtx-context-select.tex
mtx-context | warning: lua mismatch (luv: 0 <> bin: 5.2), forcing remake
/usr/share/texmf/scripts/context/lua/mtx-context.lua:1176: attempt to index 
field 'instance' (a nil value)

that's not lmtx, but mkiv that you call

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] \read segfaults in lmtx

2020-05-20 Thread Marcel Fabian Krüger
On Wed, May 20, 2020 at 12:13:01PM +0200, Hans Hagen wrote:
> On 5/20/2020 2:39 AM, Marcel Fabian Krüger wrote:
> > Hi,
> > 
> > using \read on any existing file seems to trigger a
> > segfault on lmtx. For example, take the document
> > 
> > \starttext
> > \newread\myread
> > \openinputfile\myread{test}
> > \read\myread to \abc
> > \closeinputfile\myread
> > \stoptext
> > 
> > where test.tex is any file (It doesn't matter if the file is empty or
> > not). On my system (linux x64, latest lmtx) this results in
> > 
> > mtx-context | fatal error: return code: 139
> 
> hm, looks like i close the file too soon (these read files are autoclosed on
> read) .. i'll fix it

Which file is closed here? Experiments with a custom format suggest that the 
read
files are opened through the `open_data_file` callback, so even if they
are closed they probably should be closed by calling the `.close` member
of the returned table. But that never happens (This might be a related
bug: In my experiments, even for files loaded with `\input`, the close
function is never called.) and the issue seems to occur even if there is
no real file opened for this. So I don't see why LuaMetaTeX should call
fclose here at all. But anyway, thanks for looking into this.

Marcel
___
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] Emoji color fonts not working on LMTX/Context MKIV

2020-05-20 Thread Jairo A. del Rio
I've tried the following from the manuals and adapted some code to see if
it works:

1.
\definefontfeature[svg][svg=yes]
\definefontsynonym[Emoji][file:emojionecolor-svginot.ttf*default,svg]
\definesymbol[bug][\getglyphdirect{Emoji}{\char"1F41B}]
\starttext
\symbol[bug]
\stoptext

The emoji has no color when compiled with LuaTeX. Furthermore, the log
includes a lot of lines like the ones below:


fonts > svg conversion > executing runner 'otfsvg': inkscape
--export-area-drawing --shell > temp-otf-svg-shape.log


fonts > svg conversion > processing 1829 svg containers

xml > core > load error: invalid xml file - parsed text

With LMTX it gives an error about mlib-svg.

2.

\definefontfeature[overlay][default][ccmp=yes,colr=yes,dist=yes]
\definefontfeature[svg]
[default][svg=yes]
\definefontfeature[bitmap] [default][sbix=yes]
\definefontfeature [colored] [default]
[ccmp=yes,dist=yes,
colr=yes,svg=yes,sbix=yes]
\definefontsynonym[Emoji][file:notocoloremoji*default,colored]
\definesymbol[bug][\getglyphdirect{Emoji}{\char"1F41B}]
\starttext
\symbol[bug]
\stoptext

What I get is:

fonts > png conversion > processing 3374 png containers


sh: 1: gm: not found


sh: 1: gm: not found


sh: 1: gm: not found sh: 1: gm: not found

...

and the same line repeating itself
...

close source > level 1, order 3, name
'/home/lol/lmtx/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'

! error: (file /usr/share/fonts/truetype/noto/NotoColorEmoji.ttf) (ttf):
loca table not found


LMTX prints a file without any emoji.


Only Twemoji Mozilla and Segoe UI Emoji worked for me, so, what am I doing
wrong?


I'm working with Ubuntu 20.04 LTS x86_64 and Inkscape 0.92.5 (2060ec1f9f,
2020-04-08) in case it helps. Thank you in advance.
___
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] \read segfaults in lmtx

2020-05-20 Thread Hans Hagen

On 5/20/2020 2:39 AM, Marcel Fabian Krüger wrote:

Hi,

using \read on any existing file seems to trigger a
segfault on lmtx. For example, take the document

\starttext
\newread\myread
\openinputfile\myread{test}
\read\myread to \abc
\closeinputfile\myread
\stoptext

where test.tex is any file (It doesn't matter if the file is empty or
not). On my system (linux x64, latest lmtx) this results in

mtx-context | fatal error: return code: 139


hm, looks like i close the file too soon (these read files are 
autoclosed on read) .. i'll fix it


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] paperformat=landscape not working

2020-05-20 Thread Peter Münster
Hi,

When the PDF-document is in landscape format, this does not work:

context --extra=select --selection=X
--paperformat=A4,landscape*A4,landscape file.pdf

This patch helps:

--- mtx-context-select.tex~ 2020-05-20 10:28:42.702314061 +0200
+++ mtx-context-select.tex  2020-05-20 10:28:53.730225887 +0200
@@ -31,8 +31,8 @@
 \input mtx-context-common.tex
 
 \setuppapersize
-  [\getdocumentargumentdefault{paperformat_from}{A4}]
-  [\getdocumentargumentdefault{paperformat_to}{A4}]
+  [\getdocumentargumentdefault{paperformat_paper}{A4}]
+  [\getdocumentargumentdefault{paperformat_print}{A4}]
 
 \setuppaper
   [offset=\getdocumentargumentdefault{paperformat_to}{0pt}]


With LMTX, --extra=select is not working at all. I get this error:

mtx-context | processing extra: mtx-context-select.tex
mtx-context | redirect luametatex -> luatex: luatex --luaonly 
"/opt/context-lmtx/tex/texmf-linux-64/bin/mtxrun.lua" --script mtx-context 
--extra=select --selection=2 file.pdf --redirected
mtx-context | processing extra: mtx-context-select.tex
mtx-context | warning: lua mismatch (luv: 0 <> bin: 5.2), forcing remake
/usr/share/texmf/scripts/context/lua/mtx-context.lua:1176: attempt to index 
field 'instance' (a nil value)


Kind regards,
-- 
   Peter
___
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
___