Re: [NTG-context] About baseline alignment in metapost - issue on the wiki ?

2021-01-29 Thread Stefan Nedeljkovic
Thank you very much Garulfo!

On Fri, Jan 29, 2021 at 9:34 AM Garulfo  wrote:

> The dlft version doesn't seem to work on the wiki.
>
> A MVE here https://wiki.contextgarden.net/textext_positioning#Test_dlft
>
>
>
>
> Le 29/01/2021 à 09:01, Garulfo a écrit :
> > To align with the baseline :
> >
> > thetextext.drt("Hello, World!", (1cm, 5cm)) ;
> >
> > Also existing :
> >
> > thetextext.d  (center)
> > thetextext.dlft   (left)
>
> ___
> 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] Hyphenation on digits

2021-01-29 Thread Richard Mahoney
Hans,

Thanks for this.

In addition to:

({\it Ṛgveda}~\hyphenateddigits{1.114.10})  -- break after either "."

Here are some other typical cases reflecting material I've  been
working with of late:

{\it cf}.~(ARE 1949--50)\KSP, -- break after "--"

Tamil (lns 1---517, plates 11a---31b) -- break after either "---"

{\it Ekottarāgama}, T125, 2: 549a10-15. -- break anywhere



Best, Richard




-Original Message-
From: Hans Hagen 
Reply-To: mailing list for ConTeXt users 
To: mailing list for ConTeXt users , Henning
Hraban Ramm 
Subject: Re: [NTG-context] Hyphenation on digits
Date: Fri, 29 Jan 2021 11:25:00 +0100
Mailer: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0)
Gecko/20100101
 Thunderbird/78.6.1
X-Spam-Score: 0.0

On 1/29/2021 10:30 AM, Henning Hraban Ramm wrote:
> > Am 28.01.2021 um 15:00 schrieb Hans Hagen :
> > 
> > I'll add support for:
> >\pi\ =
> > \hyphenateddigits[\unknown]{3.141592653589793238462643383279502884
> > 197169399375105}
> > A quick and dirty hack as we don't need some full blown mechanism
> > for such a rare case.
> 
> Thank you! Might come handy for other non-words, as Richard has
> shown.
> Wikified: https://wiki.contextgarden.net/Hyphenation
Depending on usage it might need to b eimproved (like: does one wants
to break before a period or comma but let's first collect use cases
Hans

---
--   Hans Hagen | PRAGMA
ADE   Ridderstraat 27 | 8061 GH Hasselt | The
Netherlandstel: 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
__
_
-- 
T +6433121699  M +64210640216  E rmaho...@indica-et-buddhica.org
IM https://t.me/rmahoney  W https://indica-et-buddhica.org/


Indica et Buddhica  Littledene  Bay Road  Oxford  NZ
___
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] filter module / externalizing TikZ graphics

2021-01-29 Thread Aditya Mahajan
On Thu, 28 Jan 2021, Henning Hraban Ramm wrote:

> Still working on that.
> I hope you can help me here, Aditya!
> I’ll add these issues to the tracker of t-filter, if it makes sense.
> 
> 
> Testing with: ConTeXt  ver: 2021.01.24 16:07 LMTX  fmt: 2021.1.25
> 
> The setup below works, but only with \starttikz ... \stoptikz so far, I don’t 
> like the output file names, and using the working directory is tricky.
> 
> 
> (1) \processFILTERfile
> 
> \processtikzfile{img/example.pgf}
> can’t find the file:
> 
> t-filter> cached output file 'tikztemp/example1.pgf.pdf' missing. 
> Rerunning filter
> t-filter> file 'tikztemp/example1.pgf.pdf' cannot be found
> t-filter> current filter : tikzThick
> t-filter> base file : example1.pgf
> t-filter> input file : img/example1.pgf
> t-filter> output file : tikztemp/example1.pgf.pdf
> ...
> system  >   13: filename=img/example1.pgf foundname=img/example1.pgf 
> fullname=.../img/example1.pgf usedmethod=direct
> 
> Looks like ConTeXt can find the file, but the filter module cannot.
> 
> --trackers=resolvers.schemes (or \enabletrackers) doesn’t change anything WRT 
> log/output.

For \processFILTER, t-filter does not even read the file... so it has to do 
with how the filtercommand is defined. 

> Since this fails already, I don’t know if \processFILTERfile also uses 
> bufferbefore/-after (it should).

It does not. As I said, for processing external files, t-filter does not even 
read the file and just takes care of caching the result. It is assumed that the 
filter command can process the external file. 

