Re: [NTG-context] Unexpected space after hyphen in xml/html export

2018-10-11 Thread Rik Kabel

On 10/10/2018 15:11, Rik Kabel wrote:

On 10/10/2018 14:50, Rik Kabel wrote:

On 10/8/2018 18:32, Hans Hagen wrote:


Alas, it is fixed for that particular occurence, but it still 
occurs 29 times in the document (using today's beta).


A more extended search shows that there are also spaces afters 
en-dashes (in "Press|–|Citizen" and  in "Miniatur|–|Bibliothek der 
Deutschen Classiker"), but none after em-dashes. Unfortunately, my 
attempts to reproduce this in a smaller document have so far failed.

well, you know: no mwe, no solution
And here is the mwe. The culprit, it appears, is bidi. I have tried 
all documented options (but not all combinations) for 
\setupdirections, and the only one under which there is no problem is 
"off". With bidi active, there is a spurious space wherever a 
linebreak is introduced. As the example demonstrates, this is not a 
function of the compounds, but of hyphenation in general.


\setupbackend [export=yes]
\setupdirections  [bidi=on]
\starttext
abraca% adjust to cause hyphenation with your textwidth
abra|-|cadabra abra|-|cadabra abra|-|cadabra abra|-|cadabra
abra|-|cadabra abra|-|cadabra abra|-|cadabra abra|-|cadabra
abra|-|cadabra abra|-|cadabra abra|-|cadabra abra|-|cadabra
abra-cadabra abra-cadabra abra-cadabra abra-cadabra
abra-cadabra abra-cadabra abra-cadabra abra-cadabra
abra-cadabra abra-cadabra abra-cadabra abra-cadabra
\stoptext

(The problem appears in the export html/xml file, not in the pdf.)

Not a function of explicit compounds (||) but of hyphenation of 
compounds. Normal hyphenation does not bring about the problem.


I also note that \setupdirection with every option combination I have 
tried has no discernible effect on my export output, and can safely be 
removed from the export mode of my document, so for me this issue 
disappears.

I do not know if this is the general case.
--
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] Implicit plots/level curves possible?

2018-10-11 Thread Aditya Mahajan

On Tue, 9 Oct 2018, Alan Braslau wrote:


On Mon, 8 Oct 2018 17:56:24 -0400 (EDT)
Aditya Mahajan  wrote:


Here is a proof of concept implementation in Lua + MP so that you can use:

\ContourPlot
   [
 function=2*x^5 + x*y + y^5,
 x={0, 2},
 y={-2, 0.5},
 n=1000, % Number of discretization points
   ]

The code is fairly fast. But be careful. As with all ConTeXt key-value
assignment, `x = { ...}` is different from `x={...}`. I am being a bit
lazy here, and haven't adapted the metapost code to draw the axes to adapt
to the function.


Hans and I played with Aditya's demonstration, to complete the example.
It demonstrates some fun lua+MP+ConTeXt tricks:


Looking at lua-mplib.mpvi, isn't it better to use MP namespace (instead of 
mp) for user defined functions?


The metafun manual says that one can omit the prefix `lua` and simply use 
`mp` or `MP`. That does not seem to work.


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] ConTeXt git mirror

2018-10-11 Thread mf

The git mirror is now synchronized again.
Many thanks to the people who fixed it.

Massimiliano

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