Re: [NTG-context] bug in lmtx

2021-03-09 Thread Jano Kula
Hi Thomas,

On Tue, Mar 9, 2021 at 9:44 PM Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> wrote:

> Thomas A. Schmitz schrieb am 09.03.2021 um 21:37:
> >
> > Test \hskip1em ἀβ
>
> Test \hskip1em\relax ἀβ
>

This is likely the side effect of new implementation of glues in LMTX,
where you can switch the order (\hskip 3pt minus 1pt plus 2pt) and do some
other tricks. And there are more differences to *The TeXbook *as we know
it, see luametatex.pdf.

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

2021-03-09 Thread Wolfgang Schuster

Thomas A. Schmitz schrieb am 09.03.2021 um 21:37:

Hi Hans,

I've found a very interesting bug in lmtx. The following MWE gives the 
expected result in mkiv; in lmtx, one character is missing. Perhaps 
you can figure out what's happening...


All best

Thomas

\setupbodyfont [gentium, 12pt]

\starttext

Test \hskip1em ἀβ


Test \hskip1em\relax ἀβ

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] bug in lmtx

2021-03-09 Thread Thomas A. Schmitz

Hi Hans,

I've found a very interesting bug in lmtx. The following MWE gives the 
expected result in mkiv; in lmtx, one character is missing. Perhaps you 
can figure out what's happening...


All best

Thomas

\setupbodyfont [gentium, 12pt]

\starttext

Test \hskip1em ἀβ

Test \hskip1em ἁβ

\stoptext
___
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] SVG images inside XML setups

2021-03-09 Thread Thangalin
Thanks, Hans.

The image is now rendered. Here's a picture of the output from ConTeXt
(left) and the expected output using Apache Batik:

https://i.ibb.co/zPqfhjK/metapost-svg.png

Would a copy of the SVG file be useful for unit testing?

Thanks again.

> I probably need to add that wrapper in a few spots but in general if you
> can use that in case of issues. It has to do with catcodes, chicken and
> eggs.
___
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] SVG images inside XML setups

2021-03-09 Thread Hans Hagen

On 3/9/2021 7:29 AM, Thangalin wrote:

Here's a fairly minimal example showing an issue, using ConTeXt LMTX.
Save the following as "main.tex":

% SOF
\startbuffer[document]

\stopbuffer

\startbuffer[csvg]
http://www.w3.org/2000/svg";>


\stopbuffer

\startxmlsetups xml:xhtml
   \xmlsetsetup{\xmldocument}{body|img}{xml:*}
\stopxmlsetups

\startxmlsetups xml:body
   \xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:img
   \placefigure{}{\externalfigure[\xmlatt{#1}{src}][conversion=mp]}
   \placefigure{}{\externalfigure[circle.svg][conversion=mp]}
   \placefigure{}{\includesvgbuffer[csvg][conversion=mp]}
\stopxmlsetups


\startxmlsetups xml:img
\starttexcode
\placefigure{}{\externalfigure[\xmlatt{#1}{src}][conversion=mp]}
\placefigure{}{\externalfigure  [circle.svg][conversion=mp]}
\placefigure{}{\includesvgbuffer[csvg]  [conversion=mp]}
\stoptexcode
\stopxmlsetups


I probably need to add that wrapper in a few spots but in general if you 
can use that in case of issues. It has to do with catcodes, chicken and 
eggs.


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
___