[NTG-context] \read segfaults in lmtx

2020-05-19 Thread Marcel Fabian Krüger
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

Running the command after "executing runner 'run luametatex format':"
directly gives

segmentation fault (core dumped)  
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatexcont-yes.mkiv

Tracing this command using valgrind shows

==51536== Conditional jump or move depends on uninitialised value(s)
==51536==at 0x1789A6: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==51536==by 0x14D074: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==51536==by 0x199599: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==51536==by 0x15B03B: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==51536==by 0x15838C: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==51536==by 0x154A39: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==51536==by 0x12090D: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==51536==by 0x4A12001: (below main) (in /usr/lib/libc-2.31.so)
==51536== 
==51536== Use of uninitialised value of size 8
==51536==at 0x4A6003B: fclose@@GLIBC_2.2.5 (in /usr/lib/libc-2.31.so)
==51536==by 0x14D074: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==51536==by 0x199599: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==51536==by 0x15B03B: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==51536==by 0x15838C: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==51536==by 0x154A39: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==51536==by 0x12090D: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==51536==by 0x4A12001: (below main) (in /usr/lib/libc-2.31.so)
==51536== 
==51536== Invalid read of size 4
==51536==at 0x4A6003B: fclose@@GLIBC_2.2.5 (in /usr/lib/libc-2.31.so)
==51536==by 0x14D074: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==51536==by 0x199599: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==51536==by 0x15B03B: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==51536==by 0x15838C: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==51536==by 0x154A39: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==51536==by 0x12090D: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==51536==by 0x4A12001: (below main) (in /usr/lib/libc-2.31.so)
==51536==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==51536== 
==51536== 
==51536== Process terminating with default action of signal 11 (SIGSEGV): 
dumping core
==51536==  Access not within mapped region at address 0x0
==51536==at 0x4A6003B: fclose@@GLIBC_2.2.5 (in /usr/lib/libc-2.31.so)
==51536==by 0x14D074: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==51536==by 0x199599: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==51536==by 0x15B03B: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==51536==by 0x15838C: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==51536==by 0x154A39: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==51536==by 0x12090D: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==51536==by 0x4A12001: (below main) (in /usr/lib/libc-2.31.so)
==51536==  If you believe this happened as a result of a stack
==51536==  overflow in your program's main thread (unlikely but
==51536==  possible), you can try to increase the size of the
==51536==  main thread stack using the --main-stacksize= flag.
==51536==  The main thread stack size used in this run was 8388608.
==51536== 
==51536== HEAP SUMMARY:
==51536== in use at exit: 85,957,820 bytes in 639,104 blocks
==51536==   total heap usage: 971,974 allocs, 332,870 frees, 174,449,076 bytes 
allocated
==51536== 
==51536== LEAK SUMMARY:
==51536==definitely lost: 4,552 bytes in 236 blocks
==51536==indirectly lost: 0 bytes in 0 blocks
==51536==  possibly lost: 50,271,367 bytes in 532,242 blocks
==51536==still reachable: 35,681,901 bytes in 106,626 blocks
==51536== suppressed: 0 bytes in 0 blocks
==51536== Rerun with --leak-check=full to see details of leaked memory
==51536== 
==51536== Use --track-origins=yes to see where uninitialised values come from
==51536== For lists of detected and suppressed errors, rerun with: -s

Re: [NTG-context] \pagewidth undefined?

2020-05-19 Thread Gerben Wierda