I can see if it is possible to active before and after filters while processing 
external files. Another option is to write the external files as valid tex file 
(i.e., with a \startTEXpage .. \stopTEXpage wrapper), and when defining the 
filtercommand, use something like `context --environment=env filename`, where 
env is the environment file with all the settings for fonts etc. 

> (2) working directory
> 
> Since ConTeXt can’t put generated (temporary) files into a directory and 
> --result also only renames afterwards, the directory key doesn’t help, I had 
> to add "mv" and "cd" to my filtercommand.
> I didn’t check yet if caching works.

Caching should work if \definefilter is configured correctly. 

From the point of view of t-filter module, this is a bug in the external 
program and you should contact upstream for a fix :-) Most (all?) other 
programs are happy to write a file in any directory (modulo write permissions, 
etc.). I do not want to increase the complexity of the module to handle such 
corner cases. 

> (3) file names
> 
> Using \processFILTERfile the original file name base is preserved, according 
> to the log entry above.
> 
> If I use \starttikz[name=example], I get "JOBNAME-temp-tikzThick-example.tmp".
> I’d like to get something like "COMPONENTNAME-##-example.tmp" or a path like 
> "COMPONENTNAME/example_##.tmp".
> Is there a configuration hook in the module to change name generation?

No. I don't quite understand the concern. How do you plan to use a `name=value` 
option?

> (4) subprocess parameters
> 
> I’d like to forward some parameters from \starttikz to the temp buffer, e.g. 
> \starttikz[name=example][mystyle=thick]
> (using the same syntax as \startsection with a second pair of brackets for 
> custom parameters).
> And then have
> \starttikzpicture[\filterusersetupvariable{mystyle}]
> in the buffer.
> 
> My workaround so far is a copy of the filter setup (tikz/tikzThick), since we 
> have only a few different configurations.

The code that I had posted already handles this, provided that the options 
start on the line after \startfilter:


\usemodule[filter]

\startbuffer[tikz-before]
\usemodule[tikz]
\startTEXpage
\starttikzpicture
\stopbuffer

\startbuffer[tikz-after]
\stoptikzpicture
\stopTEXpage
\stopbuffer

\defineexternalfilter
  [externaltikz]
  [
bufferbefore=tikz-before,
bufferafter=tikz-after,
cache=yes,
filtercommand={context --batchmode \externalfilterinputfile\space 
--purgeall --result=\externalfilteroutputfile},
output={\externalfilterbasefile.pdf},
readcommand=\readPDFfile,
  ]

\define[1]\readPDFfile{\externalfigure[#1]} % width and height could be added

\starttext
\startexternaltikz
[very thick, ->]
  \draw (0,0) -- (1,1);
\stopexternaltikz

\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] font bug in latest from 2021.01.29 19:44?

2021-01-29 Thread Pablo Rodriguez
On 1/29/21 11:24 PM, Hans Hagen wrote:
> On 1/29/2021 9:59 PM, Pablo Rodriguez wrote:
>
>> Could anyone confirm this bug?
> hm, some overload protection side effect ... i'll fix it

Many thanks for the fix, Hans.

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] font bug in latest from 2021.01.29 19:44?

2021-01-29 Thread Hans Hagen

On 1/29/2021 9:59 PM, Pablo Rodriguez wrote:


Could anyone confirm this bug?

hm, some overload protection side effect ... 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
___


Re: [NTG-context] font bug in latest from 2021.01.29 19:44?

2021-01-29 Thread Jairo A. del Rio
Math fonts are broken. In fact, even with compact fonts disabled, math
fonts aren't working properly.

Jairo

El vie, 29 de ene. de 2021 a la(s) 16:18, Jairo A. del Rio (
jairoadelr...@gmail.com) escribió:

> Same here. It compiles well when the math font definition is commentend.
> The error seems to be there:
>
> \setfontid
>
>
> 
>
> \3>mainface-12pt-mm-mr--1
>
>  \font_helpers_low_level_define_compact ...ec \empty \let
> \lastrawfontcall \relax \mutable \letcsname #2\endcsname \relax \else \edef
> \somefontspec {at \number \ETC.
>
>  \font_helpers_trigger_define ...\def \v_font_size_relative
> {#1}\def \v_font_size_absolute {#2}\font_helpers_low_level_define
> {#3}\v_font_identifier_class
>
> \csname \v_font_identifier_class \endcsname \setfalse \c_font_auto_size
> \ifskipfontcharacteristics \else \setfontcharacter...
>
>
>  \m_font_class_direction ...fcsname \??fontinstanceready \fontclass
> -\fontbody -\s!mm -\fontfamily \endcsname \settrue \c_font_auto_size
> \lastnamedcs
>
> \else \font_helpers_set_math_family_b \fi
>
>
>  \font_helpers_set_math_family_indeed_compact
> ..._family_set_scales_compact \let \mathsizesuffix \mathtextsuffix \let
> \fontface \!!plusone \font_helpers_set_math_family_a
>
> \textfont #1\font \font_helpers_set_math_family_a \textfont #1\font
> \scriptfont #1\font \scriptscriptfont #1\font \let \ma...
>
>
>  \font_helpers_set_math_family ...!mm -#2-\fontsize -1\endcsname
> \font_helpers_preset_math_family_indeed #1#2\else
> \font_helpers_set_math_family_indeed #1#2
>
> \fi \else \font_helpers_set_math_family_indeed #1#2\fi
>
> Jairo
>
> El vie, 29 de ene. de 2021 a la(s) 15:59, Pablo Rodriguez (oi...@gmx.es)
> escribió:
>
>> Dear list,
>>
>> this sample cannot be compiled with latest LMTX (2021.01.29 19:44).
>>
>>   \enableexperiments[fonts.compact]
>>
>>   \definefontfamily
>>   [mainface]
>>   [rm]
>>   [TeX Gyre Pagella]
>>
>>   \definefontfamily
>>   [mainface]
>>   [mm]
>>   [TeX Gyre Pagella Math]
>>
>>   \setupbodyfont
>>   [mainface, 12pt]
>>
>>   \starttext
>> \input zapf
>>   \stoptext
>>
>> I get the following error message:
>>
>>   I was looking for a control sequence whose current meaning
>>   has been defined by \font or a valid font id number.
>>   mtx-context | fatal error: return code: 256
>>
>> Previous latest from compiles the sample perfectly fine.
>>
>> Could anyone confirm this bug?
>>
>> Mamy 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
>>
>> ___
>>
>
___
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] font bug in latest from 2021.01.29 19:44?

2021-01-29 Thread Jairo A. del Rio
Same here. It compiles well when the math font definition is commentend.
The error seems to be there:

\setfontid




\3>mainface-12pt-mm-mr--1

 \font_helpers_low_level_define_compact ...ec \empty \let
\lastrawfontcall \relax \mutable \letcsname #2\endcsname \relax \else \edef
\somefontspec {at \number \ETC.

 \font_helpers_trigger_define ...\def \v_font_size_relative {#1}\def
\v_font_size_absolute {#2}\font_helpers_low_level_define
{#3}\v_font_identifier_class

\csname \v_font_identifier_class \endcsname \setfalse \c_font_auto_size
\ifskipfontcharacteristics \else \setfontcharacter...


 \m_font_class_direction ...fcsname \??fontinstanceready \fontclass
-\fontbody -\s!mm -\fontfamily \endcsname \settrue \c_font_auto_size
\lastnamedcs

\else \font_helpers_set_math_family_b \fi


 \font_helpers_set_math_family_indeed_compact
..._family_set_scales_compact \let \mathsizesuffix \mathtextsuffix \let
\fontface \!!plusone \font_helpers_set_math_family_a

\textfont #1\font \font_helpers_set_math_family_a \textfont #1\font
\scriptfont #1\font \scriptscriptfont #1\font \let \ma...


 \font_helpers_set_math_family ...!mm -#2-\fontsize -1\endcsname
\font_helpers_preset_math_family_indeed #1#2\else
\font_helpers_set_math_family_indeed #1#2

\fi \else \font_helpers_set_math_family_indeed #1#2\fi

Jairo

El vie, 29 de ene. de 2021 a la(s) 15:59, Pablo Rodriguez (oi...@gmx.es)
escribió:

> Dear list,
>
> this sample cannot be compiled with latest LMTX (2021.01.29 19:44).
>
>   \enableexperiments[fonts.compact]
>
>   \definefontfamily
>   [mainface]
>   [rm]
>   [TeX Gyre Pagella]
>
>   \definefontfamily
>   [mainface]
>   [mm]
>   [TeX Gyre Pagella Math]
>
>   \setupbodyfont
>   [mainface, 12pt]
>
>   \starttext
> \input zapf
>   \stoptext
>
> I get the following error message:
>
>   I was looking for a control sequence whose current meaning
>   has been defined by \font or a valid font id number.
>   mtx-context | fatal error: return code: 256
>
> Previous latest from compiles the sample perfectly fine.
>
> Could anyone confirm this bug?
>
> Mamy 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
>
> ___
>
___
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] font bug in latest from 2021.01.29 19:44?

2021-01-29 Thread Pablo Rodriguez
Dear list,

this sample cannot be compiled with latest LMTX (2021.01.29 19:44).

  \enableexperiments[fonts.compact]

  \definefontfamily
  [mainface]
  [rm]
  [TeX Gyre Pagella]

  \definefontfamily
  [mainface]
  [mm]
  [TeX Gyre Pagella Math]

  \setupbodyfont
  [mainface, 12pt]

  \starttext
\input zapf
  \stoptext

I get the following error message:

  I was looking for a control sequence whose current meaning
  has been defined by \font or a valid font id number.
  mtx-context | fatal error: return code: 256

Previous latest from compiles the sample perfectly fine.

Could anyone confirm this bug?

Mamy 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] font fallback hook (alphabet suspects)

2021-01-29 Thread Hans Hagen

On 1/29/2021 8:29 PM, Jano Kula wrote:

There are some Greek, Hebrew, etc. words used in the text. While 
proofreading, the editor would like to check these words separately 
(glyphs from different alphabets, unusual symbols, ...), so I'd like to 
typeset the warning (margin note), where these words are located. To 
avoid usual markup \greek{ὀρφανῖος} it could be useful to typeset a 
margin note whenever the defined fallback is called.


The unfamiliar symbols could be in the main font and no fallback would 
be called then (one can still define the fallback with the main font as 
in the MWE, bold used for the illustration), but you might have a better 
ideas how to point out these suspects.


The margin note is ment for searching PDF where one cannot search for 
color (basic viewer), which could be the other approach (also visible in 
print). I think, the color could be achieved with finalizers. One should 
also think of hyphenation and l2r/r2l direction, so in the end the usual 
approach might be the best way.


You might use other approaches, how to deal with suspects of this type. 
Below the MWE for font fallbacks with distribution fonts.


Not critical, just looking for ideas.
Already there for ages ... testsuite goodies-002.tex + demo.lfg shows 
how to color your special characters ... one of the probably many 
unknown features -)


There's also this:

\enabletrackers[fonts.missing=replace]

\startTEXpage
Jano uses \char 12345.
\stopTEXpage

and of course you then watch the log ... (at the meeting Ton showed 
other proofing tricks).



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] font fallback hook (alphabet suspects)

2021-01-29 Thread Jano Kula
Hello to everybody!

Warning: 50 % of Greek glyphs in MWE, so they might be randomized :)

Is there any hook in the font fallback?

There are some Greek, Hebrew, etc. words used in the text. While
proofreading, the editor would like to check these words separately (glyphs
from different alphabets, unusual symbols, ...), so I'd like to typeset the
warning (margin note), where these words are located. To avoid usual markup
\greek{ὀρφανῖος} it could be useful to typeset a margin note whenever the
defined fallback is called.

The unfamiliar symbols could be in the main font and no fallback would be
called then (one can still define the fallback with the main font as in the
MWE, bold used for the illustration), but you might have a better ideas how
to point out these suspects.

The margin note is ment for searching PDF where one cannot search for color
(basic viewer), which could be the other approach (also visible in print).
I think, the color could be achieved with finalizers. One should also think
of hyphenation and l2r/r2l direction, so in the end the usual approach
might be the best way.

You might use other approaches, how to deal with suspects of this type.
Below the MWE for font fallbacks with distribution fonts.

Not critical, just looking for ideas.

Thank you,
Jano

\definefontfallback[Fallback]
[file:DejaVuSerif-Bold.ttf]
[0x0370-0x03FF]
[force=yes,rscale=1]
\definefontfallback[Fallback]
[file:DejaVuSerif-Bold.ttf]
[0x01F40,0x01FD6]
[force=yes,rscale=1]

\starttypescriptcollection[DejaVu]

\starttypescript[serif]
[DejaVu]
[name]
\definefontsynonym[Serif]
[file:DejaVuSerif.ttf]
[fallbacks=Fallback]
\stoptypescript

\starttypescript[DejaVu]
\definetypeface[DejaVu][rm][serif]
[DejaVu][default]
\stoptypescript

\stoptypescriptcollection

\setupbodyfont[DejaVu]

\starttext
from ὀρφανῖος, thus
\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] code 139

