[NTG-context] upcoming versions of lmtx

2021-05-07 Thread Hans Hagen

Hi,

With luametatex becoming more mature, it's time to get rid of some old 
code. For instance, we have lmt files that assume 5.4, but regular lua 
files should work for luajittex (5.2) and luatex (5.3). Most noticable 
are the lack of bitwise operators and integer devision in luajittex, but 
there are more details.


Till now, part of this problem is deals with by using functions that can 
actually be seen as macros that can are optimized when the format is 
made (kind of c-ish). It's not pretty, but works and probably no one 
ever noticed it. That mechanism will probably stay (for the fun of it) 
but the less it's used for creating the format the better.


Another complication is that we use mtxrun for both running luatex and 
luametatex so there we need to be friendly to all three engines. But ... 
eventually luametatex will be the stub for also luatex and then mtxrun 
can become 5.4+ (the --luatex flag already works that way). An 
alternative is that we have mtxrun.lmt as well as mtxrun.lua but why 
bother.


I also need to keep in mind that there are users of the font code that 
expect it to work with luajittex but that can be dealt with by splitting 
files.


By splitting modules in lua and lmt variants we can tune for luametatex 
so that will happen anyway (less code, no engine specific sections, 
again a smaller format file, etc).


All these adaptations have no functional consequences but of course 
there can be temporary hickups because of some oversight.


At the engine level there is also some occasional cleanup, like 
replacing some left-over low level 5.2/5.3 lua api things by 5.4 but 
that's kind of ongoing (as lua progresses). In principle users should 
not notice such changes, just like probably no one noticed that we now 
use a different zip library (in the beginning some high speed variants 
were tested too but it's not that critical and I just don't want 
architecture dependencies that complicate a build and can influence 
stability). I still try to minimize the code base and dependencies, 
although I admit that sometimes stuff gets added (like the more 
efficient memory allocator). But my target max binary size of 3MB (less 
with link time optimization and related stripping) and fast compilation 
goals are still met.


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] Hyphen collapsing

2021-05-07 Thread Hans Hagen

On 5/7/2021 7:15 PM, Thangalin wrote:

\setuphead[chapter][align={nothyphenated,notcollapsed}]
Would that mean there's no way to collapse the hyphenation throughout 
the entire document from a single location? That is:


\nohyphencollapsing
\setuphead[section][align={nothyphenated,notcollapsed}]
\setuphead[subsection][align={nothyphenated,notcollapsed}]
\setuphead[subsubsection][align={nothyphenated,notcollapsed}]

Would "\nohyphencollapsing[head=yes]" allow the setting to apply once to 
all areas?


\setuphead[align={nothyphenated,notcollapsed}]

At some point I'll add some language related settings but first I'll 
need to think of the best way.


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] Hyphen collapsing

2021-05-07 Thread Thangalin
 \setuphead[chapter][align={nothyphenated,notcollapsed}]
Would that mean there's no way to collapse the hyphenation throughout the
entire document from a single location? That is:

\nohyphencollapsing
\setuphead[section][align={nothyphenated,notcollapsed}]
\setuphead[subsection][align={nothyphenated,notcollapsed}]
\setuphead[subsubsection][align={nothyphenated,notcollapsed}]

Would "\nohyphencollapsing[head=yes]" allow the setting to apply once to
all areas?

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] very long hanging caption

2021-05-07 Thread Hans Hagen

On 5/7/2021 11:55 AM, Jano Kula wrote:

Hello again,
does somebody have any hint on the long captions?


Ok, after a week of struggling with this you deserve an answer:

\starttext

\starthanging 
{\framed[align=normal,bottom=\vkern10pt]{\externalfigure[t:/sources/cow.pdf][width=3cm]}}

\placefloatcaption[figure][title={\input ward \input ward }]
\stophanging

\stoptext



Thanks,
Jano

On Sun, May 2, 2021 at 6:10 PM Jano Kula > wrote:


Dear list,

having images with very long captions I'd like captions to be
wrapped around the figures. I would guess hang=yes parameter could
do so, but not in my case.

 text of
|              | the caption
|              | which is
 much longer
than the height of the image
and should be wrapped around the image

The second question is how to change the distance between image and
the caption, distance parameter has no effect. MkIV, because
footnotes in columns are needed (not in lmtx, yet).

% macros=mkiv
\setupcaption[
   number=no,
   hang=yes,
   align={nothyphenated,flushleft},
   distance=4mm,
   location=righthanging]

\startbuffer[caption]
\dorecurse{60}{very long caption }
\stopbuffer

\starttext
\startplacefigure[title={\getbuffer[caption]}]
\externalfigure[cow][height=40mm,width=80mm]
\stopplacefigure
\stoptext