> On 19 May 2020, at 20:11, Hans Hagen  wrote:
> 
> On 5/19/2020 5:37 PM, Wolfgang Schuster wrote:
>> Gerben Wierda schrieb am 19.05.2020 um 13:42:
>>> OK. I just noticed in lmtx documentation that \paperheight and \paperwidth 
>>> primitives have been removed, but there is no information what rteplaces 
>>> them. So, all the documentation that contains them has been invalidated 
>>> (e.g. examples in details.pdf)
>> I can't find \pagewidth in the current versison of details.pdf.
>> As Pablo wrote you can use \paperwidth (or \printpaperwidth) or one of the 
>> following methods.
>>  begin example
>> \setupexternalfigures[location=default]
>> \setuplayout[tight]
>> \showframe
>> \starttext
>> \centerbox{\externalfigure[mill.png][width=\textwidth]}
>> \page
>> \centerbox{\externalfigure[mill.png][width=\paperwidth]}
>> \page
>> \centerbox{\externalfigure[mill.png][factor=max]}
>> \page
>> \centerbox{\externalfigure[mill.png][factor=min]}
>> \stoptext
>>  end example
> 
> \pagewidth etc were low level engine primitives that were never meant to be 
> used directly (backend related, and even then very sensitive for confusion); 
> as Wolfgang indicated, these were never supposed to be used directly

Thanks all. I moved to this:

\setuppapersize[A4]
\setuplayout
  [page]
  [backspace=5mm,
   topspace=5mm]
\setuplayout [page]

and using \textwidth and \textheight.

G

> 
> 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] Inkscape command line arguments have changed

2020-05-19 Thread Thangalin
As a work around, rename /usr/bin/inkscape to new-inkscape, such as:

# mv /usr/bin/inkscape /usr/bin/new-inkscape

Then change /usr/bin/inkscape to intercept and replace the command
line argument:

#!/usr/bin/env bash
/usr/bin/new-inkscape \
  $(echo "$@" | sed 's/--export-pdf/--export-type=pdf --export-filename/')

Then make sure the shell script is executable:

chmod +x /usr/bin/inkscape

This produces the expected results:

graphics> inclusion > checking conversion of 'genealogy-sm',
fullname 'images/genealogy-sm.svg', old format 'svg', new format
'pdf', conversion 'default', resolution 'default', arguments ''
graphics> inclusion > converting 'genealogy-sm'
('images/genealogy-sm.svg') from 'svg' to 'pdf'
graphics> inclusion > new graphic, using hash
'images/m_k_i_v_genealogy-sm.svg.pdf->1->crop->->->default->default->default'

Stay safe everybody.
___
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] Text for proofing fonts

2020-05-19 Thread Bruce Horrocks


> On 19 May 2020, at 15:45, Pavneet Arora  wrote:
> 
> The texts are on 
> github, but no mention of license:

The license is given on the Github page: "This work is licensed under a 
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International 
License."



--
Bruce Horrocks
Hampshire, UK

___
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] Inkscape command line arguments have changed

2020-05-19 Thread mf

Il 19/05/20 20:50, Thangalin ha scritto:

Minor correction:

\startluacode
figures.programs.inkscape={
   command="inkscape",
   pdfargument=[[
 "%oldname%"
 --export-dpi=600
 --export-type=pdf
 --export-filename="%newname%"
   ]],
   pngargument=[[
 "%oldname%"
 --export-dpi=600
 --export-type=png
 --export-filename="%newname%"
   ]],
}
\stopluacode

Still doesn't work, though. ConTeXt persists with using --export-pdf=...
Cheers!



The latest version of ConTeXt should detect Inkscape's version and adapt 
the command line options accordingly (I tested it successfully on Debian 
64 Buster + Inkscape 0.92 and Debian 64 Sid + Inkscape 1.0rc).


Next year's versions will no longer detect Inkscape's version and will 
use the newer syntax.


See https://wiki.contextgarden.net/SVG

This topic has already been discussed in this thread:
https://www.mail-archive.com/ntg-context@ntg.nl/msg94153.html

Massi
___
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] Inkscape command line arguments have changed

2020-05-19 Thread Thangalin
Minor correction:

\startluacode
figures.programs.inkscape={
  command="inkscape",
  pdfargument=[[
"%oldname%"
--export-dpi=600
--export-type=pdf
--export-filename="%newname%"
  ]],
  pngargument=[[
"%oldname%"
--export-dpi=600
--export-type=png
--export-filename="%newname%"
  ]],
}
\stopluacode

Still doesn't work, though. ConTeXt persists with using --export-pdf=...
Cheers!
___
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] Inkscape command line arguments have changed