2021-01-29 Thread Hans Hagen

On 1/29/2021 6:09 PM, Thomas A. Schmitz wrote:




On 29. Jan 2021, at 17:55, Otared Kavian  wrote:

Out of curiosity I tested your MWE and I get

mtx-context | fatal error: return code: 11


Maybe lmtx uses the random number generator to produce its return codes? :-)

139 is gcc mem warning

anyway, thomas' MWE wasn't minimal enough

{\tracingall\framed[align=right]{\em x}}

and even better:

{\tracingall\framed[align=right]{x\aftergroup\relax}}

it might give you a clue as it did me ..

the randomizer is only used to smuggle jokes into your text (only when 
there are more than 200 pages and 30% of the symbols is greek)


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] code 139

2021-01-29 Thread Thomas A. Schmitz


> On 29. Jan 2021, at 17:55, Otared Kavian  wrote:
> 
> Out of curiosity I tested your MWE and I get 
> 
>   mtx-context | fatal error: return code: 11

Maybe lmtx uses the random number generator to produce its return codes? :-)

Thomas
___
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] code 139

2021-01-29 Thread Otared Kavian
Hi Thomas,

Out of curiosity I tested your MWE and I get 

mtx-context | fatal error: return code: 11

with LMTX (version 2021.01.28 18:22), while with mkiv it typesets correctly.