Thank you,
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
___




--

-
  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] Hyphen collapsing

2021-05-07 Thread Hans Hagen

On 5/7/2021 6:47 AM, Thangalin wrote:

Not sure if this is a regression:

% SOF
\nohyphencollapsing

\setuphead[chapter][align={nothyphenated}]

\starttext
   \chapter{Such --- Emdashery}
\stoptext
% EOF

Expected: No collapsed hyphens.

Actual: Hyphens are collapsed.

Workaround: Remove the nothyphenated option or insert 
\nohyphencollapsing into the \chapter command.


Is there another way to prevent collapsing hyphens with a single setting 
that applies to the entire document?


The hyphens did not collapse in the previous version.



they did when a font had the tlig feature enabled

i'll add a key:

\setuphead[chapter][align={nothyphenated,notcollapsed}]

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] Bug with OpenBSD 6.9 amd64?

2021-05-07 Thread Damien Thiriet
Hi Hans,


I tried to download once more, and it succeded.
I just wasn't lucky yesterday and installed at a time
when server wasn't responding.

I compiled a test file, everything went smooth.
Sorry for the noise and thanks for your time.

Best regards,

Damien Thiriet
___
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 with OpenBSD 6.9 amd64?

2021-05-07 Thread Damien Thiriet
Hi Hans,

I should have looked earlier at the files. Looks like
I couldn't download the proper files.
Here is the content of mtxrun.lua:




404 Not Found

Not Found
The requested URL was not found on this server.


I will try to download once more, but looks like some links are missing.


Damien Thiriet 


On Thu, May 06, 2021 at 09:58:22PM +0200, Hans Hagen wrote:
> On 5/6/2021 9:03 PM, Damien Thiriet wrote:
> > Hi,
> > 
> > 
> > I have just upgraded my LMTX install to OpenBSD 6.9.
> > Unfortunately, my first context run aborted with this error message
> > 
> > /usr/local/context/tex/texmf-openbsd6.9-amd64/bin/mtxrun[1]: syntax error: 
> > `newline' unexpected
> > 
> > I tried mtxrun --generate and ended with alomst the same error message,
> > as I could have expected
> > /usr/local/context/tex/texmf-openbsd6.9-amd64/bin/mtxrun[1]: syntax error: 
> > `newline' unexpected
> > 
> > I wiped the cache, then suppressed it, didn't change anything.
> > Which informations might be helpful to solve this problem?
> i have no clue ... maybe googling for that message helps
> 
> 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] very long hanging caption

2021-05-07 Thread Jano Kula
Hello again,
does somebody have any hint on the long captions?
Thanks,
Jano

On Sun, May 2, 2021 at 6:10 PM Jano Kula  wrote:

> Dear list,
>
> having images with very long captions I'd like captions to be wrapped
> around the figures. I would guess hang=yes parameter could do so, but not
> in my case.
>
>  text of
> |  | the caption
> |  | which is
>  much longer
> than the height of the image
> and should be wrapped around the image
>
> The second question is how to change the distance between image and the
> caption, distance parameter has no effect. MkIV, because footnotes in
> columns are needed (not in lmtx, yet).
>
> % macros=mkiv
> \setupcaption[
>   number=no,
>   hang=yes,
>   align={nothyphenated,flushleft},
>   distance=4mm,
>   location=righthanging]
>
> \startbuffer[caption]
> \dorecurse{60}{very long caption }
> \stopbuffer
>
> \starttext
> \startplacefigure[title={\getbuffer[caption]}]
> \externalfigure[cow][height=40mm,width=80mm]
> \stopplacefigure
> \stoptext
>
> Thank you,
> 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] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-07 Thread Nicola
On 2021-05-06, Bruce Horrocks  wrote:
>> Sorry, my explanation of what I am trying to achieve was a bit too
>> terse.

> Thank-you for the explanation - that's much clearer.
>
> I've experimented a bit with Docker and I've managed to get
> a stand-alone LMTX install to work under a 32-bit Alpine Linux that
> has had the glibc library added. This should - fingers crossed - work
> in iSH.

That's great news! I'll try it asap and report back. Thanks for looking
into it.

Anyway, for Hans and Mojca: I confirm that I was not able to run ConTeXt
from the texlive package (TeX Live 2020) of Alpine Linux 3.12 (x86_64).
I get the error in my original post to this thread, which I could not
solve with the suggested fixes. If other can reproduce it, maybe it's
worth reporting upstream to Alpine developers.

I can install ConTeXt LMTX just fine in Alpine x86_64, however!

Nicola

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