2020-05-19 Thread Thangalin
$ inkscape --version
Inkscape 1.0 (4035a4fb49, 2020-05-01)
Pango version: 1.44.7

With the new release of Inkscape, --export-pdf no longer exists. The
new options appear to be:

  --export=type=pdf
  --export=pdf-version=1.5 (or 1.4)
  --export-filename=filename.pdf

Aditya has shown a work-around on TeX.SE. I've changed the code a little:

\startluacode
figures.programs.inkscape={
  command="inkscape",
  pdfargument=[[
"%oldname%"
--export-dpi=600
--export=type=pdf
--export-filename="%newname%"
  ]],
  pngargument=[[
"%oldname%"
--export-dpi=600
--export=type=png
--export-filename="%newname%"
  ]],
}
\stopluacode

Unfortunately, this does override outdated command line argument.
ConTeXt appears to pass in the old argument:

context --purgeall --trackers=graphics.conversion filename.tex

Shows:

Unknown option --export-pdf=images/m_k_i_v_genealogy.svg.pdf

How would you replace the export-pdf option for the new version of Inkscape?

(I'll send a bug to the Inkscape issue tracker; it strikes me that
--export-pdf could have remained an alias.)

Thank you!
___
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] \pagewidth undefined?

2020-05-19 Thread Hans Hagen

On 5/19/2020 5:37 PM, Wolfgang Schuster wrote:

Gerben Wierda schrieb am 19.05.2020 um 13:42:
OK. I just noticed in lmtx documentation that \paperheight and 
\paperwidth primitives have been removed, but there is no information 
what rteplaces them. So, all the documentation that contains them has 
been invalidated (e.g. examples in details.pdf)

I can't find \pagewidth in the current versison of details.pdf.

As Pablo wrote you can use \paperwidth (or \printpaperwidth) or one of 
the following methods.


 begin example
\setupexternalfigures[location=default]

\setuplayout[tight]

\showframe

\starttext

\centerbox{\externalfigure[mill.png][width=\textwidth]}

\page

\centerbox{\externalfigure[mill.png][width=\paperwidth]}

\page

\centerbox{\externalfigure[mill.png][factor=max]}

\page

\centerbox{\externalfigure[mill.png][factor=min]}

\stoptext
 end example


\pagewidth etc were low level engine primitives that were never meant to 
be used directly (backend related, and even then very sensitive for 
confusion); as Wolfgang indicated, these were never supposed to be used 
directly


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] LMTX not working in Windows 10

2020-05-19 Thread Hans Hagen

On 5/19/2020 6:46 PM, Rik Kabel wrote:


On 5/19/2020 12:12, Pablo Rodriguez wrote:

On 5/19/20 5:55 PM, Wolfgang Schuster wrote:

Pablo Rodriguez schrieb am 19.05.2020 um 16:42:

[...]
I’m getting exactly the same error on Windows (x64).

Where could we get the latest binary?

You can download the binary from the following link but only the 32bit
version for Windows is up-to-date.

http://dl.contextgarden.net/build/luametatex/

Wolfgang,

many thanks for the information.

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



Hallelulah! I now have a working LMTX again.

The version at 
http://dl.contextgarden.net/build/luametatex/x86_64-w64-mingw32/luametatex.exe, 
when put into place, did the job.
Normally the installer should have the right one, not sure why that 
failed as I make those bins here. Anyway, there is some new low level 
stuff so hopefully nothing gets broken. And some more coming, even more 
fundamental (and so tricky that first wolfgang need to check that).


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] LMTX not working in Windows 10

2020-05-19 Thread Rik Kabel


On 5/19/2020 12:12, Pablo Rodriguez wrote:

On 5/19/20 5:55 PM, Wolfgang Schuster wrote:

Pablo Rodriguez schrieb am 19.05.2020 um 16:42:

[...]
I’m getting exactly the same error on Windows (x64).

Where could we get the latest binary?

You can download the binary from the following link but only the 32bit
version for Windows is up-to-date.

http://dl.contextgarden.net/build/luametatex/

Wolfgang,