Best regards: Otared

> On 29 Jan 2021, at 14:42, Thomas A. Schmitz  
> wrote:
> 
> 
> On 1/29/21 12:56 PM, Hans Hagen wrote:
>> Hard to say (probably some mem/stack issue) ... you can add a \tracingall 
>> around the place where the last message to the console happens ... i need to 
>> know where it happens (or you can themn make a mwe of that bit).
> 
> OK, here's a minimal example. I defined this environment some years ago and 
> have no clue why I did it this particular way (there must have been a 
> reason), so don't ask me. But it gives the "return code: 139."
> 
> \define[1]\italianpoetry%
> {\framed[frame=off,offset=0pt,strut=no,width=10cm]{\framed[frame=off,strut=no,offset=0pt,width=fit,align=right]{\em
>  #1}}}
> 
> \starttext
> 
> \italianpoetry{
>   Morremo. Il velo indegno a terra sparto,
> }
> 
> \stoptext
> 
> Thomas
> ___
> 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] code 139

2021-01-29 Thread Thomas A. Schmitz

> On 29. Jan 2021, at 16:27, Hans Hagen  wrote:
> 
> fixed in next upload

Thank you for the fix!

Thomas
___
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] code 139

2021-01-29 Thread Hans Hagen

On 1/29/2021 2:42 PM, Thomas A. Schmitz wrote:


On 1/29/21 12:56 PM, Hans Hagen wrote:
Hard to say (probably some mem/stack issue) ... you can add a 
\tracingall around the place where the last message to the console 
happens ... i need to know where it happens (or you can themn make a 
mwe of that bit).


OK, here's a minimal example. I defined this environment some years ago 
and have no clue why I did it this particular way (there must have been 
a reason), so don't ask me. But it gives the "return code: 139."


\define[1]\italianpoetry%
{\framed[frame=off,offset=0pt,strut=no,width=10cm]{\framed[frame=off,strut=no,offset=0pt,width=fit,align=right]{\em 
#1}}}


\starttext

\italianpoetry{
     Morremo. Il velo indegno a terra sparto,
}

\stoptext

fixed in next upload

-
  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] Markdown module in LMTX

2021-01-29 Thread J Huisman
Hi all,

I can confirm that this problem has not yet been resolved? Any idea
when it might happen?

Cheers,

Jelle

On Mon, Jan 11, 2021 at 5:48 AM Christoph Reller
 wrote:
>
> Hi,
>
> In recent versions of ConTeXt LMTX, the builtin markdown module is missing. 
> (Files m-markdown.[lua|mkiv])
> Just copying this module from an earlier version shows that they don't work 
> anymore.
>
> MWE:
>
> ConTeXt file:
> -- 8< --
> \usemodule[markdown]
> \starttext
> \processmarkdownfile{file.md}
> \stoptext
> -- 8< --
>
> file.md:
> -- 8< --
> Title
> =
>
> Here comes a paragraph text.
> -- 8< --
>
> Are there plans to add and update this module?
>
> Cheers,
> Christoph
> ___
> 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] code 139

2021-01-29 Thread Thomas A. Schmitz


On 1/29/21 12:56 PM, Hans Hagen wrote:
Hard to say (probably some mem/stack issue) ... you can add a 
\tracingall around the place where the last message to the console 
happens ... i need to know where it happens (or you can themn make a mwe 
of that bit).


OK, here's a minimal example. I defined this environment some years ago 
and have no clue why I did it this particular way (there must have been 
a reason), so don't ask me. But it gives the "return code: 139."


\define[1]\italianpoetry%
{\framed[frame=off,offset=0pt,strut=no,width=10cm]{\framed[frame=off,strut=no,offset=0pt,width=fit,align=right]{\em 
#1}}}


\starttext

\italianpoetry{
Morremo. Il velo indegno a terra sparto,
}

\stoptext

Thomas
___
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] code 139

2021-01-29 Thread Hans Hagen

On 1/29/2021 12:15 PM, Thomas A. Schmitz wrote:


Hi all,

a complex file with a metafun background does not compile anymore with 
lmtx. It compiles fine with mkiv. Compilation breaks off after 10 pages 
(maybe that's significant) with this message:


pages   > flushing realpage 10, userpage 10, subpage 10
mtx-context | fatal error: return code: 139

What is code: 139? Where should I start looking for the culprit?
Hard to say (probably some mem/stack issue) ... you can add a 
\tracingall around the place where the last message to the console 
happens ... i need to know where it happens (or you can themn make a mwe 
of that bit).


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] code 139

2021-01-29 Thread Thomas A. Schmitz


Hi all,

a complex file with a metafun background does not compile anymore with 
lmtx. It compiles fine with mkiv. Compilation breaks off after 10 pages 
(maybe that's significant) with this message:


pages   > flushing realpage 10, userpage 10, subpage 10
mtx-context | fatal error: return code: 139

What is code: 139? Where should I start looking for the culprit?

All best

Thomas
___
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] Hyphenation on digits

2021-01-29 Thread Hans Hagen

On 1/29/2021 10:30 AM, Henning Hraban Ramm wrote:



Am 28.01.2021 um 15:00 schrieb Hans Hagen :





I'll add support for:

   \pi\ = 
\hyphenateddigits[\unknown]{3.141592653589793238462643383279502884197169399375105}

A quick and dirty hack as we don't need some full blown mechanism for such a 
rare case.


Thank you! Might come handy for other non-words, as Richard has shown.

Wikified: https://wiki.contextgarden.net/Hyphenation
Depending on usage it might need to b eimproved (like: does one wants to 
break before a period or comma but let's first collect use cases


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] Hyphenation on digits

2021-01-29 Thread Henning Hraban Ramm

> Am 28.01.2021 um 15:00 schrieb Hans Hagen :
> 
>> 
> 
> I'll add support for:
> 
>   \pi\ = 
> \hyphenateddigits[\unknown]{3.141592653589793238462643383279502884197169399375105}
> 
> A quick and dirty hack as we don't need some full blown mechanism for such a 
> rare case.

Thank you! Might come handy for other non-words, as Richard has shown.

Wikified: https://wiki.contextgarden.net/Hyphenation

Hraban
___
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] About baseline alignment in metapost - issue on the wiki ?

2021-01-29 Thread Taco Hoekwater


> On 29 Jan 2021, at 09:33, Garulfo  wrote:
> 
> The dlft version doesn't seem to work on the wiki.
> 
> A MVE here https://wiki.contextgarden.net/textext_positioning#Test_dlft

Version issue? The wiki is still running a context from june last year.
> 
> 
> 
> 
> Le 29/01/2021 à 09:01, Garulfo a écrit :
>> To align with the baseline :
>> thetextext.drt("Hello, World!", (1cm, 5cm)) ;
>> Also existing :
>> thetextext.d  (center)
>> thetextext.dlft   (left)
> ___
> 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
> ___

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] About baseline alignment in metapost - issue on the wiki ?

2021-01-29 Thread Garulfo

The dlft version doesn't seem to work on the wiki.

A MVE here https://wiki.contextgarden.net/textext_positioning#Test_dlft




Le 29/01/2021 à 09:01, Garulfo a écrit :

To align with the baseline :

thetextext.drt("Hello, World!", (1cm, 5cm)) ;

Also existing :

thetextext.d  (center)
thetextext.dlft   (left)

___
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] About baseline alignment in metapost

2021-01-29 Thread Garulfo

To align with the baseline :

thetextext.drt("Hello, World!", (1cm, 5cm)) ;

Also existing :

thetextext.d  (center)
thetextext.dlft   (left)
___
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
___