many thanks for the information.

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


Hallelulah! I now have a working LMTX again.

The version at 
http://dl.contextgarden.net/build/luametatex/x86_64-w64-mingw32/luametatex.exe, 
when put into place, did the job.


--
Rik

___
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 not working in Windows 10

2020-05-19 Thread Pablo Rodriguez
On 5/19/20 5:55 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 19.05.2020 um 16:42:
>> [...]
>> I’m getting exactly the same error on Windows (x64).
>>
>> Where could we get the latest binary?
>
> You can download the binary from the following link but only the 32bit
> version for Windows is up-to-date.
>
> http://dl.contextgarden.net/build/luametatex/

Wolfgang,

many thanks for the information.

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] LMTX not working in Windows 10

2020-05-19 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 19.05.2020 um 16:42:

On 5/19/20 8:57 AM, Hans Hagen wrote:

On 5/19/2020 1:41 AM, Jairo A. del Rio wrote:

Hi everyone! I've tried installing LMTX on Windows 10 (x64) (I use
Ubuntu, but my PC isn't available now). Whatever. When I try to execute
context.exe the following appears:

! Parameters must be numbered consecutively.

0
l.214 \def\gobbleoneargument               #0

then your binary is not updated and in sync with the rest of the tex code


Hans,

I’m getting exactly the same error on Windows (x64).

Where could we get the latest binary?


You can download the binary from the following link but only the 32bit 
version for Windows is up-to-date.


http://dl.contextgarden.net/build/luametatex/

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] \pagewidth undefined?

2020-05-19 Thread Wolfgang Schuster

Gerben Wierda schrieb am 19.05.2020 um 13:42:

OK. I just noticed in lmtx documentation that \paperheight and \paperwidth 
primitives have been removed, but there is no information what rteplaces them. 
So, all the documentation that contains them has been invalidated (e.g. 
examples in details.pdf)

I can't find \pagewidth in the current versison of details.pdf.

As Pablo wrote you can use \paperwidth (or \printpaperwidth) or one of 
the following methods.


 begin example
\setupexternalfigures[location=default]

\setuplayout[tight]

\showframe

\starttext

\centerbox{\externalfigure[mill.png][width=\textwidth]}

\page

\centerbox{\externalfigure[mill.png][width=\paperwidth]}

\page

\centerbox{\externalfigure[mill.png][factor=max]}

\page

\centerbox{\externalfigure[mill.png][factor=min]}

\stoptext
 end example

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
___


[NTG-context] Text for proofing fonts

2020-05-19 Thread Pavneet Arora
Hope all are keeping well.

An interesting article about text for proofing fonts, although, 
regrettably, it is focused on English language only:

https://www.typography.com/blog/text-for-proofing-fonts

Might be worth a further look to see if they can be included in the 
distribution to expand our library of such texts.  The texts are on 
github, but no mention of license:

https://github.com/hoeflerco/proofs

I am adding at least the links to staged wiki changes I am working on.

Warm regards.

-- 
Pavneet Arora   m: +1 647-406-6843
Waroc Informatike: pavneet_ar...@waroc.com
___
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 not working in Windows 10

2020-05-19 Thread Pablo Rodriguez
On 5/19/20 8:57 AM, Hans Hagen wrote:
> On 5/19/2020 1:41 AM, Jairo A. del Rio wrote:
>> Hi everyone! I've tried installing LMTX on Windows 10 (x64) (I use
>> Ubuntu, but my PC isn't available now). Whatever. When I try to execute
>> context.exe the following appears:
>>
>> ! Parameters must be numbered consecutively.
>> 
>> 0
>> l.214 \def\gobbleoneargument               #0
> then your binary is not updated and in sync with the rest of the tex code

Hans,

I’m getting exactly the same error on Windows (x64).

Where could we get the latest binary?

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] \pagewidth undefined?

2020-05-19 Thread Pablo Rodriguez
On 5/19/20 1:42 PM, Gerben Wierda wrote:
> OK. I just noticed in lmtx documentation that \paperheight and
> \paperwidth primitives have been removed, but there is no information
> what rteplaces them. So, all the documentation that contains them has
> been invalidated (e.g. examples in details.pdf)
Hi Gerben,

doesn’t this work for you?

  \setuplayout[page]
  \starttext
  \externalfigure[foo.pdf][width=\paperwidth]
  \stoptext

Just in case it helps,

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] two superscript versions with Garamond Libre

2020-05-19 Thread Pablo Rodriguez
On 5/19/20 8:24 AM, Henning Hraban Ramm wrote:
> [...]
> That’s what I did. WRT swash capitals, the author told me:
>
> \startquotation
> I adopted this font, as a fork from an upstream which is no longer
published under a libre license. Then I did make some slight extensions.
But I didn't choose this. Right now, I am working on a new font,
Salieri, which I hope will be of better quality once it is finished, and
which, if it ever gets swash capitals, will get them according to some
historically-rooted standard, most likely, though we are nowhere near that.
> \stopquotation
>
> I read this as “better don’t expect me to enhance anything substantial“.

Many thanks for the information, Hraban.

The new Salieri font is being discussed at
https://typedrawers.com/discussion/3627/.

The author is also working with the GFS in a revival of the original
»Heraklit« designed by Hermann Zapf (this thread has some comments about
it: https://typedrawers.com/discussion/3569/).

Just in case anyone is interested,

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] \pagewidth undefined?

2020-05-19 Thread Gerben Wierda
Why doesn't

\starttext
\externalfigure[foo.pdf][width=\pagewidth]
\stoptext

work? Without [width=\pagewidth] it works.
___
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] \setbreakpoints[compound] and numbers

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

How could I get breaking lines with numbers please?

Example:

\setbreakpoints[compound]
\setuplayout[width=1mm]
\starttext
xxx/xxx % line break is ok here
xx1/xxx % I would like a linebreak here too
\stoptext

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

maillist : ntg-context@ntg.nl / 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] Proposal to update the "Manuals" wiki page

2020-05-19 Thread 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,







___
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] \pagewidth undefined?

2020-05-19 Thread Gerben Wierda
OK. I just noticed in lmtx documentation that \paperheight and \paperwidth 
primitives have been removed, but there is no information what rteplaces them. 
So, all the documentation that contains them has been invalidated (e.g. 
examples in details.pdf)

I have been unable to find out how to get the page width and page height dimens 
for use in my macros.

G

> On 19 May 2020, at 11:58, Gerben Wierda  wrote:
> 
> Why doesn't
> 
> \starttext
> \externalfigure[foo.pdf][width=\pagewidth]
> \stoptext
> 
> work? Without [width=\pagewidth] it works.
> ___
> 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] Can someone explain the \startuseMPgraphic interface to me?

2020-05-19 Thread Gerben Wierda
In details.pdf, I encounter

\startuseMPgraphic{mpos:par:columnset:shade}
numeric h ;
for i=1 upto nofmultipars :
h := bbheight(p) ;
if multikind[i] = "single" :
fill multipars[i] topenlarged -.5h

When I encounter that, I wonder:
- where do nofmultipars, p, multikind, and multpars come from?
- what does mpos:par:columnset:shade signify? Just a name? Do the ’:’ have 
meaning?

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
___


Re: [NTG-context] LMTX not working in Windows 10

2020-05-19 Thread Hans Hagen

On 5/19/2020 1:41 AM, Jairo A. del Rio wrote:
Hi everyone! I've tried installing LMTX on Windows 10 (x64) (I use 
Ubuntu, but my PC isn't available now). Whatever. When I try to execute 
context.exe the following appears:


! Parameters must be numbered consecutively.

0
l.214 \def\gobbleoneargument               #0

then your binary is not updated an din sync with the rest of the tex code


-
  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] two superscript versions with Garamond Libre

2020-05-19 Thread Henning Hraban Ramm

> Am 19.05.2020 um 08:08 schrieb Jan U. Hasecke :
> 
> Am 18.05.20 um 22:23 schrieb Henning Hraban Ramm:
>> 
>> 
>>> Am 18.05.2020 um 17:18 schrieb Pablo Rodriguez :
>>> 
>>> Typeface is available at
>>> https://github.com/dbenjaminmiller/garamond-libre/releases/latest.
>> 
>> Thank you for the hint, I’m always looking for interesting fonts.
>> This is a nicely designed classical Garamond with a big glyph repertoire 
>> (Latin, poly Greek, Cyrillic, Byzantine/Greek music symbols, math and other 
>> symbols), but after first tests I found flaws:
>> – Numbers are a bit too dark; table numbers look a bit too big, oldstyle 
>> numbers a bit too small.
>> – Small caps are lacking accented vowels including umlauts.
>> – Cyrillic is missing Kyrgyz/Kazakh letters (i.e. Cyrillic extended).
>> – Kerning is not yet perfect.
>> – Accents sit a bit too close on the letters.
>> – Swash capitals don’t fit the style at all, they look like some modern hand 
>> font like Lucida Handwriting.
> 
> Thanks a lot for your insights.
> 
> From the repo I guess that this is a quite new project; you could post
> bug reports.

That’s what I did. WRT swash capitals, the author told me:

\startquotation
I adopted this font, as a fork from an upstream which is no longer published 
under a libre license. Then I did make some slight extensions. But I didn't 
choose this. Right now, I am working on a new font, Salieri, which I hope will 
be of better quality once it is finished, and which, if it ever gets swash 
capitals, will get them according to some historically-rooted standard, most 
likely, though we are nowhere near that.
\stopquotation

I read this as “better don’t expect me to enhance anything substantial“.

HR
___
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] Minimal code for exporting custom tags

2020-05-19 Thread Aditya Mahajan

On Tue, 19 May 2020, Aditya Mahajan wrote:


On Mon, 18 May 2020, Aditya Mahajan wrote:


Thanks! This also helped me find the documentation in hybrid.pdf.


Also epub-mkiv.pdf. Not sure why I didn't think of looking there.


How do I pass options so that the export is

...

(or some variant of that). I thought that

\startelement[mycommand][name=whatever]

should work (there are some such examples in the texmf tree), but it does 
not.


epub-mkiv.pdf states that I need `\setupexport[properties=yes]`, but that 
doesn't work either:


There is a bug in back-exp.lua:

--- /tmp/back-exp.lua   2020-05-19 02:13:54.961276226 -0400
+++ /opt/luametatex/texmf-context/tex/context/base/mkiv/back-exp.lua
2020-05-19 02:13:01.687385009 -0400
@@ -2305,8 +2305,10 @@
 if not p then
 -- skip
 elseif exportproperties == v_yes then
+n = n+1
 r[n] = attributes(p)
 else
+n = n+1
 r[n] = properties(p)
 end
 end

Patching this fixes the export.

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] two superscript versions with Garamond Libre

2020-05-19 Thread Jan U. Hasecke
Am 18.05.20 um 22:23 schrieb Henning Hraban Ramm:
> 
> 
>> Am 18.05.2020 um 17:18 schrieb Pablo Rodriguez :
>>
>> Typeface is available at
>> https://github.com/dbenjaminmiller/garamond-libre/releases/latest.
> 
> Thank you for the hint, I’m always looking for interesting fonts.
> This is a nicely designed classical Garamond with a big glyph repertoire 
> (Latin, poly Greek, Cyrillic, Byzantine/Greek music symbols, math and other 
> symbols), but after first tests I found flaws:
> – Numbers are a bit too dark; table numbers look a bit too big, oldstyle 
> numbers a bit too small.
> – Small caps are lacking accented vowels including umlauts.
> – Cyrillic is missing Kyrgyz/Kazakh letters (i.e. Cyrillic extended).
> – Kerning is not yet perfect.
> – Accents sit a bit too close on the letters.
> – Swash capitals don’t fit the style at all, they look like some modern hand 
> font like Lucida Handwriting.

Thanks a lot for your insights.

From the repo I guess that this is a quite new project; you could post
bug reports.

juh

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