Re: [NTG-context] Tabulate: Change cell orienation for individual cells?

2023-06-27 Thread Bruce Horrocks via ntg-context


> On 27 Jun 2023, at 09:56, Denis Maier via ntg-context  
> wrote:
> 
> Hi,
>  is it possible to override the defined orienatation for a given cell ?

\starttext
\starttabulate[|l|c|r|]
\NC this and that \NC left and right \NC here and there \NC \NR
\NC such and so \NC \rotate[rotation=90]{up and down} \NC on and on \NC \NR
\stoptabulate
\stoptext

—
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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] how to install on M2 Mac?

2023-06-27 Thread Henning Hraban Ramm via ntg-context

Am 27.06.23 um 22:02 schrieb Hans van der Meer via ntg-context:
After transferring the context directory to my new M2 Mac Studio 
sh.install.sh complains "Your system "Darwin arm64" is not supported 
(yet)". What now? I cannot live without TeX-ing 沈


You just copied the binaries from another computer? That doesn’t work.
Download the arm64 binaries from 
https://wiki.contextgarden.net/Installation, i.e. 
https://lmtx.pragma-ade.com/install-lmtx/context-osx-arm64.zip


Hraban

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] how to install on M2 Mac?

2023-06-27 Thread Hans van der Meer via ntg-context
After transferring the context directory to my new M2 Mac Studio sh.install.sh 
complains "Your system "Darwin arm64" is not supported (yet)". What now? I 
cannot live without TeX-ing 沈

yours sincerely
dr. Hans van der Meer



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] expansion of section title

2023-06-27 Thread Henning Hraban Ramm via ntg-context

Am 27.06.23 um 21:01 schrieb Wolfgang Schuster via ntg-context:

Henning Hraban Ramm via ntg-context schrieb am 27.06.2023 um 20:55:

\defineregister[todos]

% add a "todos" index entry with the current section title
\define[1]\TODO{\todos{\structurevariable{title}}}

\chapter{Something}
\TODO{This is still empty!}

% at the end of the book
\chapter{work list}
\placetodos 


\define[1]\TODO{\expanded{\todos{\structurevariable{title


Thank you, that works.
I thought I tried that, but probably forgot the braces.


What is the purpose of the argument for \TODO when you don't use it?


I simplified too much, the actual definition is (now):

\define[1]\TODO{\inouter{\tt\color[ColTodo]{TODO}}\expanded{\todos{\structurevariable{title}}}\color[ColTodo]{\bf 
#1}\autoinsertnextspace}


Hraban
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Problem with bibliography in apa

2023-06-27 Thread Marcelo Chaparro via ntg-context
Dear List,
I am using ConTeXt with TeXlive 2023. This problem did not exist in TeXlive 
2022. Also, I tried to use ConTeXt by installing it from the ConTeXt page and 
had the same problem.

When I use the apa format in the bibliography, the text "internal(number)" 
appears at the beginning of each citation:

For example:
---
A Chapter

A text (Anonymous, 2023). And (Unknown, 2022).

Bibliography

internal(1)Anonymous, A. (2023).Any book.Publisher Unknown.

internal(2)Unknown, A. (2022).An untitled book.Publisher Non-existent.

--
The source code is:

\usebtxdataset[biblio.bib]
\usebtxdefinitions[apa]

\starttext

\startchapter[title={A Chapter}]
A text \cite[book1]. And \cite[book2]
\stopchapter

\startchapter[title=Bibliography]
\placelistofpublications
\stopchapter
\stoptext
---
The bibliographic database is:

@book{book1,
author={Author Anonymous},
title={An untitled book},
year=2023,
publisher={Publisher Unknown},
}

@book{book2,
author={Author Unknown},
title={An untitled book},
year=2022,
publisher={Publisher Non-existent},}

Best regards,

Marcelo Chaparro___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] expansion of section title

2023-06-27 Thread Wolfgang Schuster via ntg-context

Henning Hraban Ramm via ntg-context schrieb am 27.06.2023 um 20:55:

\defineregister[todos]

% add a "todos" index entry with the current section title
\define[1]\TODO{\todos{\structurevariable{title}}}

\chapter{Something}
\TODO{This is still empty!}

% at the end of the book
\chapter{work list}
\placetodos 


\define[1]\TODO{\expanded{\todos{\structurevariable{title

What is the purpose of the argument for \TODO when you don't use it?

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] expansion of section title

2023-06-27 Thread Henning Hraban Ramm via ntg-context
I think I had a good idea how to keep an overview of the “todos” in my 
book project:


\defineregister[todos]

% add a "todos" index entry with the current section title
\define[1]\TODO{\todos{\structurevariable{title}}}

\chapter{Something}
\TODO{This is still empty!}

% at the end of the book
\chapter{work list}
\placetodos


But the section title is always "work list" in the "todos" index.
I guess I need some expansion and tried \expanded, \safeexpanded, 
\expandoneargafter, \fullexpandoneargafter, but probably not in the 
right place.


How does this work?

Hraban
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Tabulate: Change cell orienation for individual cells?

2023-06-27 Thread Denis Maier via ntg-context
Ok, if you use p for the column definition you can just use \setupalign on 
individual cells...

%%%
\starttext
\starttabulate[|pA{verytolerant,extremestretch}|pA{verytolerant,extremestretch}|]
\NC Heading flushleft \NC \setupalign[flushright] Heading flushright \NC \NR
\NC \input ward  \NC \input ward \NC \NR
\stoptabulate
\stoptext
%%%

Best,
Denis

Von: ntg-context  Im Auftrag von Denis Maier via 
ntg-context
Gesendet: Dienstag, 27. Juni 2023 10:56
An: ntg-context@ntg.nl
Cc: Maier, Denis Christian (UB) 
Betreff: [NTG-context] Tabulate: Change cell orienation for individual cells?

Sie erhalten nicht oft eine E-Mail von 
ntg-context@ntg.nl<mailto:ntg-context@ntg.nl>. Erfahren Sie, warum dies wichtig 
ist<https://aka.ms/LearnAboutSenderIdentification>
Hi,

is it possible to override the defined orienatation for a given cell ?

Take this example from the wiki:
%%
\starttext
\starttabulate[|l|c|r|]
\NC this and that \NC left and right \NC here and there \NC \NR
\NC such and so \NC up and down \NC on and on \NC \NR
\stoptabulate
\stoptext
%%

How can I change the alignment for a particular cell?

Best,
Denis

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Tabulate: Change cell orienation for individual cells?

2023-06-27 Thread Denis Maier via ntg-context
Hi,

is it possible to override the defined orienatation for a given cell ?

Take this example from the wiki:
%%
\starttext
\starttabulate[|l|c|r|]
\NC this and that \NC left and right \NC here and there \NC \NR
\NC such and so \NC up and down \NC on and on \NC \NR
\stoptabulate
\stoptext
%%

How can I change the alignment for a particular cell?

Best,
Denis

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] context-on-web broken

2023-06-26 Thread Miguel Diaz via ntg-context
thanks a lot for the overleaf hack Aditya, i once tried to configure
something similar but it did not work!
and thanks for the latexcgi link, it has much more speed in processing,
though that is not important for me (i am learning the basics in my spare
time, so a couple of seconds more or less is ok).

On a quick search i found a lot of Zdeněk Svoboda, but i will try to find
the one of the project and ask him to offer it to the community, I found
context-on-web simple and effective, it even hat a table-generator for easy
things.

El lun, 26 jun 2023 a las 20:39, Hans Hagen via ntg-context (<
ntg-context@ntg.nl>) escribió:

> On 6/26/2023 7:53 PM, Aditya Mahajan via ntg-context wrote:
> > On Mon, 26 Jun 2023, Miguel Diaz via ntg-context wrote:
> >
> >> indeed it is a simple simulation of overleaf (for latex).
> >
> > FWIW, context works on overleaf as well!
> >
> > Simply create a `latexmkrc` file with the following content:
> >
> > ```
> > $pdflatex="context --synctex=1 --result=output %S; cp output.log
> /compile/output.log;cp output.pdf /compile/output.pdf";
> > $recorder=0;
> > $pdf_mode=1;
> I found back this link:
>
> https://davidcarlisle.github.io/latexcgi/testc
>
>
> % !TEX mtxrun --script context
>
> \starttext
>
> \dorecurse{500}{\samplefile{tufte}\par}
>
> \stoptext
>
> Runs 113 pages in 1.13 sec so quite ok for a remote un I guess.
>
> I'm not sure how up to date it is.
>
> (The default is some old tex document using pdftex.)
>
> 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 /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> _______
>
_______
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] context-on-web broken

2023-06-26 Thread Hans Hagen via ntg-context

On 6/26/2023 7:53 PM, Aditya Mahajan via ntg-context wrote:

On Mon, 26 Jun 2023, Miguel Diaz via ntg-context wrote:


indeed it is a simple simulation of overleaf (for latex).


FWIW, context works on overleaf as well!

Simply create a `latexmkrc` file with the following content:

```
$pdflatex="context --synctex=1 --result=output %S; cp output.log 
/compile/output.log;cp output.pdf /compile/output.pdf";
$recorder=0;
$pdf_mode=1;

I found back this link:

https://davidcarlisle.github.io/latexcgi/testc


% !TEX mtxrun --script context

\starttext

\dorecurse{500}{\samplefile{tufte}\par}

\stoptext

Runs 113 pages in 1.13 sec so quite ok for a remote un I guess.

I'm not sure how up to date it is.

(The default is some old tex document using pdftex.)

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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] context-on-web broken

2023-06-26 Thread Hans Hagen via ntg-context

On 6/26/2023 8:03 PM, Henning Hraban Ramm via ntg-context wrote:

Am 26.06.23 um 19:43 schrieb Miguel Diaz:
indeed it is a simple simulation of overleaf (for latex). But trying 
to learn the basics it is great that you can try context without an 
installation and configuration.
unfortunately the web is no more accesible and when I heard that the 
maillist hat problems as result of upgrade i thought the web would be 
in the same server.
But it seems the web is not of Pragma but of a university. Sorry for 
my ignorance!

and thanks anyway


Well, it’s not by the university, but the master(?) thesis of one 
student. He never published the source code, and apparently he stopped 
hosting it at all.


i suppose that it runs on a university machine

Unfortunately silent disappearance is a common fate of the really 
interesting ConTeXt and MetaPost projects from Brno.
probably true for many projects by students who eventually move on; but 
if we can pick up on 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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] context-on-web broken

2023-06-26 Thread Hans Hagen via ntg-context

On 6/26/2023 7:43 PM, Miguel Diaz via ntg-context wrote:

indeed it is a simple simulation of overleaf (for latex). But trying to
learn the basics it is great that you can try context without an
installation and configuration.
unfortunately the web is no more accesible and when I heard that the
maillist hat problems as result of upgrade i thought the web would be in
the same server.
But it seems the web is not of Pragma but of a university. Sorry for my
ignorance!


We have to wait what Tomas will say. I think the idea was to put the 
code on github so that one can install locally or anywhere. (It should 
be trivial to set up a vm).


It runs the latest lmtx and I tested it a bit and performance was pretty 
good (such a service makes no sense if it doesn't run close to local 
speed). My collegue tested it with huge collections of xml files that 
also worked ok.


Let's hope for the best,

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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] context-on-web broken

2023-06-26 Thread Henning Hraban Ramm via ntg-context

Am 26.06.23 um 19:43 schrieb Miguel Diaz:
indeed it is a simple simulation of overleaf (for latex). But trying to 
learn the basics it is great that you can try context without an 
installation and configuration.
unfortunately the web is no more accesible and when I heard that the 
maillist hat problems as result of upgrade i thought the web would be in 
the same server.
But it seems the web is not of Pragma but of a university. Sorry for my 
ignorance!

and thanks anyway


Well, it’s not by the university, but the master(?) thesis of one 
student. He never published the source code, and apparently he stopped 
hosting it at all.


Unfortunately silent disappearance is a common fate of the really 
interesting ConTeXt and MetaPost projects from Brno.


Hraban
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] context-on-web broken

2023-06-26 Thread Aditya Mahajan via ntg-context
On Mon, 26 Jun 2023, Miguel Diaz via ntg-context wrote:

> indeed it is a simple simulation of overleaf (for latex). 

FWIW, context works on overleaf as well!

Simply create a `latexmkrc` file with the following content:

```
$pdflatex="context --synctex=1 --result=output %S; cp output.log 
/compile/output.log;cp output.pdf /compile/output.pdf";
$recorder=0;
$pdf_mode=1;
```

Aditya
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] context-on-web broken

2023-06-26 Thread Miguel Diaz via ntg-context
indeed it is a simple simulation of overleaf (for latex). But trying to
learn the basics it is great that you can try context without an
installation and configuration.
unfortunately the web is no more accesible and when I heard that the
maillist hat problems as result of upgrade i thought the web would be in
the same server.
But it seems the web is not of Pragma but of a university. Sorry for my
ignorance!
and thanks anyway

El lun, 26 jun 2023 a las 9:09, Henning Hraban Ramm via ntg-context (<
ntg-context@ntg.nl>) escribió:

> Am 26.06.23 um 08:49 schrieb Taco Hoekwater via ntg-context:
> > Dear Miguel,
> >
> >> On 25 Jun 2023, at 22:48, Miguel Diaz via ntg-context <
> ntg-context@ntg.nl> wrote:
> >>
> >> Hi everyone,
> >> and sorry if this is not the right place to post.
> >>
> >> Context-on-web is no more accesible.
> >
> > What is this context-on-web? I tried searching, but context+web produces
> rather useless results.
>
> https://context-on-web.eu
> online IDE by Zdeněk Svoboda of Brno university
>
>
> Hraban
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> ___
>
_______
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] TikZ \shade broken

2023-06-26 Thread Gavin via ntg-context
Fixed in the latest. Thanks Hans!

> On Jun 19, 2023, at 5:57 AM, Gavin via ntg-context  wrote:
> 
> Hi Hans,
> 
>>> I am running into a problem with the \shade command... 
>>> tex error   > tex error on line 8 in file ./TikZtest.tex: Valid keyword 
>>> expected, likely 'direction'
>>>  \pgfsys@vertshading
>>> #1#2#3->{\pgf@parsefunc {#3}\pgfmathparse {#2}\setbox \pgfutil@tempboxa 
>>> =\hbox dir
>>> ...
>> luametatex doesn't have the dir keyword
>> 
>> (I could probably add it in a simplified form just for this purpose because 
>> the performance penalty is less now.)
> 
> If you have a chance to add a dir keyword, that would be great. Since the 
> keyword is used inside a TikZ macro, I don’t see any way I can work around it 
> in my document.
> 
> I am gradually converting my diagrams from TikZ to MetaFun, but with well 
> over a hundred diagrams in my current project, that’s going to take some time.
> 
> Thanks!
> Gavin
> 
> 
> _______
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

___________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] context-on-web broken

2023-06-26 Thread Henning Hraban Ramm via ntg-context

Am 26.06.23 um 08:49 schrieb Taco Hoekwater via ntg-context:

Dear Miguel,


On 25 Jun 2023, at 22:48, Miguel Diaz via ntg-context  
wrote:

Hi everyone,
and sorry if this is not the right place to post.

Context-on-web is no more accesible.


What is this context-on-web? I tried searching, but context+web produces rather 
useless results.


https://context-on-web.eu
online IDE by Zdeněk Svoboda of Brno university


Hraban
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] context-on-web broken

2023-06-26 Thread Taco Hoekwater via ntg-context
Dear Miguel,

> On 25 Jun 2023, at 22:48, Miguel Diaz via ntg-context  
> wrote:
> 
> Hi everyone,
> and sorry if this is not the right place to post.
> 
> Context-on-web is no more accesible.

What is this context-on-web? I tried searching, but context+web produces rather 
useless results.

Best wishes,
Taco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Protect the lettrine

2023-06-25 Thread Thangalin via ntg-context
Thanks Hans.

I've updated the wiki. I'm wondering if there's a way to also control the
indenting? Max's solution removed any indenting, allowing the text for the
second paragraph to be flush. It looks a little strange to see text
indented next to a drop-cap. The test case is the same, but with the
addition of an indenting setup:

% SOT
\setupinitial[n=2, continue=yes]

\setupindenting[medium, yes]

\setuphead[chapter][
  after={\placeinitial},
  page=no,
]

\starttext
\chapter{one}
Kermit Ruffins

Meet me at the second line.

\chapter{two}
\input knuth

Meet me at the second line.
\stoptext
% EOT
This produces an unintended side-effect, as well, whereby the following
chapter heading is indented.

See https://i.ibb.co/n8cMkM9/unintended-indented.png

Cheers!
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] context-on-web broken

2023-06-25 Thread Miguel Diaz via ntg-context
Hi everyone,
and sorry if this is not the right place to post.

Context-on-web is no more accesible. Though as a complete newbie to latex
and context world I was just making a very basic format definition, i was
glad i got a basic working layout. Now i cannot access the online
application and I have no copy of the very simple sample file on which i
would like to continue with my practice.

So, will context-on-web be back? or is there a way to access my files?
I can begin again, but it took me over 3 weeks to get the most basic layout!
thanks in advance

Miguel D.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] new version

2023-06-23 Thread Marcus Vinicius Mesquita via ntg-context
Oh, this is very interesting indeed!
Thank you

Marcus Vinicius

On Fri, Jun 23, 2023 at 7:58 AM Hans Hagen via ntg-context
 wrote:
>
> On 6/23/2023 11:54 AM, Marcus Vinicius Mesquita via ntg-context wrote:
> > Should then \setupalign[granular] be used before defining font features?
> No, it's an independent feature of the linebreak mechanism. You can run
> this and see how it kicks in
>
> \starttext
>
> \definecolor[ttest][a=1,t=.5]
> \definecolor[rtest][a=1,t=.5,r=1]
>
> \dostepwiserecurse{80}{120}{1}{
>  \startTEXpage[offset=1ts]
>  \startcombination[1*3]
>  {\startoverlay
>  {\vtop{\showmakeup[space]\hsize #1mm\ttest
>  \samplefile{tufte}}}
>  {\vtop{\showmakeup[space]\hsize #1mm\rtest
> \setupalign[granular]\samplefile{tufte}}}
>  \stopoverlay} {}
>  {\vtop{\showmakeup[space]\hsize #1mm\ttest
>  \samplefile{tufte}}} {}
>  {\vtop{\showmakeup[space]\hsize #1mm\rtest
> \setupalign[granular]\samplefile{tufte}}} {}
>  \stopcombination
>  \stopTEXpage
> }
>
> \stoptext
>
>
>
> -
>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 / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___



-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o
corpo nem seus membros, por ser descanso da alma, primavera do
coração, distração do aflito, entretenimento do solitário, e viático
do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
_______
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] viewer layers (optional content groups, OCG)

2023-06-23 Thread Pablo Rodriguez via ntg-context
On 6/22/23 18:07, Hans Hagen via ntg-context wrote:
> On 6/19/2023 8:41 PM, Henning Hraban Ramm via ntg-context wrote:
>> Checking viewer layers:
>>
>> * \setupviewerlayer doesn’t work; e.g. "state=stop" only works if I put
>> it in \defineviewerlayer
> in next upload

Hans,

since this is related to OCG, a minor improvement.

/Export (inside /Usage) is actually a dictionary with a single entry
(/ExportState) and values /ON and /OFF (from the PDF spec
https://raw.githubusercontent.com/adobe/dc-acrobat-sdk-docs/master/docs/standards/pdfstandards/pdf/PDF32000_2008.pdf#search=ExportState):

The attached patch fixes this issue.

Many thanks for your help,

Pablo
--- lpdf-ren.lmt	2023-06-23 20:08:17.096662826 +0200
+++ mkxl/lpdf-ren.lmt	2023-06-23 20:09:05.358959481 +0200
@@ -78,8 +78,8 @@
 }
 
 local pdf_export = {
-[v_yes] = pdf_on,
-[v_no]  = pdf_off,
+[v_yes] = pdfdictionary { ExportState = pdf_on  },
+[v_no]  = pdfdictionary { ExportState = pdf_on  },
 }
 
 -- We can have references to layers before they are places, for instance from
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] right and left arrowfill

2023-06-23 Thread Hans Hagen via ntg-context

On 6/23/2023 3:21 PM, Carlos via ntg-context wrote:


I'm not sure how you can mess up glue so that the box is no longer a box.
Boxes remain boxes.


I guess that's the same mentality behind a fixed glue in LMTX, while
trying not to mess up the box. Back to point A and the main reason of the
op's question.


I have no clue what "the same mentality behind a fixed glue in LMTX" 
means here. It's not like LMTX has a mentality of its own, after all 
it's not an AI (fwiw). Here we use \uleaders that have some 
feedback-after-typesetting loopback. Eventually I might add some extra 
callback features but only when it has no impact on performance. For now 
it's experimental.


That said, I wonder how many users can predict the plainish tex result of:

\ruledhbox to 2in{\vrule \rightarrowfill \ 1cm \leftarrowfill\vrule}

\ruledhbox to 1cm{\vrule \rightarrowfill \ 1cm \leftarrowfill\vrule}

Which then makes an argument for

% \permanent\protected\def\adaptive
%   {\dowithnextbox{\adaptivecheckbox\nextbox\box\nextbox}}

\adaptive\ruledhbox to 2in{\vrule \rightarrowfill \ 1cm 
\leftarrowfill\vrule}


\adaptive\ruledhbox to 1cm{\vrule \rightarrowfill \ 1cm 
\leftarrowfill\vrule}


doing its thing. Anyway, it is a not using "math arrows in text" that 
determines the functionality but "math arrows in math" that does (and in 
that respect we're driven by demands from power math users like Alan and 
Mikael); so. we're more focussed on shapes and proper rendering; these 
fillers in text are sort of special



Then again, the only way to resemble what TeX does is by re/defining
and copied verbatim from The TeXbook  both rightarrowfill and
leftarrowfill


and hope for the best


and unlike with TeX in which an

\hbox to 1in{\vrule \rightarrowfill \ 1cm \leftarrowfill\vrule}

it says 1cm but it'd be more than that, and accurately so


Well, plain tex says:

\def\rightarrowfill{$\m@th\smash-\mkern-7mu%
  \cleaders\hbox{$\mkern-2mu\smash-\mkern-2mu$}\hfill
  \mkern-7mu\mathord\rightarrow$}

so, you get a smashed minus, some backtracking (a kern, not a glue), 
then optional leaders, and finally an overlayed arrowhead


and you then cross your fingers that the minus sits on the same axis as 
the arrowhead because this is pretty much a cmr bound definition (and 
there are math fonts out there that don't fit this definition, although 
we got some fixes in the meantime)


in lmtx (using luametatex) we use \Uhextensible instead which build from 
an opentype extensible


(which makes me wonder: do users really expect all \macros in plain, 
latex and context do to the same? i bet not because \end in latex is 
definitely something else than \end in plain)



How good would \meaning be here, notwithstanding the valuable info of
the macro it provides, if it can't print out, let alone source it up,
the more accurate dimension, let alone the measurement.


I don't follow. Does this come from ChapGPT?



That's funny.

But as chatgpt says:
"Sorry about that. \meaning\rightarrowfill is
\begingroup \scratchunicode 8594\relax \adaptivebox [mathfiller][alterna­
tive=8594]{\hss \strut \hss }\endgroup "

That's what lmtx returned after Hans vdM sample


Nothing wrong with that, but in the meantime that can be

\permanent\protected\def\mathfiller#1%
  {\adaptivebox[mathfiller][\c!alternative=#1]{\hss\strut\hss}}

because we don't need the scratch code (was used when we played with 
it), so a next version wil say:


  \meaningfull\rightarrowfill

or:

  frozen instance macro:\mathfiller {8594}

or more texie

  \meaningasis\rightarrowfill

like:

  \frozen \instance \def \rightarrowfill \mathfiller {8594}


It depends on what you expect. First of all, your assumption that the arrow
fill is the same as in plain tex is wrong.


Why would it be wrong?


because context is not plain


When I type

\hbox to 3cm{\rightarrowfill} without a vrule

that's what I would normally expect


as plain user maybe


(1) one can define an arrow fill using a leader that uses some (happen to be
present in tex math fonts) glyphs: repeated minuses followed by some magic
kern and an arrow head.



Can you apply it to pagination without breaking?

Highly doubt it.


you seem to know the plain definition so ... leaders don't break


No. I didn't mean anything by it. Just that I disagree with the
implementation. Again, I expect what TeX returns rather than what LMTX
returns.


well, using an arrow fill in running text is rare but who knows how 
uleaders evolve (after users start using it)



No need to re-invent the wheel. (if there's undertone in that so be it)


if so, so use plain


And of course it's working! Everything works, right? And that's exactly what
I meant.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69

Re: [NTG-context] right and left arrowfill

2023-06-23 Thread Carlos via ntg-context
On Fri, Jun 23, 2023 at 01:38:23PM +0200, Hans Hagen via ntg-context wrote:
> On 6/23/2023 12:43 PM, Carlos via ntg-context wrote:
> > On Thu, Jun 22, 2023 at 03:32:25PM +0200, Hans van der Meer via ntg-context 
> > wrote:
> > > \starttext
> > > x \rightarrowfill x
> > > 
> > > x \leftarrowfill x
> > > 
> > > hbox to 5cm:
> > > 
> > > y\hbox to5cm{\rightarrowfill}y
> > > 
> > > y\hbox to5cm{\leftarrowfill}y
> > > \stoptext
> > > 
> > > But obviously not in an dimensioned \hbox, whereas Knuth's version does 
> > > that too.
> > > 
> > > 
> > > 
> > > > On 22 Jun 2023, at 15:11, Hans Hagen via ntg-context 
> > > >  wrote:
> > > > 
> > > > x \rightarrowfill x
> > > > 
> > > > x \leftarrowfill x
> > > 
> > > yours sincerely
> > > dr. Hans van der Meer
> > > 
> > > 
> > 
> > I find this interesting. I agree with Hans vdM.
> > 
> > So what would be the acceptable standard given an x length of a glue?
> > 
> > In the above examples, it's all preset.
> > 
> > Is a rule of thumb — no pun intended here — to apply thereafter
> > a glue, in this case a \vrule that follows the box and precedes the
> > other glue? that is, the \rightarrowfill or \leftarrowfill?
> > 
> > I mean. Once you get the glues messed up, the whole box crumbles.
> 
> I'm not sure how you can mess up glue so that the box is no longer a box.
> Boxes remain boxes.

I guess that's the same mentality behind a fixed glue in LMTX, while
trying not to mess up the box. Back to point A and the main reason of the
op's question. 

Then again, the only way to resemble what TeX does is by re/defining
and copied verbatim from The TeXbook  both rightarrowfill and
leftarrowfill

and unlike with TeX in which an 

\hbox to 1in{\vrule \rightarrowfill \ 1cm \leftarrowfill\vrule} 

it says 1cm but it'd be more than that, and accurately so 


> 
> > How good would \meaning be here, notwithstanding the valuable info of
> > the macro it provides, if it can't print out, let alone source it up,
> > the more accurate dimension, let alone the measurement.
> 
> I don't follow. Does this come from ChapGPT?
> 

That's funny. 

But as chatgpt says:
"Sorry about that. \meaning\rightarrowfill is 
\begingroup \scratchunicode 8594\relax \adaptivebox [mathfiller][alterna­
tive=8594]{\hss \strut \hss }\endgroup "

That's what lmtx returned after Hans vdM sample


> > So, one would need to know the preset layout of the page to have an idea
> > about it?
> > 
> > Hans H. pulled the old modified trick of 'works here'.
> 
> Well, when used in a paragraph it works indeed. No trick involved. But as it
> uses a specific mechanism in an hbox you need to trigger that (unless you
> want to add overhead that will kake tex crawl).
> 
> > Like a magician… now all of a sudden evetything works, but unlike TeX's
> 
> Not sure what this refers to. Much of TeX is magick but what is bad about
> that?
> 
> > \hbox to 1in{\vrule \rightarrowfill \ 1in \leftarrowfill\vrule}
> > 
> > or
> > 
> > \hbox to 1cm{\vrule \rightarrowfill \ 1cm \leftarrowfill\vrule}
> > 
> > which gives an accurate description, not to mention measurement,
> 
> It depends on what you expect. First of all, your assumption that the arrow
> fill is the same as in plain tex is wrong.

Why would it be wrong? 

When I type 

\hbox to 3cm{\rightarrowfill} without a vrule

that's what I would normally expect


> 
> (1) one can define an arrow fill using a leader that uses some (happen to be
> present in tex math fonts) glyphs: repeated minuses followed by some magic
> kern and an arrow head.
> 

Can you apply it to pagination without breaking? 

Highly doubt it.


> (2) You can hope that the magick kern is right and that the minus aligns
> with the arrows bar.
> 
> (3) You also assume that the math font matches the text font.
> 
> (4) Normally an arrow fill is something math anyway. Where there can also be
> something on top or below, or where it can be a top or bottom accent.
> 
> > a
> > 
> > \vbox to 5pt{x\vrule\rightarrowfill \ x \leftarrowfill\vrule\ x}
> > 
> > or
> > 
> > x \rightarrowfill x
> > x \leftarrowfill x
> > 
> > or
> > 
> > \vbox to 3pt{x\vrule\rightarrowfill \  \leftarrowfill\vrule\ x}
> > 
> > \ \rightarrowfill \
> > \ \leftarrowfill \
> > 
> > 
> > in LMTX doesn't say much
> What should it say? You get a space, an arrow and a disc

Re: [NTG-context] right and left arrowfill

2023-06-23 Thread Hans Hagen via ntg-context

On 6/23/2023 12:43 PM, Carlos via ntg-context wrote:

On Thu, Jun 22, 2023 at 03:32:25PM +0200, Hans van der Meer via ntg-context 
wrote:

\starttext
x \rightarrowfill x

x \leftarrowfill x

hbox to 5cm:

y\hbox to5cm{\rightarrowfill}y

y\hbox to5cm{\leftarrowfill}y
\stoptext

But obviously not in an dimensioned \hbox, whereas Knuth's version does that 
too.




On 22 Jun 2023, at 15:11, Hans Hagen via ntg-context  wrote:

x \rightarrowfill x

x \leftarrowfill x


yours sincerely
dr. Hans van der Meer




I find this interesting. I agree with Hans vdM.

So what would be the acceptable standard given an x length of a glue?

In the above examples, it's all preset.

Is a rule of thumb — no pun intended here — to apply thereafter
a glue, in this case a \vrule that follows the box and precedes the
other glue? that is, the \rightarrowfill or \leftarrowfill?

I mean. Once you get the glues messed up, the whole box crumbles.


I'm not sure how you can mess up glue so that the box is no longer a 
box. Boxes remain boxes.



How good would \meaning be here, notwithstanding the valuable info of
the macro it provides, if it can't print out, let alone source it up,
the more accurate dimension, let alone the measurement.


I don't follow. Does this come from ChapGPT?


So, one would need to know the preset layout of the page to have an idea
about it?

Hans H. pulled the old modified trick of 'works here'.


Well, when used in a paragraph it works indeed. No trick involved. But 
as it uses a specific mechanism in an hbox you need to trigger that 
(unless you want to add overhead that will kake tex crawl).



Like a magician… now all of a sudden evetything works, but unlike TeX's


Not sure what this refers to. Much of TeX is magick but what is bad 
about that?



\hbox to 1in{\vrule \rightarrowfill \ 1in \leftarrowfill\vrule}

or

\hbox to 1cm{\vrule \rightarrowfill \ 1cm \leftarrowfill\vrule}

which gives an accurate description, not to mention measurement,


It depends on what you expect. First of all, your assumption that the 
arrow fill is the same as in plain tex is wrong.


(1) one can define an arrow fill using a leader that uses some (happen 
to be present in tex math fonts) glyphs: repeated minuses followed by 
some magic kern and an arrow head.


(2) You can hope that the magick kern is right and that the minus aligns 
with the arrows bar.


(3) You also assume that the math font matches the text font.

(4) Normally an arrow fill is something math anyway. Where there can 
also be something on top or below, or where it can be a top or bottom 
accent.



a

\vbox to 5pt{x\vrule\rightarrowfill \ x \leftarrowfill\vrule\ x}

or

x \rightarrowfill x
x \leftarrowfill x

or

\vbox to 3pt{x\vrule\rightarrowfill \  \leftarrowfill\vrule\ x}

\ \rightarrowfill \
\ \leftarrowfill \


in LMTX doesn't say much

What should it say? You get a space, an arrow and a discarded space.

That said: I think you miss a few points here:

(1) I know Hans vd Meer well and he knows ConTeXt well. He's quite 
capable of figuring out how to use advanced features and I bet he likes 
the following variant of arrows in text. Next time we meet I'll show him 
some more adaptive tricks (although I bet he can figure them out himself).


\starttext

% \setupexternalfigures
%   [location={default,global}]

% \startsetups adaptive:test
% \setbox\usedadaptivebox\hbox to \usedadaptivewidth yoffset 
-\usedadaptivedepth \bgroup

% \externalfigure
%   [cow.pdf]
%   [width=\usedadaptivewidth,
%height=\dimexpr\usedadaptiveheight+\usedadaptivedepth\relax]%
%\egroup
% \stopsetups

\startsetups adaptive:test
\setbox\usedadaptivebox\hbox to \usedadaptivewidth yoffset .25ex 
\bgroup

\startMPcode
drawarrow ((0,0) -- (\the\usedadaptivewidth,0)) randomized 
(ExHeight/2);

\stopMPcode
   \egroup
\stopsetups

\dorecurse{5}{
\dostepwiserecurse{1}{150}{1}{%
this~#1.##1 is~#1.##1 test~#1.##1
{\adaptivebox[strut=yes,setups=adaptive:test]{\strut}}
}
\blank
}

\stoptext

(2) If someone wants a plain (or fot that matter latex) solution then 
one can use these macro packages or write a macro that mimicks 
expectations.


(3) I don't like "Hans H. pulled the old modified trick of 'works 
here'." kind of remarks because they have a rather negative undertone 
and I don't know how to read 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 / https://

Re: [NTG-context] new version

2023-06-23 Thread Hans Hagen via ntg-context

On 6/23/2023 11:54 AM, Marcus Vinicius Mesquita via ntg-context wrote:

Should then \setupalign[granular] be used before defining font features?
No, it's an independent feature of the linebreak mechanism. You can run 
this and see how it kicks in


\starttext

\definecolor[ttest][a=1,t=.5]
\definecolor[rtest][a=1,t=.5,r=1]

\dostepwiserecurse{80}{120}{1}{
\startTEXpage[offset=1ts]
\startcombination[1*3]
{\startoverlay
{\vtop{\showmakeup[space]\hsize #1mm\ttest 
\samplefile{tufte}}}
{\vtop{\showmakeup[space]\hsize #1mm\rtest 
\setupalign[granular]\samplefile{tufte}}}

\stopoverlay} {}
{\vtop{\showmakeup[space]\hsize #1mm\ttest 
\samplefile{tufte}}} {}
{\vtop{\showmakeup[space]\hsize #1mm\rtest 
\setupalign[granular]\samplefile{tufte}}} {}

\stopcombination
\stopTEXpage
}

\stoptext



-
  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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] right and left arrowfill

2023-06-23 Thread Carlos via ntg-context
On Thu, Jun 22, 2023 at 03:32:25PM +0200, Hans van der Meer via ntg-context 
wrote:
> \starttext
>x \rightarrowfill x
> 
>x \leftarrowfill x
> 
> hbox to 5cm:
> 
>y\hbox to5cm{\rightarrowfill}y
> 
>y\hbox to5cm{\leftarrowfill}y
> \stoptext
> 
> But obviously not in an dimensioned \hbox, whereas Knuth's version does that 
> too.
> 
> 
> 
> > On 22 Jun 2023, at 15:11, Hans Hagen via ntg-context  
> > wrote:
> > 
> >x \rightarrowfill x
> > 
> >x \leftarrowfill x
> 
> yours sincerely
> dr. Hans van der Meer
> 
> 

I find this interesting. I agree with Hans vdM.

So what would be the acceptable standard given an x length of a glue? 

In the above examples, it's all preset.

Is a rule of thumb — no pun intended here — to apply thereafter
a glue, in this case a \vrule that follows the box and precedes the
other glue? that is, the \rightarrowfill or \leftarrowfill?

I mean. Once you get the glues messed up, the whole box crumbles. 

How good would \meaning be here, notwithstanding the valuable info of
the macro it provides, if it can't print out, let alone source it up,
the more accurate dimension, let alone the measurement.

So, one would need to know the preset layout of the page to have an idea
about it? 

Hans H. pulled the old modified trick of 'works here'. 

Like a magician… now all of a sudden evetything works, but unlike TeX's

\hbox to 1in{\vrule \rightarrowfill \ 1in \leftarrowfill\vrule} 

or

\hbox to 1cm{\vrule \rightarrowfill \ 1cm \leftarrowfill\vrule} 

which gives an accurate description, not to mention measurement, 

a 

\vbox to 5pt{x\vrule\rightarrowfill \ x \leftarrowfill\vrule\ x}

or 

x \rightarrowfill x
x \leftarrowfill x 

or

\vbox to 3pt{x\vrule\rightarrowfill \  \leftarrowfill\vrule\ x}

\ \rightarrowfill \ 
\ \leftarrowfill \ 


in LMTX doesn't say much 

-- 
C for yourself.

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] new version

2023-06-23 Thread Marcus Vinicius Mesquita via ntg-context
Should then \setupalign[granular] be used before defining font features?

On Thu, Jun 22, 2023 at 9:37 AM Hans Hagen via ntg-context
 wrote:
>
> Hi,
>
> I uploaded a new lmtx version (so the next series will be luametatex
> 2.10.10). Although Mikael and I are still in improving math mode, we
> side tracked a bit to the par builder (better breaking of math etc). In
> the end some experiments there turned features.
>
> (1) We already had a more granular par builder but that was never really
> enabled. From now on you can do that with
>
> \setupalign[granular]
>
> After quite some tests and careful inspection of outcome we think that
> the results look better, which is why if could become a default. The
> main impact is a bit more even spacing between neighbouring lines,
> because we operate in five instead of three ranges of primary badness now.
>
> (2) As side effect of (3) initialization of expansion (as well as
> compression and protrusion) is delayed till it kicks in. This means that
>
> \definefontfeature[default][default][expansion=quality]
>
> has become cheaper and might as well become the default.
>
> (3) The biggest new feature (already known to some of you as we chat
> about it) is that in addition to the (upto three) passes that create a
> paragraph we can now have extra ones. This is discussed in
> lowlevel-lines.pdf (preliminary). The second pass is the most important
> one (it uses hyphenation but not yet emergency stretch) and, based on
> criteria that can be set, between the second and third pass multiple
> attempts can be triggered.
>
> So, for instance one can start careful (pass one), less careful (pass
> two), test all kind of variants (pass 2 subpasses) etc. These subpasses
> can have different tolerances, demerits, expansion, etc and quit once
> soem criteria are met.
>
> The problem here is: what makes good defaults. Therefore we have some
> tests definitions added (see spac-pas-tests) that we hope users will
> test on realistic documents.
>
> In case one wonders: performance is quite okay and you won't notice much
> difference on a reasonable run. Also, when you normally use expansion
> for a whole document, you can now let it kick in more selectively. As a
> result a run can be faster and the resulting pdf file can be smaller.
> This feature kind of assumes (1) above.
>
> (4) There's also a new feature for optional content: you can have marked
> sections in a paragraph that can be enabled or disabled in attempts to
> get better output. Of course one can wonder it this is useful but it was
> one of the older todo's. When it is considered usefull it can evolve.
>
> (The lowlevel-lines manual is work in progress and in a few weeks we
> will pick up on 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 / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___



-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o
corpo nem seus membros, por ser descanso da alma, primavera do
coração, distração do aflito, entretenimento do solitário, e viático
do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
_______
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] viewer layers (optional content groups, OCG)

2023-06-22 Thread Hans Hagen via ntg-context

On 6/19/2023 8:41 PM, Henning Hraban Ramm via ntg-context wrote:

Checking viewer layers:

* \setupviewerlayer doesn’t work; e.g. "state=stop" only works if I put 
it in \defineviewerlayer

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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] right and left arrowfill

2023-06-22 Thread Hans Hagen via ntg-context

On 6/22/2023 3:32 PM, Hans van der Meer via ntg-context wrote:

\starttext
x \rightarrowfill x

x \leftarrowfill x

hbox to 5cm:

y\hbox to5cm{\rightarrowfill}y

y\hbox to5cm{\leftarrowfill}y
\stoptext

But obviously not in an dimensioned \hbox, whereas Knuth's version does that 
too.

\permanent\protected\def\adaptive{\dowithnextbox{\adaptivecheckbox\nextbox\box\nextbox}}

y\adaptive\hbox to5cm{x\rightarrowfill x}y

y\adaptive\hbox to5cm{x\leftarrowfill x}y

will keep you occupied for a while because now you have to grep for 
adaptive


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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] right and left arrowfill

2023-06-22 Thread Hans van der Meer via ntg-context
\starttext   x \rightarrowfill x   x \leftarrowfill xhbox to 5cm:   y\hbox to5cm{\rightarrowfill}y   y\hbox to5cm{\leftarrowfill}y\stoptextBut obviously not in an dimensioned \hbox, whereas Knuth's version does that too.

On 22 Jun 2023, at 15:11, Hans Hagen via ntg-context  wrote:   x \rightarrowfill x   x \leftarrowfill xyours sincerelydr. Hans van der Meer

hboxarrowfill.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] floatcombinations seem to not work correctly after lmtx update

2023-06-22 Thread Hans Hagen via ntg-context

On 6/19/2023 1:53 PM, Gerion Entrup via ntg-context wrote:

Hi,

I recently updated my Context (lmtx). Unfortunately, I'm not aware of
the previous version anymore. The current one is 2023.06.04 18:58.

After the update one of my documents broke at floatcombinations.
The relevant code is this one:
the fact that you don't see a) coudl point to some mismatsh in 
start/stop or { }


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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] right and left arrowfill

2023-06-22 Thread Hans Hagen via ntg-context

On 6/21/2023 10:10 PM, Hans van der Meer via ntg-context wrote:

A few days ago I drew attention to the fact that \rightarrowfill and 
\leftarrowfill are broken in the latest ConTeXt. Imho that should not happen 
with basic TeX macro's.
Although one can recreate their definitions from the TeX-book (see the MWE 
attached), I still do not understand why it should be needed.


\starttext

x \rightarrowfill x

x \leftarrowfill x

\stoptext

works ok here

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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2023-06-22 Thread Cron Daemon via ntg-context
receiving incremental file list
 ./
 ctan.lsr
 document-2.htm
 download-1.htm
 download-2.htm
 logo-ade.png
 logo-cts.png
 logo-pod.png
 rss.xml
 show-fil.pdf
 context/latest/
 context/latest/cont-lmt.zip
 context/latest/cont-mpd.zip
 context/latest/cont-ppc.zip
 context/latest/cont-sci.zip
 context/latest/cont-tmf.zip
 context/latest/cont-tst.7z
 context/latest/cont-tst.tar.xz
 context/latest/cont-tst.zip
 general/manuals/
 general/manuals/lowlevel-lines.pdf
 
 sent 174,867 bytes  received 39,720,996 bytes  3,799,606.00 bytes/sec
 total size is 561,230,464  speedup is 14.07


Running archiver:

New dir: /var/www/aanhet.net/context//htdocs/archives/context-2023-06-22.15
232849101   
/var/www/aanhet.net/context//htdocs/archives/context-2023-06-22.15/latest
126745317   
/var/www/aanhet.net/context//htdocs/archives/context-2023-06-22.15/current
359598514   
/var/www/aanhet.net/context//htdocs/archives/context-2023-06-22.15
359598514   total
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] new version

2023-06-22 Thread Hans Hagen via ntg-context

Hi,

I uploaded a new lmtx version (so the next series will be luametatex 
2.10.10). Although Mikael and I are still in improving math mode, we 
side tracked a bit to the par builder (better breaking of math etc). In 
the end some experiments there turned features.


(1) We already had a more granular par builder but that was never really 
enabled. From now on you can do that with


\setupalign[granular]

After quite some tests and careful inspection of outcome we think that 
the results look better, which is why if could become a default. The 
main impact is a bit more even spacing between neighbouring lines, 
because we operate in five instead of three ranges of primary badness now.


(2) As side effect of (3) initialization of expansion (as well as 
compression and protrusion) is delayed till it kicks in. This means that


\definefontfeature[default][default][expansion=quality]

has become cheaper and might as well become the default.

(3) The biggest new feature (already known to some of you as we chat 
about it) is that in addition to the (upto three) passes that create a 
paragraph we can now have extra ones. This is discussed in 
lowlevel-lines.pdf (preliminary). The second pass is the most important 
one (it uses hyphenation but not yet emergency stretch) and, based on 
criteria that can be set, between the second and third pass multiple 
attempts can be triggered.


So, for instance one can start careful (pass one), less careful (pass 
two), test all kind of variants (pass 2 subpasses) etc. These subpasses 
can have different tolerances, demerits, expansion, etc and quit once 
soem criteria are met.


The problem here is: what makes good defaults. Therefore we have some 
tests definitions added (see spac-pas-tests) that we hope users will 
test on realistic documents.


In case one wonders: performance is quite okay and you won't notice much 
difference on a reasonable run. Also, when you normally use expansion 
for a whole document, you can now let it kick in more selectively. As a 
result a run can be faster and the resulting pdf file can be smaller. 
This feature kind of assumes (1) above.


(4) There's also a new feature for optional content: you can have marked 
sections in a paragraph that can be enabled or disabled in attempts to 
get better output. Of course one can wonder it this is useful but it was 
one of the older todo's. When it is considered usefull it can evolve.


(The lowlevel-lines manual is work in progress and in a few weeks we 
will pick up on 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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] right and left arrowfill

2023-06-21 Thread Hans van der Meer via ntg-context
A few days ago I drew attention to the fact that \rightarrowfill and \leftarrowfill are broken in the latest ConTeXt. Imho that should not happen with basic TeX macro's.Although one can recreate their definitions from the TeX-book (see the MWE attached), I still do not understand why it should be needed.
yours sincerelydr. Hans van der Meer 

hboxarrowfill.tex
Description: Binary data


hboxarrowfill.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Fwd: [veraPDF-users] Development Preview: PDF file checker based on the Arlington PDF Model

2023-06-21 Thread Pablo Rodriguez via ntg-context
Dear list,

it is still early development, but this tool might be extremely useful
to check PDF documents.

Direct link to downloads (version 1.25 doesn’t seem to be available):

  https://software.verapdf.org/develop/arlington/1.23

Just in case it might help,

Pablo

 Forwarded Message 
Subject: [veraPDF-users] Development Preview: PDF file checker based on
the Arlington PDF Model
Date:   Wed, 21 Jun 2023 12:35:12 +0100
  Dear all, 

On the 30th anniversary of PDF technology, we're excited to announce the
availability of the first development preview of a new veraPDF-powered
application. Building on the great work done by the PDF Association
supported by the Defence Advanced Research Projects Agency (DARPA),
veraPDF has developed an open-source PDF checker based on the Arlington
PDF Model. This application is separate from the veraPDF PDF/A and
PDF/UA validator but comprises a very familiar package of GUI and
command-line applications.

*The Arlington PDF Model is an invaluable resource for anyone developing
or testing PDF tools. *Read more about the development here.
<https://openpreservation.org/news/development-preview-pdf-file-checker-based-on-the-arlington-pdf-model/>
 

The veraPDF development team have utilised  Arlington in a way that's
compatible with the veraPDF architecture. The Arlington PDF Model-based
checker can now analyse PDF files against the full PDF 2.0
specification, including errata, by downloading the Java-based installer
(Win, MacOS, Linux, requires Java 8+ JRE installed) at veraPDF Software
Downloads <https://software.verapdf.org/develop/arlington/>. 

Best wishes,

Helena

--

Helena Watson (she/her), Marketing Officer

Open Preservation Foundation (OPF) <https://openpreservation.org/> 

Twitter <http://twitter.com/openpreserve>| GitHub
<https://github.com/openpreserve/>| Mailing List
<http://openpreservation.org/subscribe>


Please note: I work part-time for OPF, please bear with me if I don't
reply to your email right away. I may email you at a time that is
convenient for me, but please don't feel the need to respond outside of
your working hours. 


Discover the benefits of OPF membership
<https://openpreservation.org/membership>

___
veraPDF Users mailing list -- us...@lists.verapdf.org
To unsubscribe send an email to users-le...@lists.verapdf.org

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Arabic Type Design

2023-06-21 Thread Henning Hraban Ramm via ntg-context

interesting article:
https://futuress.org/stories/arabic-typography/amp/

HR
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] error in column sets

2023-06-20 Thread Henning Hraban Ramm via ntg-context

Am 19.06.23 um 21:59 schrieb Henning Hraban Ramm via ntg-context:

In a minimal example like this:

\setuppapersize[A5]
\definecolumnset[TwoColumns][n=2]

\starttext
\startcolumnset [TwoColumns]
    \dorecurse{10}{\samplefile{knuth}}
\stopcolumnset

\stoptext

… many columns start one line too low and overwrite their last line.

...
Also I seem to remember that column sets would enforce grid mode, but 
they clearly don’t.


If you enable \setuplayout[grid=yes], lines get placed correctly.
Also floats work well (here and top).

But some columnsetspans still disappear, and footnotes get overwritten. 
(I know, that tricky inset stuff…)


Hraban

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] error in column sets

2023-06-19 Thread Henning Hraban Ramm via ntg-context

In a minimal example like this:

\setuppapersize[A5]
\definecolumnset[TwoColumns][n=2]

\starttext
\startcolumnset [TwoColumns]
   \dorecurse{10}{\samplefile{knuth}}
\stopcolumnset

\stoptext

… many columns start one line too low and overwrite their last line.


An extended example (nearly the same as in the manual) shows that some 
column set spans don’t appear:


\showgrid\showframe

\definecolumnset[Beispiel][n=3]
\definecolumnsetspan[Zwei][n=2,color=blue]
\definecolumnsetspan[Drei][n=3,color=red]

\starttext
\startcolumnset[Beispiel]
\startcolumnsetspan[Drei]% this works
{\bfd Überschrift}

Anleser: \dorecurse{2}{#1: \samplefile{knuth}\par}
\stoptitle
\stopcolumnsetspan

Zwischen: \samplefile{tufte}\par

\startcolumnsetspan[Zwei]% This never shows up!
Zwei: \dorecurse{2}{#1: \samplefile{lorem}\par}
\stopcolumnsetspan

Nach: \dorecurse{15}{#1: \samplefile{knuth}\par}
\stopcolumnset
\stoptext

Also I seem to remember that column sets would enforce grid mode, but 
they clearly don’t.


(BTW the old \startcolumns mode works better than I remembered.)

Hraban
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] viewer layers (optional content groups, OCG)

2023-06-19 Thread Henning Hraban Ramm via ntg-context

Checking viewer layers:

* \setupviewerlayer doesn’t work; e.g. "state=stop" only works if I put 
it in \defineviewerlayer

* visible=no has no effect
* what are the options tag/name supposed to do?
(https://wiki.contextgarden.net/Viewer_Layers)
* known problem: only Acrobat supports JS to control OCGs 
(\overlayrollbutton in the MWE)


Hraban


\setupinteraction[state=start]% needed for JS

\defineviewerlayer[Gebuesch][
  state=stop,
]
\defineviewerlayer[Versteck]
\setupviewerlayer[Versteck][ % doesn’t work
  state=stop,
]

\starttext
Hier fängt der Wald an.

\startviewerlayer[Gebuesch]
Hier versteckt sich ein Wolf...
\stopviewerlayer

Bäume, Bäume, Bäume...

\viewerlayer[Gebuesch]{... und ein Rotkehlchen}

\startviewerlayer[Versteck]Rumpelwicht\stopviewerlayer

\defineoverlay[MitVersteck]
[{\overlayrollbutton[VideLayer{Versteck}][HideLayer{Versteck}]}]

\framed[background=MitVersteck]{Kummst du mul kuckn?}

\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] floatcombinations seem to not work correctly after lmtx update

2023-06-19 Thread Gerion Entrup via ntg-context
Hi,

I recently updated my Context (lmtx). Unfortunately, I'm not aware of
the previous version anymore. The current one is 2023.06.04 18:58.

After the update one of my documents broke at floatcombinations.
The relevant code is this one:
```
\useMPlibrary[dum]
\setupcombinations[alternative=text]

\definefloat[subfigure][local=yes]
\setupcaption[subfigure][numberconversion=a, prefix=no, headseparator={)}]
\setuplabeltext[subfigure=]

\appendvalue{stopplacefigure}{\resetcounter[subfigure]}

\starttext
test sdlkf jlsdjf lksjdf
\startplacefigure[title=Test]
\startfloatcombination[nx=3]
  \startplacesubfigure[title=Test]
\externalfigure[dummy][width=0.3\textwidth]
  \stopplacesubfigure
  \startplacesubfigure[title=Test]
\externalfigure[dummy][width=0.3\textwidth]
  \stopplacesubfigure
  \startplacesubfigure[title=Test]
\externalfigure[dummy][width=0.3\textwidth]
  \stopplacesubfigure
\stopfloatcombination
\stopplacefigure
lskdjf lskjfd lksjdfljsdkjf
\stoptext
```
In this minimal example everything works. However, in my real document
the subfigures have enormous space between them so just two pictures are
visible (see the attached png).

Do you have a clue, why this happens? Otherwise, I would take the
preamble of the real document and try to lower it down to have a
reproducible example (but that takes a lot of time, so I wanted to ask
beforehand).

Best,
Gerion


signature.asc
Description: This is a digitally signed message part.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] TikZ \shade broken

2023-06-19 Thread Gavin via ntg-context
Hi Hans,

>> I am running into a problem with the \shade command... 
>> tex error   > tex error on line 8 in file ./TikZtest.tex: Valid keyword 
>> expected, likely 'direction'
>>  \pgfsys@vertshading
>> #1#2#3->{\pgf@parsefunc {#3}\pgfmathparse {#2}\setbox \pgfutil@tempboxa 
>> =\hbox dir
>> ...
> luametatex doesn't have the dir keyword
> 
> (I could probably add it in a simplified form just for this purpose because 
> the performance penalty is less now.)

If you have a chance to add a dir keyword, that would be great. Since the 
keyword is used inside a TikZ macro, I don’t see any way I can work around it 
in my document.

I am gradually converting my diagrams from TikZ to MetaFun, but with well over 
a hundred diagrams in my current project, that’s going to take some time.

Thanks!
Gavin


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Off topic: Does a 'free for commercial use' flared-sans font exist in the world?

2023-06-19 Thread luigi scarso via ntg-context
On Sun, 18 Jun 2023 at 21:56, Hans Hagen via ntg-context 
wrote:

> On 6/18/2023 8:37 PM, Carlos via ntg-context wrote:
> > On Sat, Jun 17, 2023 at 06:53:06PM +0200, Hans Hagen via ntg-context
> wrote:
> >> What is PFC data?
> >
> > The glyph containers on a table-based SFNT format
>
> So just shapes or pieces of shapes?
>
>
https://hal.science/hal-02112905v1/file/article-yannis.pdf

--
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Off topic: Does a 'free for commercial use' flared-sans font exist in the world?

2023-06-18 Thread Hans Hagen via ntg-context

On 6/18/2023 8:37 PM, Carlos via ntg-context wrote:

On Sat, Jun 17, 2023 at 06:53:06PM +0200, Hans Hagen via ntg-context wrote:


On 6/17/2023 2:06 AM, linguafalsa--- via ntg-context wrote:

On Fri, Jun 16, 2023 at 06:35:49PM +0200, Gerben Wierda via ntg-context wrote:

I know this is off topic, but I suspect this community is actually one of the 
best places to find an answer.



It is the best community. And I tell you what.

What happened is that all TeX engines have neglected fonts from the beginning.


Really? When tex showed up digital font technology was pretty much in flux.
And, with metafont being part of the tex ecosystem, one can argue that tex
was quite innovative too.


Ecosystem. I would be very careful by including an ecosystem there.
Yes. Yes. The TeX ecosystem is obviously part of TeX but is not part
of the ecosystem of fonts either. And what is done on ecosystems
can either benefit or affect ecosystems greatly. And it's a known
trait that humans have been known for having more of a flock group
mentality for no apparent rationally-based reasons than just being
themselves making  these decisions/following instincts or whatever
and not because of a particular ecosystem, or for the benefit of the latter.


With ecosystemn I mean: tex, metafont, cmr fonts, all kind of tools ... 
evolving into more engines, more fonts, macro packages, distributions, 
user groups and use group journals, meetings etc



And the above does not imply, bear with me here, that metafont was
not innovative, but it can be argued that without TeX there is no
metafont, so no room is left for errors either. So, yes, it must be
innovative. It has to be.


There had to be metafont because there was not much else that could 
provide what tex needed (at that time).



Potscript and its fonts came aroudn at the same time and were rather closed
technologies. But as soon possible backend drivers (also part of the tex
ecosystem) kicked in.

Then we got virtual fonts which enhanced tex's capabilities.


I really like Optima, and what I really like about it is the 'flared style'.

But I would like to move to a flared-sans font that gives me more licensing 
freedom. I haven't been able to find one after extensive searching. The only 
one who were reasonably priced (not free) were the URW Classico ones in Adobe 
Creative Cloud, but those can only be used in Adobe programs like InDesign (and 
not TeX).



Licensing freedom is an oxymoron. There's no freedom in licensing.
Only greed.

The only extension engine that at one point had a plan in mind,
or most of the bases covered in this regard was Omega.


One needs morr than plans. Afaik omega was more about input processing and
th efont part was mostly going beyond 8 bit fonts but i might have missed
something (omega was never productin ready).


Notwithstanding the intricacies/details of what may have actually
happened with its short lifespan I think it's more than clear the lack
of support behind it. I'm not going to delve into what exactly caused
its demise or if it was simply the after effect of other projects
that contributed to it. It's irrelevant.


Hm, its time span was not that short ... I first heard of omega at the 
eurotex meeting in arnhem where also etex was discussed (and you 
dont'want me to cite things said there) .. in successive years there 
have been announcemnts etc.


However, for an engine to be used it must work reliable and guiseppes 
'aleph' was basically a variant of omega that also had etex on board.
In fact, that was supported in context mkii (and some used it because of 
the input processor which i think was the more innovative thing in omega 
but i never dived into it, other users did)


It makes no sense to discuss into all this as all teams involved in 
engines have published in user group journals or presented plans at 
meetings.


Also keep in mind that we're talking frontend here; omega is dvi based 
so like regular tex and etex whatever it does with fonts is not really 
related to the engine bu tup to the backend: the engine only needs 
metrics (omega extended tfm into ofm for that).


pdftex brought a pdf backend, xetex pipes into a dvi backend, luatex has 
a pdf backend built in; (nts being related to etec never took of also 
because it was not that useable and in the meantime pdftex had taken 
over); there are afaik some very useable japanese tex engines; the fact 
that dvi survived was due to dvipdfmx development



But stand by for a second. I look forward to your quick witted answers. But 
hear me
out

Suppose that on my prior message I was referring indeed to 'mkii' and
not to 'omega'

And also suppose for a second that the term 'omega' is to be replaced
with 'mkii' on your reply accordingly

After careful observation the resemblance is quite possibly identical,
isn't it? and it could also inarguably apply to the circumstances as
well. Don't you think?


no it isn't, its building upon hat is there:

mkii -> mkiv   -> mkxl
(p

[NTG-context] right/left-arrowfill not seen

2023-06-18 Thread Hans van der Meer via ntg-context
Why do the \rightarrowfill and \leftarrowfill not show up in the accompanying MWE?
yours sincerelydr. Hans van der Meer





hboxfill.pdf
Description: Adobe PDF document


hboxfill.tex
Description: Binary data


hboxfill.log
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Off topic: Does a 'free for commercial use' flared-sans font exist in the world?

2023-06-18 Thread Carlos via ntg-context
On Sat, Jun 17, 2023 at 06:53:06PM +0200, Hans Hagen via ntg-context wrote:

> On 6/17/2023 2:06 AM, linguafalsa--- via ntg-context wrote:
> > On Fri, Jun 16, 2023 at 06:35:49PM +0200, Gerben Wierda via ntg-context 
> > wrote:
> > > I know this is off topic, but I suspect this community is actually one of 
> > > the best places to find an answer.
> > > 
> > 
> > It is the best community. And I tell you what.
> > 
> > What happened is that all TeX engines have neglected fonts from the 
> > beginning.
> 
> Really? When tex showed up digital font technology was pretty much in flux.
> And, with metafont being part of the tex ecosystem, one can argue that tex
> was quite innovative too.

Ecosystem. I would be very careful by including an ecosystem there.
Yes. Yes. The TeX ecosystem is obviously part of TeX but is not part
of the ecosystem of fonts either. And what is done on ecosystems
can either benefit or affect ecosystems greatly. And it's a known
trait that humans have been known for having more of a flock group
mentality for no apparent rationally-based reasons than just being
themselves making  these decisions/following instincts or whatever
and not because of a particular ecosystem, or for the benefit of the latter.

And the above does not imply, bear with me here, that metafont was
not innovative, but it can be argued that without TeX there is no
metafont, so no room is left for errors either. So, yes, it must be
innovative. It has to be.

> 
> Potscript and its fonts came aroudn at the same time and were rather closed
> technologies. But as soon possible backend drivers (also part of the tex
> ecosystem) kicked in.
> 
> Then we got virtual fonts which enhanced tex's capabilities.
> 
> > > I really like Optima, and what I really like about it is the 'flared 
> > > style'.
> > > 
> > > But I would like to move to a flared-sans font that gives me more 
> > > licensing freedom. I haven't been able to find one after extensive 
> > > searching. The only one who were reasonably priced (not free) were the 
> > > URW Classico ones in Adobe Creative Cloud, but those can only be used in 
> > > Adobe programs like InDesign (and not TeX).
> > > 
> > 
> > Licensing freedom is an oxymoron. There's no freedom in licensing.
> > Only greed.
> > 
> > The only extension engine that at one point had a plan in mind,
> > or most of the bases covered in this regard was Omega.
> 
> One needs morr than plans. Afaik omega was more about input processing and
> th efont part was mostly going beyond 8 bit fonts but i might have missed
> something (omega was never productin ready).


Notwithstanding the intricacies/details of what may have actually
happened with its short lifespan I think it's more than clear the lack
of support behind it. I'm not going to delve into what exactly caused
its demise or if it was simply the after effect of other projects
that contributed to it. It's irrelevant.

But stand by for a second. I look forward to your quick witted answers. But 
hear me
out

Suppose that on my prior message I was referring indeed to 'mkii' and
not to 'omega' 

And also suppose for a second that the term 'omega' is to be replaced
with 'mkii' on your reply accordingly 

After careful observation the resemblance is quite possibly identical,
isn't it? and it could also inarguably apply to the circumstances as
well. Don't you think?

I mean, it's like comparing oranges with apples, and mkii with mkiv and
mkvi and so forth 

If you were to tell me then, that mkii for instance was not aimed
as an input processing I can almos assure its falsiliability is written
all over, even before the sentence is processed and thought out loud
by you.

Bottom line is that the production-ready part is an obvious byproduct
of its short lifespan, but one cannot be making the claim (false as
would have been seen later, because omega carbon footprint lasted more
on books than on shelves really, not for selling out fast but rather
discontinued quickly) and that its goal was solely within this input
processing spectrum. Because it wasn't.

Or heck

or heck. Let's go even further. By making the dubious assertion
that we've been built with noses to hold our eyeglasses lest these
eyeglasses fall off while reading, or that we've been built with ears
to hold pencils and pens in the ears while thinking and writing.

For crying out loud. 

> 
> It is xetex that hooked into opentype although pdftex can actually deal with
> truetype fonts to some extend. Before there was something 'opentype' we had
> two competing but similar technologies. And it took a while before it was
> even clear how to interpre the specification (also think about reverse
> engeneering fonts and heuristics and ... bugs or features ...). 

Re: [NTG-context] Off topic: Does a 'free for commercial use' flared-sans font exist in the world?

2023-06-18 Thread Hans Hagen via ntg-context

On 6/18/2023 10:20 AM, Bruce Horrocks via ntg-context wrote:




On 16 Jun 2023, at 17:35, Gerben Wierda via ntg-context  
wrote:

I know this is off topic, but I suspect this community is actually one of the 
best places to find an answer.

I really like Optima, and what I really like about it is the 'flared style'.

But I would like to move to a flared-sans font that gives me more licensing 
freedom. I haven't been able to find one after extensive searching. The only 
one who were reasonably priced (not free) were the URW Classico ones in Adobe 
Creative Cloud, but those can only be used in Adobe programs like InDesign (and 
not TeX).

I found some flared-sans fonts, but not one with at least regular, italic, 
bold, and bold-italic.

Is there really not a single flared-sans font that is really free (so also for 
commercial use) to use out there?


Not free but good value: Fontspring have a font called Ophian that looks (to my 
untrained eye!) a reasonable match with Optima.

<https://www.fontspring.com/fonts/fontsite/ophian>


Optima has a very recognizable and distinctive design. One of my 
favourites. The palatino nova is another favourite and has a nice sans 
(casual).



$22 for the first licence added to the shopping cart then reductions show for 
the subsequent licences. I'm guessing you'll need two: desktop in order to 
install on a PC and publish a printed book, and eBook to allow distribution of 
a PDF or eBook, so 33 USD in total. There's no time limit nor number of copies 
limit as far as I can see - just one eBook licence per title.

Maybe there will be VAT etc added when you get to checkout - I didn't go that 
far.
Yes, but it smells a bit like some clone. I have an official optima nova 
cd (in type one format, i can't afford the opentype right now) as well 
as the official palatino nova cd (in opentype format); I got them from 
the master himself, which makes them even more special. (It reminds me 
that I need to check if we can drop in replacements in the pagella math.)


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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Off topic: Does a 'free for commercial use' flared-sans font exist in the world?

2023-06-18 Thread Bruce Horrocks via ntg-context


> On 16 Jun 2023, at 17:35, Gerben Wierda via ntg-context  
> wrote:
> 
> I know this is off topic, but I suspect this community is actually one of the 
> best places to find an answer.
> 
> I really like Optima, and what I really like about it is the 'flared style'.
> 
> But I would like to move to a flared-sans font that gives me more licensing 
> freedom. I haven't been able to find one after extensive searching. The only 
> one who were reasonably priced (not free) were the URW Classico ones in Adobe 
> Creative Cloud, but those can only be used in Adobe programs like InDesign 
> (and not TeX).
> 
> I found some flared-sans fonts, but not one with at least regular, italic, 
> bold, and bold-italic.
> 
> Is there really not a single flared-sans font that is really free (so also 
> for commercial use) to use out there?

Not free but good value: Fontspring have a font called Ophian that looks (to my 
untrained eye!) a reasonable match with Optima.

<https://www.fontspring.com/fonts/fontsite/ophian>

$22 for the first licence added to the shopping cart then reductions show for 
the subsequent licences. I'm guessing you'll need two: desktop in order to 
install on a PC and publish a printed book, and eBook to allow distribution of 
a PDF or eBook, so 33 USD in total. There's no time limit nor number of copies 
limit as far as I can see - just one eBook licence per title.

Maybe there will be VAT etc added when you get to checkout - I didn't go that 
far.

Regards,
—
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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] TikZ \shade broken

2023-06-17 Thread Hans Hagen via ntg-context

On 6/17/2023 7:28 PM, Gavin via ntg-context wrote:

Hi List,

First, a big thanks to Aditya for solving the missing pgfsys-luatex.def! That 
was a show-stopper on my Mac.

Now that I can use TikZ again, I am running into a problem with the \shade 
command. Below is a small working example from the TikZ manual [pp.39-41]. The 
first tikzpicture is the example. The second TikZ picture is similar, but 
without any shading.

\usemodule[tikz]
\starttext
\starttikzpicture
\shade[top color=yellow,bottom color=black] (0,0) rectangle +(2,1);
\shade[left color=yellow,right color=black] (3,0) rectangle +(2,1);
\shadedraw[inner color=yellow,outer color=black,draw=yellow] (6,0) rectangle 
+(2,1);
\shade[ball color=green] (9,.5) circle (.5cm);
\stoptikzpicture
\starttikzpicture
\draw[color=black] (0,0) rectangle +(2,1);
\fill[color=yellow] (3,0) rectangle +(2,1);
\filldraw[fill=black,draw =yellow] (6,0) rectangle +(2,1);
\fill[fill=green] (9,.5) circle (.5cm);
\stoptikzpicture
\stoptext
\stoptext

The second picture works. The first picture produces quite an error message 
(below). I’m using

ConTeXt  ver: 2023.06.01 09:42 LMTX  fmt: 2023.6.2

on an M1 Mac with Ventura 13.4

Any help would be greatly appreciated!

Gavin



tex error   > tex error on line 8 in file ./TikZtest.tex: Valid keyword 
expected, likely 'direction'

 \pgfsys@vertshading
#1#2#3->{\pgf@parsefunc {#3}\pgfmathparse {#2}\setbox \pgfutil@tempboxa =\hbox 
dir
TLT to\pgfmathresult pt{\vbox to\pgf@max {\vfil \pgfsys@invoke {/Sh sh}}\hfil 
}\pgf@process {\pgfpoint {#2}{\pgf@max }}\immediate \saveboxresource resources 
{/Shading

luametatex doesn't have the dir keyword

(I could probably add it in a simplified form just for this purpose 
because the performance penalty is less now.)


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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] TikZ \shade broken

2023-06-17 Thread Gavin via ntg-context
Hi List,

First, a big thanks to Aditya for solving the missing pgfsys-luatex.def! That 
was a show-stopper on my Mac.

Now that I can use TikZ again, I am running into a problem with the \shade 
command. Below is a small working example from the TikZ manual [pp.39-41]. The 
first tikzpicture is the example. The second TikZ picture is similar, but 
without any shading.

\usemodule[tikz]
\starttext
\starttikzpicture  
\shade[top color=yellow,bottom color=black] (0,0) rectangle +(2,1);
\shade[left color=yellow,right color=black] (3,0) rectangle +(2,1);
\shadedraw[inner color=yellow,outer color=black,draw=yellow] (6,0) rectangle 
+(2,1);
\shade[ball color=green] (9,.5) circle (.5cm);
\stoptikzpicture
\starttikzpicture  
\draw[color=black] (0,0) rectangle +(2,1);
\fill[color=yellow] (3,0) rectangle +(2,1);
\filldraw[fill=black,draw =yellow] (6,0) rectangle +(2,1);
\fill[fill=green] (9,.5) circle (.5cm);
\stoptikzpicture
\stoptext
\stoptext

The second picture works. The first picture produces quite an error message 
(below). I’m using

ConTeXt  ver: 2023.06.01 09:42 LMTX  fmt: 2023.6.2

on an M1 Mac with Ventura 13.4

Any help would be greatly appreciated!

Gavin



tex error   > tex error on line 8 in file ./TikZtest.tex: Valid keyword 
expected, likely 'direction'

 \pgfsys@vertshading 
#1#2#3->{\pgf@parsefunc {#3}\pgfmathparse {#2}\setbox \pgfutil@tempboxa =\hbox 
dir 
TLT to\pgfmathresult pt{\vbox to\pgf@max {\vfil \pgfsys@invoke {/Sh sh}}\hfil 
}\pgf@process {\pgfpoint {#2}{\pgf@max }}\immediate \saveboxresource resources 
{/Shading 
 
...dafter \expandafter \def \expandafter \expandafter \expandafter \@@args 
\expandafter \expandafter \expandafter {\csname pgf@args\pgf@shadingname 
\endcsname }\expandafter \expandafter \expandafter \@temp \expandafter \@args 
\@@args 
\expandafter  ...
 \pgfutil@firstoftwo 
#1#2->#1
 
...r \expandafter \expandafter {\csname pgf@args\pgf@shadingname \endcsname 
}\expandafter \expandafter \expandafter \@temp \expandafter \@args \@@args 
\expandafter \pgfmath@smuggleone \csname \pgf@shadingxname \endcsname \endgroup 
}{}
\pgf@invokesh ...
 \pgfutil@secondoftwo 
#1#2->#2
 \pgfshadepath 
...e@cos }{0pt}{0pt}\pgfsys@transformcm {\pgf@sys@tonumber {\pgf@xc 
}}{0}{0}{\pgf@sys@tonumber {\pgf@yc }}{0pt}{0pt}\ifx \pgf@shade@extra@transform 
\pgfutil@empty \else \pgflowlevel {\pgf@shade@extra@transform }\fi 
\pgfuseshading {#1}
\pgfsys@endsc ...
...

 
\shade[top color=yellow,bottom color=black] (0,0) rectangle +(2,1);

1 % !TEX useAlternatePath
2 % !TEX useConTeXtSyncParser
3 
4 \usemodule[tikz]
5 
6 \starttext
7   \starttikzpicture  
8 >>  \shade[top color=yellow,bottom color=black] (0,0) rectangle +(2,1);
9 \shade[left color=yellow,right color=black] (3,0) rectangle +(2,1);
10 \shadedraw[inner color=yellow,outer color=black,draw=yellow] (6,0) 
rectangle +(2,1);
11 \shade[ball color=green] (9,.5) circle (.5cm);
12   \stoptikzpicture
13   \starttikzpicture  
14 \draw[color=black] (0,0) rectangle +(2,1);
15 \fill[color=yellow] (3,0) rectangle +(2,1);
16 \filldraw[fill=black,draw =yellow] (6,0) rectangle +(2,1);
17 \fill[fill=green] (9,.5) circle (.5cm);
18   \stoptikzpicture
You started a keyword but it seems to be an invalid one. The first character(s)
might give you a clue. You might want to quit unwanted lookahead with \relax.
mtx-context | fatal error: return code: 1

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Off topic: Does a 'free for commercial use' flared-sans font exist in the world?

2023-06-17 Thread Hans Hagen via ntg-context

On 6/17/2023 2:06 AM, linguafalsa--- via ntg-context wrote:

On Fri, Jun 16, 2023 at 06:35:49PM +0200, Gerben Wierda via ntg-context wrote:

I know this is off topic, but I suspect this community is actually one of the 
best places to find an answer.



It is the best community. And I tell you what.

What happened is that all TeX engines have neglected fonts from the beginning.


Really? When tex showed up digital font technology was pretty much in 
flux. And, with metafont being part of the tex ecosystem, one can argue 
that tex was quite innovative too.


Potscript and its fonts came aroudn at the same time and were rather 
closed technologies. But as soon possible backend drivers (also part of 
the tex ecosystem) kicked in.


Then we got virtual fonts which enhanced tex's capabilities.


I really like Optima, and what I really like about it is the 'flared style'.

But I would like to move to a flared-sans font that gives me more licensing 
freedom. I haven't been able to find one after extensive searching. The only 
one who were reasonably priced (not free) were the URW Classico ones in Adobe 
Creative Cloud, but those can only be used in Adobe programs like InDesign (and 
not TeX).



Licensing freedom is an oxymoron. There's no freedom in licensing.
Only greed.

The only extension engine that at one point had a plan in mind,
or most of the bases covered in this regard was Omega.


One needs morr than plans. Afaik omega was more about input processing 
and th efont part was mostly going beyond 8 bit fonts but i might have 
missed something (omega was never productin ready).


It is xetex that hooked into opentype although pdftex can actually deal 
with truetype fonts to some extend. Before there was something 
'opentype' we had two competing but similar technologies. And it took a 
while before it was even clear how to interpre the specification (also 
think about reverse engeneering fonts and heuristics and ... bugs or 
features ...). TeX was always pretty fast in picking up new stuff (maybe 
users less so).



When it came to commercial fonts the plan of action ahead was by
including PFC data on these very same commercial fonts that would
benefit primarily its opentype versions in the long run.


What is PFC data?


What do you have right now? Opentype fonts only. Sure. Quality can be
even the same than its type1 counterpart, and at times not so much
according so some folks that have bothered to go the extra length in
making the most accurate comparison that's available between them two.


For most fonts it's just 'more shapes' which then also leads to more 
ligatures, kerns etc btu that is already nice. And when fonts lack 
something we can always tweak them (runtime).



But looking at it from a bright side/perspective, I think we're no
longer facing the same pre-historic constraints of including a font
as before, as long as it's not for commercial purposes, You are well
aware of these non and commercial uses even before  your extensive
search anyway,


I'm not sure what is the difference between commercial fonts and free 
ones as they use the same technology; with some exceptions, fonts are 
not that expensive (take lucida from tug, making fonts takes time after 
all); and for publishers it's noise on their budgets.



p.s many many years ago I read and followed some publications about
the aformentioned extension and just went over them recently, to
have an idea what did and did not work. In regards to typefaces,
its goal was unmatched, or so I think.


It might be comforting to know that right from the start luatex made a 
lot possible wrt fonts (runtime manipulation) and was also one of the 
first to support variable fonts, color fonts etc (not that many care 
about that). And with luametatex we go even further.



I found some flared-sans fonts, but not one with at least regular, italic, 
bold, and bold-italic.

Is there really not a single flared-sans font that is really free (so also for 
commercial use) to use out there?
I had to search the net to figure out that flare sans fonts are sans 
fonts with serifs


For those into fonts:

https://tug.org/TUGboat/tb44-1/tb136carter-romano.pdf

I a very nice overview of how it went with digital fonts (and what we 
probably lost in getting where we are now and might loose soon).


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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https

Re: [NTG-context] All NUL files in the Context distribution

2023-06-17 Thread linguafalsa--- via ntg-context
On Sat, Jun 17, 2023 at 10:06:09AM +0200, Alain Delmotte via ntg-context wrote:
> Hi,
> 
> Le 14/06/2023 à 17:13, Leah Neukirchen via ntg-context a écrit :
> > Hi,
> > 
> > I was looking into the SciTE setup when I found that
> > tex/texmf-context/context/data/scite/context/scite-context-internal.properties
> > only contained NUL bytes.
> > 
> > Deleting and reinstalling doesn't fix it.
> > 
> > I have now checked the other files there and these files seem to have
> > gotten corrupted at some point.  Does anyone have a working copy to
> > restore them?
> > 
> > tex/texmf-context/context/data/scite/context/scite-context-internal.properties
> > tex/texmf-context/context/data/scite/context/lexers/scite-context-lexer-web-snippets.lua
> > tex/texmf-context/doc/context/sources/general/manuals/start/en/ma-cb-en-commands.tex
> > 
> > Thanks,
> 
> Same for me:
> tex/texmf-context/doc/context/sources/general/manuals/start/en/ma-cb-en-commands.tex
> contains NUL characters.
> 
> > system > ConTeXt ver: 2023.06.04 18:58 LMTX fmt: 2023.6.13 int:
> english/english

not only that version but also 
 ConTeXt  ver: 2023.04.27 17:04 MKIV  fmt: 2023.5.4  int: english/english

no bueno. 


> 
> --
> 
> Alain
> 
> 
> 

> _______
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___


-- 
As long as there are ill-defined goals, bizarre bugs, and unrealistic
schedules, there will be Real Programmers willing to jump in and Solve
The Problem, saving the documentation for later.

___________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] All NUL files in the Context distribution

2023-06-17 Thread Alain Delmotte via ntg-context

Hi,

Le 14/06/2023 à 17:13, Leah Neukirchen via ntg-context a écrit :

Hi,

I was looking into the SciTE setup when I found that
tex/texmf-context/context/data/scite/context/scite-context-internal.properties
only contained NUL bytes.

Deleting and reinstalling doesn't fix it.

I have now checked the other files there and these files seem to have
gotten corrupted at some point.  Does anyone have a working copy to
restore them?

tex/texmf-context/context/data/scite/context/scite-context-internal.properties
tex/texmf-context/context/data/scite/context/lexers/scite-context-lexer-web-snippets.lua
tex/texmf-context/doc/context/sources/general/manuals/start/en/ma-cb-en-commands.tex

Thanks,


Same for me:
tex/texmf-context/doc/context/sources/general/manuals/start/en/ma-cb-en-commands.tex
contains NUL characters.

> system > ConTeXt ver: 2023.06.04 18:58 LMTX fmt: 
2023.6.13 int: english/english


--

Alain



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Can I use 'extend' and 'slant' in \definefontfamily to create fake italics etc.?

2023-06-16 Thread Gerben Wierda via ntg-context
Libertinus Sans does not have Bold Italic. With this, I come close in ConTeXt:

\definefontfeature [fakeitalic] [slant=0.25]
\definefontfamily
  [archimate]
  [ss]
  [Libertinus Sans]
  [rscale=1.0395]
  [tf=style:Regular,
   bf=style:Bold,
   it=style:Italic,
   bi={style:Bold,features:fakeitalic}]

It is slightly 'thicker' and the lowercases have a somewhat lower height 
percentage of the uppercases than Optima, but this is the closest I have come.

G

> On 16 Jun 2023, at 18:55, Gerben Wierda via ntg-context  
> wrote:
> 
> Only regular, italic, bold, no bold italic (just as the Linux Bilonium it was 
> forked from)
> 
>> On 16 Jun 2023, at 18:39, Henning Hraban Ramm via ntg-context 
>> mailto:ntg-context@ntg.nl>> wrote:
>> 
>> Am 16.06.23 um 18:35 schrieb Gerben Wierda via ntg-context:
>>> I know this is off topic, but I suspect this community is actually one of 
>>> the best places to find an answer.
>>> I really like Optima, and what I really like about it is the 'flared style'.
>>> But I would like to move to a flared-sans font that gives me more licensing 
>>> freedom. I haven't been able to find one after extensive searching. The 
>>> only one who were reasonably priced (not free) were the URW Classico ones 
>>> in Adobe Creative Cloud, but those can only be used in Adobe programs like 
>>> InDesign (and not TeX).
>>> I found some flared-sans fonts, but not one with at least regular, italic, 
>>> bold, and bold-italic.
>>> Is there really not a single flared-sans font that is /really/ free (so 
>>> also for commercial use) to use out there?
>> 
>> How about Libertinus Sans?
>> https://github.com/alerque/libertinus <https://github.com/alerque/libertinus>
>> 
>> Hraban
>> 
>> _______
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>> 
>> maillist : ntg-context@ntg.nl / 
>> https://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : https://contextgarden.net
>> ___
> 
> Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>, Mastodon 
> <https://newsie.social/@gctwnl>)
> R IT Strategy <https://ea.rna.nl/> (main site)
> Book: Chess and the Art of Enterprise Architecture 
> <https://ea.rna.nl/the-book/>
> Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>, Mastodon 
<https://newsie.social/@gctwnl>)
R IT Strategy <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Off topic: Does a 'free for commercial use' flared-sans font exist in the world?

2023-06-16 Thread linguafalsa--- via ntg-context
On Fri, Jun 16, 2023 at 06:35:49PM +0200, Gerben Wierda via ntg-context wrote:
> I know this is off topic, but I suspect this community is actually one of the 
> best places to find an answer.
> 

It is the best community. And I tell you what. 

What happened is that all TeX engines have neglected fonts from the beginning.  

> I really like Optima, and what I really like about it is the 'flared style'.
> 
> But I would like to move to a flared-sans font that gives me more licensing 
> freedom. I haven't been able to find one after extensive searching. The only 
> one who were reasonably priced (not free) were the URW Classico ones in Adobe 
> Creative Cloud, but those can only be used in Adobe programs like InDesign 
> (and not TeX).
> 

Licensing freedom is an oxymoron. There's no freedom in licensing.
Only greed. 

The only extension engine that at one point had a plan in mind,
or most of the bases covered in this regard was Omega.

When it came to commercial fonts the plan of action ahead was by
including PFC data on these very same commercial fonts that would
benefit primarily its opentype versions in the long run.

What do you have right now? Opentype fonts only. Sure. Quality can be
even the same than its type1 counterpart, and at times not so much
according so some folks that have bothered to go the extra length in
making the most accurate comparison that's available between them two.

But looking at it from a bright side/perspective, I think we're no
longer facing the same pre-historic constraints of including a font
as before, as long as it's not for commercial purposes, You are well
aware of these non and commercial uses even before  your extensive
search anyway,

p.s many many years ago I read and followed some publications about
the aformentioned extension and just went over them recently, to
have an idea what did and did not work. In regards to typefaces,
its goal was unmatched, or so I think.

> I found some flared-sans fonts, but not one with at least regular, italic, 
> bold, and bold-italic.
> 
> Is there really not a single flared-sans font that is really free (so also 
> for commercial use) to use out there?
> 
> Yours,
> 
> Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>, Mastodon 
> <https://newsie.social/@gctwnl>)
> R IT Strategy <https://ea.rna.nl/> (main site)
> Book: Chess and the Art of Enterprise Architecture 
> <https://ea.rna.nl/the-book/>
> Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>
> 

> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___


-- 
I must have slipped a disk -- my pack hurts!

_______
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Off topic: Does a 'free for commercial use' flared-sans font exist in the world?

2023-06-16 Thread Marcus Vinicius Mesquita via ntg-context
On Fri, Jun 16, 2023 at 1:36 PM Gerben Wierda via ntg-context
 wrote:
>
> I know this is off topic, but I suspect this community is actually one of the 
> best places to find an answer.
>
> I really like Optima, and what I really like about it is the 'flared style'.
>
> But I would like to move to a flared-sans font that gives me more licensing 
> freedom. I haven't been able to find one after extensive searching. The only 
> one who were reasonably priced (not free) were the URW Classico ones in Adobe 
> Creative Cloud, but those can only be used in Adobe programs like InDesign 
> (and not TeX).


Is this kind of tie-in sale even legal?


>
>
> I found some flared-sans fonts, but not one with at least regular, italic, 
> bold, and bold-italic.
>
> Is there really not a single flared-sans font that is really free (so also 
> for commercial use) to use out there?
>
> Yours,
>
> Gerben Wierda (LinkedIn, Mastodon)
> R IT Strategy (main site)
> Book: Chess and the Art of Enterprise Architecture
> Book: Mastering ArchiMate
>
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___



-- 
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o
corpo nem seus membros, por ser descanso da alma, primavera do
coração, distração do aflito, entretenimento do solitário, e viático
do viajante.

Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Protect the lettrine

2023-06-16 Thread Hans Hagen via ntg-context

On 6/15/2023 8:35 AM, Max Chernoff via ntg-context wrote:

Hi Dave,


How would you instruct ConTeXt to "protect" the lettrine such that
regardless of whether the first paragraph spans multiple lines, a short
first paragraph will still prevent the second paragraph from overlapping
the lettrine?



Here's the output I'm looking to achieve:

https://i.stack.imgur.com/XeZQS.png

Note how the second line honours the lettrine's width and padding, in the
same way that the second line of the first paragraph in Knuth's quote
respects the width and padding.


Here's a questionable Lua-based solution:

\startluacode
userdata.hangindent = 0
function userdata.post_lettrine(head)
nodes.tasks.disableaction("finalizers", "userdata.post_lettrine")

if tex.prevgraf < math.abs(tex.hangafter) then

userdata.hangindent = tex.hangindent
nodes.tasks.enableaction("processors", "userdata.next_par")
end

return head

end
nodes.tasks.appendaction("finalizers", "before", "userdata.post_lettrine")
nodes.tasks.disableaction("finalizers", "userdata.post_lettrine")


function userdata.next_par(head)

nodes.tasks.disableaction("processors", "userdata.next_par")

if head.next.id == node.id("glue") and

   head.next.subtype == 20
then
head.next.width = userdata.hangindent
end

return head

end
nodes.tasks.appendaction("processors", "before", "userdata.next_par")
nodes.tasks.disableaction("processors", "userdata.next_par")


local default = typesetters.initials.actions.default

function typesetters.initials.actions.default(...)
nodes.tasks.enableaction("finalizers", "userdata.post_lettrine")
return default(...)
end
\stopluacode

\setupinitial[n=2]

[...]


Normally manipulating nodes inside the callbacks is the wrong way to do
something, but in this case, that's exactly how the standard initial
code works.

We need to modify the "default" alternative since "\setupinitial"
provides no way for us to set a different alternative. A better solution
would be to provide a new alternative so we wouldn't need to make
questionable overrides to the base code.
Indeed, and it might also sort of fragile due to the prevgraf although 
we can assume sane usage. All this stuff is also a bit order sensitive.


I'll added this:

\setupinitial[n=2,continue=yes]

But I'll also cheat a bit by adding a prevdepth field to the parstate 
that remembers the previous one (as it gets lost otherwise).


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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Off topic: Does a 'free for commercial use' flared-sans font exist in the world?

2023-06-16 Thread Gerben Wierda via ntg-context
Only regular, italic, bold, no bold italic (just as the Linux Bilonium it was 
forked from)

> On 16 Jun 2023, at 18:39, Henning Hraban Ramm via ntg-context 
>  wrote:
> 
> Am 16.06.23 um 18:35 schrieb Gerben Wierda via ntg-context:
>> I know this is off topic, but I suspect this community is actually one of 
>> the best places to find an answer.
>> I really like Optima, and what I really like about it is the 'flared style'.
>> But I would like to move to a flared-sans font that gives me more licensing 
>> freedom. I haven't been able to find one after extensive searching. The only 
>> one who were reasonably priced (not free) were the URW Classico ones in 
>> Adobe Creative Cloud, but those can only be used in Adobe programs like 
>> InDesign (and not TeX).
>> I found some flared-sans fonts, but not one with at least regular, italic, 
>> bold, and bold-italic.
>> Is there really not a single flared-sans font that is /really/ free (so also 
>> for commercial use) to use out there?
> 
> How about Libertinus Sans?
> https://github.com/alerque/libertinus
> 
> Hraban
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>, Mastodon 
<https://newsie.social/@gctwnl>)
R IT Strategy <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>

___________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Off topic: Does a 'free for commercial use' flared-sans font exist in the world?

2023-06-16 Thread Mikael Sundqvist via ntg-context
Hi,

On Fri, Jun 16, 2023 at 6:36 PM Gerben Wierda via ntg-context
 wrote:
>
> I know this is off topic, but I suspect this community is actually one of the 
> best places to find an answer.
>
> I really like Optima, and what I really like about it is the 'flared style'.
>
> But I would like to move to a flared-sans font that gives me more licensing 
> freedom. I haven't been able to find one after extensive searching. The only 
> one who were reasonably priced (not free) were the URW Classico ones in Adobe 
> Creative Cloud, but those can only be used in Adobe programs like InDesign 
> (and not TeX).
>
> I found some flared-sans fonts, but not one with at least regular, italic, 
> bold, and bold-italic.
>
> Is there really not a single flared-sans font that is really free (so also 
> for commercial use) to use out there?
>

Maybe you like libertinus sans (linux biolinum)?

/Mikael
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Off topic: Does a 'free for commercial use' flared-sans font exist in the world?

2023-06-16 Thread Henning Hraban Ramm via ntg-context

Am 16.06.23 um 18:35 schrieb Gerben Wierda via ntg-context:
I know this is off topic, but I suspect this community is actually one 
of the best places to find an answer.


I really like Optima, and what I really like about it is the 'flared style'.

But I would like to move to a flared-sans font that gives me more 
licensing freedom. I haven't been able to find one after extensive 
searching. The only one who were reasonably priced (not free) were the 
URW Classico ones in Adobe Creative Cloud, but those can only be used in 
Adobe programs like InDesign (and not TeX).


I found some flared-sans fonts, but not one with at least regular, 
italic, bold, and bold-italic.


Is there really not a single flared-sans font that is /really/ free (so 
also for commercial use) to use out there?


How about Libertinus Sans?
https://github.com/alerque/libertinus

Hraban

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Off topic: Does a 'free for commercial use' flared-sans font exist in the world?

2023-06-16 Thread Gerben Wierda via ntg-context
I know this is off topic, but I suspect this community is actually one of the 
best places to find an answer.

I really like Optima, and what I really like about it is the 'flared style'.

But I would like to move to a flared-sans font that gives me more licensing 
freedom. I haven't been able to find one after extensive searching. The only 
one who were reasonably priced (not free) were the URW Classico ones in Adobe 
Creative Cloud, but those can only be used in Adobe programs like InDesign (and 
not TeX).

I found some flared-sans fonts, but not one with at least regular, italic, 
bold, and bold-italic.

Is there really not a single flared-sans font that is really free (so also for 
commercial use) to use out there?

Yours,

Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>, Mastodon 
<https://newsie.social/@gctwnl>)
R IT Strategy <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Using the open source Cabin font

2023-06-16 Thread Gerben Wierda via ntg-context
Removed the variable width from the system, installed the static fonts.

This works. Thank you.

G

> On 16 Jun 2023, at 15:25, Wolfgang Schuster via ntg-context 
>  wrote:
> 
> Hi Gerben,
> 
> can you try the static version of the fonts. When I tried the variable width 
> version no files are listed but with the static version I had no problems to 
> load the font.
> 
> \definefontfamily [archimate] [ss] [Cabin]
> 
> \setupbodyfont [archimate]
> 
> \starttext
> {\bf The quick brown fox jumped over the lazy dog}
> 
> \input knuth
> \stoptext
> 
> Wolfgang
> 
> Gerben Wierda via ntg-context schrieb am 16.06.2023 um 15:19:
>> I was wrong, not just the bold doesn't work, everything is replaced with 
>> Latin Modern. Cabin isn't used at all.
>> 
>>> On 16 Jun 2023, at 15:05, Gerben Wierda via ntg-context >> <mailto:ntg-context@ntg.nl>> wrote:
>>> 
>>> I've been trying to use the open source Cabin font 
>>> (https://fonts.google.com/specimen/Cabin 
>>> <https://fonts.google.com/specimen/Cabin>) like this:
>>> 
>>> \definefontfamily
>>> [archimate]
>>> [ss]
>>> [Cabin]
>>> [tf=style:Regular,
>>>  bf=style:Semibold,
>>>  it=style:Italic,
>>>  bi=style:Semibold Italic]
>>> \setupbodyfont[archimate]
>>> 
>>> \setuplanguage[en][patterns={en}]\mainlanguage[en]
>>> 
>>> \starttext
>>> \setupindenting[none]
>>> \setupindenting[no]
>>> {\bf The quick brown fox jumped over the lazy dog}
>>> 
>>> \input knuth
>>> \stoptext
>>> 
>>> But when compiling I get no bold text
>>> 
>>> I installed it in LMTX and it has been installed:
>>> 
>>> gerben@hermione% mtxrun --script fonts --list --all --pattern='*abin*' 
>>> identifier  familyname   fontname   filename
>>>   subfont   instances
>>> 
>>> cabinitalic cabincabinitalic
>>> /Users/gerben/Library/Fonts/Cabin-Italic-VariableFont_wdth,wght.ttf 
>>> italic mediumitalic semibolditalic bolditalic
>>> cabinitalicbolditalic   cabincabinitalic
>>> /Users/gerben/Library/Fonts/Cabin-Italic-VariableFont_wdth,wght.ttf 
>>> italic mediumitalic semibolditalic bolditalic
>>> cabinitalicitalic   cabincabinitalic
>>> /Users/gerben/Library/Fonts/Cabin-Italic-VariableFont_wdth,wght.ttf 
>>> italic mediumitalic semibolditalic bolditalic
>>> cabinitalicmediumitalic cabincabinitalic
>>> /Users/gerben/Library/Fonts/Cabin-Italic-VariableFont_wdth,wght.ttf 
>>> italic mediumitalic semibolditalic bolditalic
>>> cabinitalicsemibolditalic   cabincabinitalic
>>> /Users/gerben/Library/Fonts/Cabin-Italic-VariableFont_wdth,wght.ttf 
>>> italic mediumitalic semibolditalic bolditalic
>>> cabinnormal cabincabinregular   
>>> /Users/gerben/Library/Fonts/Cabin-VariableFont_wdth,wght.ttf
>>> regular medium semibold bold
>>> cabinregularcabincabinregular   
>>> /Users/gerben/Library/Fonts/Cabin-VariableFont_wdth,wght.ttf
>>> regular medium semibold bold
>>> cabinregularboldcabincabinregular   
>>> /Users/gerben/Library/Fonts/Cabin-VariableFont_wdth,wght.ttf
>>> regular medium semibold bold
>>> cabinregularmedium  cabincabinregular   
>>> /Users/gerben/Library/Fonts/Cabin-VariableFont_wdth,wght.ttf
>>> regular medium semibold bold
>>> cabinregularregular cabincabinregular   
>>> /Users/gerben/Library/Fonts/Cabin-VariableFont_wdth,wght.ttf
>>> regular medium semibold bold
>>> cabinregularsemiboldcabincabinregular   
>>> /Users/gerben/Library/Fonts/Cabin-VariableFont_wdth,wght.ttf
>>> regular medium semibold bold
>>> 
>>> What am I missing?
>>> 
>>> Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>, 
>>> Mastodon <https://newsie.social/@gctwnl>)
>>> R IT Strategy <https://ea.rna.nl/> (main site)
>>> Book: Chess and the Art of Enterprise Architecture 
&

Re: [NTG-context] Using the open source Cabin font

2023-06-16 Thread Wolfgang Schuster via ntg-context

Hi Gerben,

can you try the static version of the fonts. When I tried the variable 
width version no files are listed but with the static version I had no 
problems to load the font.


\definefontfamily [archimate] [ss] [Cabin]

\setupbodyfont [archimate]

\starttext
{\bf The quick brown fox jumped over the lazy dog}

\input knuth
\stoptext

Wolfgang

Gerben Wierda via ntg-context schrieb am 16.06.2023 um 15:19:
I was wrong, not just the bold doesn't work, /everything/ is replaced 
with Latin Modern. Cabin isn't used at all.


On 16 Jun 2023, at 15:05, Gerben Wierda via ntg-context 
mailto:ntg-context@ntg.nl>> wrote:


I've been trying to use the open source Cabin font 
(https://fonts.google.com/specimen/Cabin) like this:


\definefontfamily
    [archimate]
    [ss]
    [Cabin]
    [tf=style:Regular,
     bf=style:Semibold,
     it=style:Italic,
     bi=style:Semibold Italic]
\setupbodyfont[archimate]

\setuplanguage[en][patterns={en}]\mainlanguage[en]

\starttext
\setupindenting[none]
\setupindenting[no]
{\bf The quick brown fox jumped over the lazy dog}

\input knuth
\stoptext

But when compiling I get no bold text

I installed it in LMTX and it has been installed:

gerben@hermione% mtxrun --script fonts --list --all --pattern='*abin*'
identifier                 familyname   fontname       filename       
                                    subfont   instances


cabinitalic                 cabin        cabinitalic 
/Users/gerben/Library/Fonts/Cabin-Italic-VariableFont_wdth,wght.ttf   
    italic mediumitalic semibolditalic bolditalic
cabinitalicbolditalic       cabin        cabinitalic 
/Users/gerben/Library/Fonts/Cabin-Italic-VariableFont_wdth,wght.ttf   
    italic mediumitalic semibolditalic bolditalic
cabinitalicitalic           cabin        cabinitalic 
/Users/gerben/Library/Fonts/Cabin-Italic-VariableFont_wdth,wght.ttf   
    italic mediumitalic semibolditalic bolditalic
cabinitalicmediumitalic     cabin        cabinitalic 
/Users/gerben/Library/Fonts/Cabin-Italic-VariableFont_wdth,wght.ttf   
    italic mediumitalic semibolditalic bolditalic
cabinitalicsemibolditalic   cabin        cabinitalic 
/Users/gerben/Library/Fonts/Cabin-Italic-VariableFont_wdth,wght.ttf   
    italic mediumitalic semibolditalic bolditalic
cabinnormal                 cabin        cabinregular 
/Users/gerben/Library/Fonts/Cabin-VariableFont_wdth,wght.ttf       
regular medium semibold bold
cabinregular                cabin cabinregular 
/Users/gerben/Library/Fonts/Cabin-VariableFont_wdth,wght.ttf       
regular medium semibold bold
cabinregularbold            cabin cabinregular 
/Users/gerben/Library/Fonts/Cabin-VariableFont_wdth,wght.ttf       
regular medium semibold bold
cabinregularmedium          cabin cabinregular 
/Users/gerben/Library/Fonts/Cabin-VariableFont_wdth,wght.ttf       
regular medium semibold bold
cabinregularregular         cabin cabinregular 
/Users/gerben/Library/Fonts/Cabin-VariableFont_wdth,wght.ttf       
regular medium semibold bold
cabinregularsemibold        cabin cabinregular 
/Users/gerben/Library/Fonts/Cabin-VariableFont_wdth,wght.ttf       
regular medium semibold bold


What am I missing?

Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>, 
Mastodon <https://newsie.social/@gctwnl>)

R IT Strategy <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture 
<https://ea.rna.nl/the-book/>

Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>

___
If your question is of interest to others as well, please add an 
entry to the Wiki!


maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / 
https://www.ntg.nl/mailman/listinfo/ntg-context

webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>, 
Mastodon <https://newsie.social/@gctwnl>)

R IT Strategy <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture 
<https://ea.rna.nl/the-book/>

Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


___
If your question is of

Re: [NTG-context] Using the open source Cabin font

2023-06-16 Thread Gerben Wierda via ntg-context
I was wrong, not just the bold doesn't work, everything is replaced with Latin 
Modern. Cabin isn't used at all.

> On 16 Jun 2023, at 15:05, Gerben Wierda via ntg-context  
> wrote:
> 
> I've been trying to use the open source Cabin font 
> (https://fonts.google.com/specimen/Cabin 
> <https://fonts.google.com/specimen/Cabin>) like this:
> 
> \definefontfamily
> [archimate]
> [ss]
> [Cabin]
> [tf=style:Regular,
>  bf=style:Semibold,
>  it=style:Italic,
>  bi=style:Semibold Italic]
> \setupbodyfont[archimate]
> 
> \setuplanguage[en][patterns={en}]\mainlanguage[en]
> 
> \starttext
> \setupindenting[none]
> \setupindenting[no]
> {\bf The quick brown fox jumped over the lazy dog}
> 
> \input knuth
> \stoptext
> 
> But when compiling I get no bold text
> 
> I installed it in LMTX and it has been installed:
> 
> gerben@hermione% mtxrun --script fonts --list --all --pattern='*abin*' 
> identifier  familyname   fontname   filename  
> subfont   instances
> 
> cabinitalic cabincabinitalic
> /Users/gerben/Library/Fonts/Cabin-Italic-VariableFont_wdth,wght.ttf   
>   italic mediumitalic semibolditalic bolditalic
> cabinitalicbolditalic   cabincabinitalic
> /Users/gerben/Library/Fonts/Cabin-Italic-VariableFont_wdth,wght.ttf   
>   italic mediumitalic semibolditalic bolditalic
> cabinitalicitalic   cabincabinitalic
> /Users/gerben/Library/Fonts/Cabin-Italic-VariableFont_wdth,wght.ttf   
>   italic mediumitalic semibolditalic bolditalic
> cabinitalicmediumitalic cabincabinitalic
> /Users/gerben/Library/Fonts/Cabin-Italic-VariableFont_wdth,wght.ttf   
>   italic mediumitalic semibolditalic bolditalic
> cabinitalicsemibolditalic   cabincabinitalic
> /Users/gerben/Library/Fonts/Cabin-Italic-VariableFont_wdth,wght.ttf   
>   italic mediumitalic semibolditalic bolditalic
> cabinnormal cabincabinregular   
> /Users/gerben/Library/Fonts/Cabin-VariableFont_wdth,wght.ttf  
>   regular medium semibold bold
> cabinregularcabincabinregular   
> /Users/gerben/Library/Fonts/Cabin-VariableFont_wdth,wght.ttf  
>   regular medium semibold bold
> cabinregularboldcabincabinregular   
> /Users/gerben/Library/Fonts/Cabin-VariableFont_wdth,wght.ttf  
>   regular medium semibold bold
> cabinregularmedium  cabincabinregular   
> /Users/gerben/Library/Fonts/Cabin-VariableFont_wdth,wght.ttf  
>   regular medium semibold bold
> cabinregularregular cabincabinregular   
> /Users/gerben/Library/Fonts/Cabin-VariableFont_wdth,wght.ttf  
>   regular medium semibold bold
> cabinregularsemiboldcabincabinregular   
> /Users/gerben/Library/Fonts/Cabin-VariableFont_wdth,wght.ttf  
>   regular medium semibold bold
> 
> What am I missing?
> 
> Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>, Mastodon 
> <https://newsie.social/@gctwnl>)
> R IT Strategy <https://ea.rna.nl/> (main site)
> Book: Chess and the Art of Enterprise Architecture 
> <https://ea.rna.nl/the-book/>
> Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>, Mastodon 
<https://newsie.social/@gctwnl>)
R IT Strategy <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>

_______
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Using the open source Cabin font

2023-06-16 Thread Gerben Wierda via ntg-context
I've been trying to use the open source Cabin font 
(https://fonts.google.com/specimen/Cabin 
<https://fonts.google.com/specimen/Cabin>) like this:

\definefontfamily
[archimate]
[ss]
[Cabin]
[tf=style:Regular,
 bf=style:Semibold,
 it=style:Italic,
 bi=style:Semibold Italic]
\setupbodyfont[archimate]

\setuplanguage[en][patterns={en}]\mainlanguage[en]

\starttext
\setupindenting[none]
\setupindenting[no]
{\bf The quick brown fox jumped over the lazy dog}

\input knuth
\stoptext

But when compiling I get no bold text

I installed it in LMTX and it has been installed:

gerben@hermione% mtxrun --script fonts --list --all --pattern='*abin*' 
identifier  familyname   fontname   filename
  subfont   instances

cabinitalic cabincabinitalic
/Users/gerben/Library/Fonts/Cabin-Italic-VariableFont_wdth,wght.ttf 
italic mediumitalic semibolditalic bolditalic
cabinitalicbolditalic   cabincabinitalic
/Users/gerben/Library/Fonts/Cabin-Italic-VariableFont_wdth,wght.ttf 
italic mediumitalic semibolditalic bolditalic
cabinitalicitalic   cabincabinitalic
/Users/gerben/Library/Fonts/Cabin-Italic-VariableFont_wdth,wght.ttf 
italic mediumitalic semibolditalic bolditalic
cabinitalicmediumitalic cabincabinitalic
/Users/gerben/Library/Fonts/Cabin-Italic-VariableFont_wdth,wght.ttf 
italic mediumitalic semibolditalic bolditalic
cabinitalicsemibolditalic   cabincabinitalic
/Users/gerben/Library/Fonts/Cabin-Italic-VariableFont_wdth,wght.ttf 
italic mediumitalic semibolditalic bolditalic
cabinnormal cabincabinregular   
/Users/gerben/Library/Fonts/Cabin-VariableFont_wdth,wght.ttf
regular medium semibold bold
cabinregularcabincabinregular   
/Users/gerben/Library/Fonts/Cabin-VariableFont_wdth,wght.ttf
regular medium semibold bold
cabinregularboldcabincabinregular   
/Users/gerben/Library/Fonts/Cabin-VariableFont_wdth,wght.ttf
regular medium semibold bold
cabinregularmedium  cabincabinregular   
/Users/gerben/Library/Fonts/Cabin-VariableFont_wdth,wght.ttf
regular medium semibold bold
cabinregularregular cabincabinregular   
/Users/gerben/Library/Fonts/Cabin-VariableFont_wdth,wght.ttf
regular medium semibold bold
cabinregularsemiboldcabincabinregular   
/Users/gerben/Library/Fonts/Cabin-VariableFont_wdth,wght.ttf
regular medium semibold bold

What am I missing?

Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>, Mastodon 
<https://newsie.social/@gctwnl>)
R IT Strategy <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Wiki Down?

2023-06-16 Thread Keith McKay via ntg-context

All good now Taco.

Thanks for the advice.

Keith McKay

On 16/06/2023 12:33, Taco Hoekwater wrote:

Hi Keith,


On 16 Jun 2023, at 13:04, Keith McKay via ntg-context  
wrote:

I am getting "safari can't find server"  for the wiki so I checked on 
isitdownrightnow.com and it confirms it is down.

Must have been some transport issue. The server is up and has not been down 
today at all. If it keeps appearing to be down, try a traceroute tool to see 
where the problem is, e.g. https://ping.eu/traceroute/

Best wishes,
Taco

—
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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Wiki Down?

2023-06-16 Thread Taco Hoekwater via ntg-context
Hi Keith,

> On 16 Jun 2023, at 13:04, Keith McKay via ntg-context  
> wrote:
> 
> I am getting "safari can't find server"  for the wiki so I checked on 
> isitdownrightnow.com and it confirms it is down.

Must have been some transport issue. The server is up and has not been down 
today at all. If it keeps appearing to be down, try a traceroute tool to see 
where the problem is, e.g. https://ping.eu/traceroute/

Best wishes,
Taco

— 
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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Wiki Down?

2023-06-16 Thread Keith McKay via ntg-context
I am getting "safari can't find server"  for the wiki so I checked on 
isitdownrightnow.com and it confirms it is down.


Best Wishes

Keith McKay

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Protect the lettrine

2023-06-15 Thread Max Chernoff via ntg-context
Hi Dave,

> How would you instruct ConTeXt to "protect" the lettrine such that
> regardless of whether the first paragraph spans multiple lines, a short
> first paragraph will still prevent the second paragraph from overlapping
> the lettrine?

> Here's the output I'm looking to achieve:
> 
> https://i.stack.imgur.com/XeZQS.png
> 
> Note how the second line honours the lettrine's width and padding, in the
> same way that the second line of the first paragraph in Knuth's quote
> respects the width and padding.

Here's a questionable Lua-based solution:

   \startluacode
   userdata.hangindent = 0
   function userdata.post_lettrine(head)
   nodes.tasks.disableaction("finalizers", "userdata.post_lettrine")
   
   if tex.prevgraf < math.abs(tex.hangafter) then
   userdata.hangindent = tex.hangindent
   nodes.tasks.enableaction("processors", "userdata.next_par")
   end
   
   return head
   end
   nodes.tasks.appendaction("finalizers", "before", "userdata.post_lettrine")
   nodes.tasks.disableaction("finalizers", "userdata.post_lettrine")
   
   
   function userdata.next_par(head)
   nodes.tasks.disableaction("processors", "userdata.next_par")
   
   if head.next.id == node.id("glue") and
  head.next.subtype == 20
   then
   head.next.width = userdata.hangindent
   end
   
   return head
   end
   nodes.tasks.appendaction("processors", "before", "userdata.next_par")
   nodes.tasks.disableaction("processors", "userdata.next_par")
   
   
   local default = typesetters.initials.actions.default
   function typesetters.initials.actions.default(...)
   nodes.tasks.enableaction("finalizers", "userdata.post_lettrine")
   return default(...)
   end
   \stopluacode
   
   \setupinitial[n=2]
   
   [...]

Normally manipulating nodes inside the callbacks is the wrong way to do
something, but in this case, that's exactly how the standard initial
code works. 

We need to modify the "default" alternative since "\setupinitial"
provides no way for us to set a different alternative. A better solution
would be to provide a new alternative so we wouldn't need to make
questionable overrides to the base code.

-- Max
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Protect the lettrine

2023-06-14 Thread Thangalin via ntg-context
It's a tough problem for sure.

I'm wondering if there's a general solution?

That is, a way to tell ConTeXt to "protect the lettrine" regardless of the
source document text? Nothing can be hard-coded because the setups (take a
look at keenwrite themes
https://github.com/DaveJarvis/keenwrite-themes/tree/main/boschet) don't
"know" anything about the source document text.

That's why I stated that nothing between \starttext and \stoptext may
change.

In effect, we don't know if the text is going to be "Kermit Ruffins" or
"Yankee Doodle Dandy" or "We believe these truths to be self-evident." All
we know is that we want the first letter to be a lettrine and the
subsequent paragraph not to overlap the lettrine.

Cheers!


> \setuphead[chapter][
>   after={\placeinitial\vbox to 1cm{\relax {K{\hskip 2pt \lower 5pt
> \hbox{ermit MUffins \vbox to -0.055cm {\hskip -2.8cm \raise 1pt \hbox{meet
> me at the second
> line}}},
>   page=no,
> %]
>
> \starttext
>
> \startchapter[1]
> \stopchapter
>
> \forgetinitial \par
>
> \startchapter[2]
> \input knuth
> \stopchapter
>
> \stoptext
>
>
_______
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Protect the lettrine

2023-06-14 Thread linguafalsa--- via ntg-context
On Tue, Jun 13, 2023 at 08:46:59PM -0700, Thangalin via ntg-context wrote:
> Thank you for taking the time to reply, linguafalsa, I appreciate it.
> 
> The source document is written in Markdown using KeenWrite, my Markdown
> editor. Inserting typesetting instructions into the document would defeat
> the software's architecture, hence being untenable. After the Markdown is
> transformed into XHTML, a specific theme instructs ConTeXt how to typeset
> the XHTML.

Never heard of it (keenwrite), but your request is indeed, valid all along.

I haven't checked the code that lmtx uses but by just looking at the bare
macros, it seems as if `\forgetplaceinitial` is limited in what it can
and can't do. I think it's reasonable the way it was implemented but
nevertheless this is something that ought to be looked at rather than
ignore it or put aside  for later

I didn't see the video, it's distracting, but as I said, is a valid
request on your part 

Perhaps `\setuphead` can have such of a feature in the future — that
of different settings for different chapters, and if one exists now,
I'm just simply unaware of, but either way,  you're dealing mainly
here with a table and tabskips and whatnot. It seems that there's one
feature for subsubsections, written in lua, but this is entirely different

Even with something as the following I just wouldn't know how to specify
it to apply it concurrently for each particular chapter thereafter and
dissuade it from subsequently applying it to where not otherwise. I just
don't know. 


\setuphead[chapter][
  after={\placeinitial\vbox to 1cm{\relax {K{\hskip 2pt \lower 5pt \hbox{ermit 
MUffins \vbox to -0.055cm {\hskip -2.8cm \raise 1pt \hbox{meet me at the second
line}}},
  page=no, 
%]

\starttext

\startchapter[1]
\stopchapter

\forgetinitial \par

\startchapter[2]
\input knuth
\stopchapter

\stoptext


> 
> Here's a video showing how theme selection works:
> 
> https://youtu.be/3QpX70O5S30?list=PLB-WIt1cZYLm1MMx2FBG9KWzPIoWZMKu_=14
> 
> I hope this explains the situation more clearly about why changing the code
> between \starttext and \stoptext isn't an option, as you've done with
> introducing and using a macro.
> 
> Greets!

take care Tangalin 

Carlos

> 
> On Tue, Jun 13, 2023 at 7:33 PM linguafalsa--- via ntg-context <
> ntg-context@ntg.nl> wrote:
> 
> > On Tue, Jun 13, 2023 at 02:01:14PM -0700, Thangalin via ntg-context wrote:
> > > Thanks Otared,
> > >
> > > Unfortunately, that's adding content between \starttext and \stoptext,
> > > which isn't tenable in my situation. The user is writing in Markdown,
> > which
> > > is automatically converted to XHTML then passed to ConTeXt, and so the
> > > setups need to account for this scenario without modifying the source
> > > document.
> > >
> >
> > Yeah yeah yeah, tenable. A lot of things aren't tenable. Anyhow,
> > What source document are you talking about here?
> >
> > You're already sourcing the lines after chapter one. As a matter of
> > fact, if you weren't sourcing, then you'd have zilch, nada, zero, empty,
> > null, void, an space, a separation, an abstract
> >
> > Just define Kermit Muffins and it should be good to go
> >
> >
> > \setupinitial[n=2]
> >
> > \def\KermitMuffins{\vbox{Kermit Muffins\par\hskip 1.3cm \tfd Meet me at
> > the second line}}
> >
> > \setuphead[chapter][
> >   after={\placeinitial},
> >   page=no,
> > ]
> >
> > \starttext
> > \chapter{one}
> > \KermitMuffins
> >
> > \chapter{two}
> > \input knuth
> >
> > Meet me at the second line.
> > \stoptext
> >
> >
> >
> > > Cheers!
> > >
> > > On Tue, Jun 13, 2023 at 1:30 AM Otared Kavian via ntg-context <
> > > ntg-context@ntg.nl> wrote:
> > >
> > > > Hi,
> > > >
> > > > Adding \hfill\break to the short line solves the issue, but probably
> > there
> > > > is a better way to achieve the correct result.
> > > >
> > > > \setupinitial[n=2]
> > > >
> > > > \setuphead[chapter][
> > > >   after={\placeinitial},
> > > >   page=no,
> > > > ]
> > > >
> > > > \starttext
> > > > \chapter{one}
> > > > Kermit Ruffins \hfill\break % <---
> > > >
> > > > Meet me at the second line.
> > > >
> > > > \chapter{two}
> > > > \input knuth
> > > >
> > > > Meet me at the second line.
> > > > \stoptext
> > > >
> >
> >
> >
> >
> > > >
> > > > 

Re: [NTG-context] All NUL files in the Context distribution

2023-06-14 Thread Leah Neukirchen via ntg-context
Leah Neukirchen via ntg-context  writes:

> Hi,
>
> I was looking into the SciTE setup when I found that
> tex/texmf-context/context/data/scite/context/scite-context-internal.properties
> only contained NUL bytes.
>
> Deleting and reinstalling doesn't fix it.
>
> I have now checked the other files there and these files seem to have
> gotten corrupted at some point.  Does anyone have a working copy to
> restore them?
>
> tex/texmf-context/context/data/scite/context/scite-context-internal.properties
> tex/texmf-context/context/data/scite/context/lexers/scite-context-lexer-web-snippets.lua
> tex/texmf-context/doc/context/sources/general/manuals/start/en/ma-cb-en-commands.tex
>
> Thanks,

Note that they are broken via HTTP:

% wget 
http://lmtx.pragma-ade.com/install-lmtx//tex/texmf-context/context/data/scite/context/scite-context-internal.properties
% sha1sum scite-context-internal.properties 
55a4ba44601c71deb73c0cad41b3632722696a32  scite-context-internal.properties
% xxd scite-context-internal.properties
:          
0010:          
0020:          
0030:          
0040:          
0050:          
...

-- 
Leah Neukirchenhttps://leahneukirchen.org
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] SOLVED: Fallbacks in text font interfere with math accents

2023-06-14 Thread Henning Hraban Ramm via ntg-context

Hans sent me a fix (font-mat.mklx), I guess it’ll be in the next upload.

Hraban
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] All NUL files in the Context distribution

2023-06-14 Thread Henning Hraban Ramm via ntg-context

Am 14.06.23 um 17:13 schrieb Leah Neukirchen via ntg-context:

Hi,

I was looking into the SciTE setup when I found that
tex/texmf-context/context/data/scite/context/scite-context-internal.properties
only contained NUL bytes.

Deleting and reinstalling doesn't fix it.

I have now checked the other files there and these files seem to have
gotten corrupted at some point.  Does anyone have a working copy to
restore them?

tex/texmf-context/context/data/scite/context/scite-context-internal.properties
tex/texmf-context/context/data/scite/context/lexers/scite-context-lexer-web-snippets.lua
tex/texmf-context/doc/context/sources/general/manuals/start/en/ma-cb-en-commands.tex


All these files look good in my installation, will send them to you 
off-list.

current version: 2023.06.04 18:58

Hraban
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] All NUL files in the Context distribution

2023-06-14 Thread Leah Neukirchen via ntg-context
Hi,

I was looking into the SciTE setup when I found that
tex/texmf-context/context/data/scite/context/scite-context-internal.properties
only contained NUL bytes.

Deleting and reinstalling doesn't fix it.

I have now checked the other files there and these files seem to have
gotten corrupted at some point.  Does anyone have a working copy to
restore them?

tex/texmf-context/context/data/scite/context/scite-context-internal.properties
tex/texmf-context/context/data/scite/context/lexers/scite-context-lexer-web-snippets.lua
tex/texmf-context/doc/context/sources/general/manuals/start/en/ma-cb-en-commands.tex

Thanks,
-- 
Leah Neukirchenhttps://leahneukirchen.org/
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] regular online meet-up

2023-06-14 Thread Henning Hraban Ramm via ntg-context

Reminder: this is in a few hours!

Looking forward to seeing you again,
Hraban

Am 09.06.23 um 13:29 schrieb Henning Hraban Ramm via ntg-context:

You’re invited to join on Wednesday, June 14th, 15:00 CEST (UTC+2)

at https://lecture.senfcall.de/hen-rbr-rku-oke
(same, but shorter: https://v34h.de/ctxmtg)

ConTeXt users of all levels are welcome!

Next meeting will be on July 12th.



(Same blurb as every time:)

[Howto]
* No special software installation required; most modern browsers should 
work (WebRTC required).

* Open the above URL, accept the privacy statement,
* enter your name,
* click "join" (or "start" if you’re the first),
* click "with microphone", allow your browser to access it, check the 
audio.
* Your microphone is muted if you join. Activate microphone and/or 
camera with the buttons at the bottom.

* Minimize the default presentation with the "screen" button, bottom right.

* If you’d like to share your screen or upload a file, you can make 
yourself the presenter: Click on your user name, change the setting, 
then you’ll see the "screen sharing" button beside the camera button; 
also there’s now "manage presentations" behind the "plus" button.
Beware there is only one presenter at a time, so don’t kill someone 
else’s presentation.


[Technical hints]
* Sound is usually better if you use a headset (less noise for everyone).
* Connection problems are mostly due to low bandwidth or high latency on 
your side, e.g. with mobile connections.

* If audio/video doesn’t work for you, you can still use the text chat.
* Screen sharing needs a lot of bandwidth.
* BigBlueButton documentation applies: 
https://bigbluebutton.org/teachers/tutorials/


[Netiquette]
* Please use a name that we recognize from here. Some feel uncomfortable 
with anonymous lurkers.

* Mute your microphone while you’re not talking.
* It’s nice to show your face at least when you join.
* If there are connection problems, stop camera sharing.
* The room is set to “everyone’s a moderator“, I trust you...

See you, Hraban
___
If your question is of interest to others as well, please add an entry 
to the Wiki!


maillist : ntg-context@ntg.nl / 
https://www.ntg.nl/mailman/listinfo/ntg-context

webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Protect the lettrine

2023-06-13 Thread Thangalin via ntg-context
Thank you for taking the time to reply, linguafalsa, I appreciate it.

The source document is written in Markdown using KeenWrite, my Markdown
editor. Inserting typesetting instructions into the document would defeat
the software's architecture, hence being untenable. After the Markdown is
transformed into XHTML, a specific theme instructs ConTeXt how to typeset
the XHTML.

Here's a video showing how theme selection works:

https://youtu.be/3QpX70O5S30?list=PLB-WIt1cZYLm1MMx2FBG9KWzPIoWZMKu_=14

I hope this explains the situation more clearly about why changing the code
between \starttext and \stoptext isn't an option, as you've done with
introducing and using a macro.

Greets!

On Tue, Jun 13, 2023 at 7:33 PM linguafalsa--- via ntg-context <
ntg-context@ntg.nl> wrote:

> On Tue, Jun 13, 2023 at 02:01:14PM -0700, Thangalin via ntg-context wrote:
> > Thanks Otared,
> >
> > Unfortunately, that's adding content between \starttext and \stoptext,
> > which isn't tenable in my situation. The user is writing in Markdown,
> which
> > is automatically converted to XHTML then passed to ConTeXt, and so the
> > setups need to account for this scenario without modifying the source
> > document.
> >
>
> Yeah yeah yeah, tenable. A lot of things aren't tenable. Anyhow,
> What source document are you talking about here?
>
> You're already sourcing the lines after chapter one. As a matter of
> fact, if you weren't sourcing, then you'd have zilch, nada, zero, empty,
> null, void, an space, a separation, an abstract
>
> Just define Kermit Muffins and it should be good to go
>
>
> \setupinitial[n=2]
>
> \def\KermitMuffins{\vbox{Kermit Muffins\par\hskip 1.3cm \tfd Meet me at
> the second line}}
>
> \setuphead[chapter][
>   after={\placeinitial},
>   page=no,
> ]
>
> \starttext
> \chapter{one}
> \KermitMuffins
>
> \chapter{two}
> \input knuth
>
> Meet me at the second line.
> \stoptext
>
>
>
> > Cheers!
> >
> > On Tue, Jun 13, 2023 at 1:30 AM Otared Kavian via ntg-context <
> > ntg-context@ntg.nl> wrote:
> >
> > > Hi,
> > >
> > > Adding \hfill\break to the short line solves the issue, but probably
> there
> > > is a better way to achieve the correct result.
> > >
> > > \setupinitial[n=2]
> > >
> > > \setuphead[chapter][
> > >   after={\placeinitial},
> > >   page=no,
> > > ]
> > >
> > > \starttext
> > > \chapter{one}
> > > Kermit Ruffins \hfill\break % <---
> > >
> > > Meet me at the second line.
> > >
> > > \chapter{two}
> > > \input knuth
> > >
> > > Meet me at the second line.
> > > \stoptext
> > >
>
>
>
>
> > >
> > > Best regards: Otared
> > >
> > > On 13 Jun 2023, at 04:43, Thangalin via ntg-context <
> ntg-context@ntg.nl>
> > > wrote:
> > >
> > > I'm using KeenWrite Themes (specifically, Boschet) to typeset a chapter
> > > wherein the first letter is a lettrine. When the first paragraph is too
> > > short, the second paragraph overlaps the lettrine.
> > >
> > > % SOT
> > > \setupinitial[n=2]
> > >
> > > \setuphead[chapter][
> > >   after={\placeinitial},
> > >   page=no,
> > > ]
> > >
> > > \starttext
> > > \chapter{one}
> > > Kermit Ruffins
> > >
> > > Meet me at the second line.
> > >
> > > \chapter{two}
> > > \input knuth
> > >
> > > Meet me at the second line.
> > > \stoptext
> > > % EOT
> > >
> > > Produces: https://i.stack.imgur.com/kNDqw.png
> > >
> > > How would you instruct ConTeXt to "protect" the lettrine such that
> > > regardless of whether the first paragraph spans multiple lines, a short
> > > first paragraph will still prevent the second paragraph from
> overlapping
> > > the lettrine?
> > >
> > > That is, the setups should work in both cases, without any knowledge
> about
> > > the first paragraph length being added between \starttext and
> \stoptext.
> > >
> > > ConTeXt LMTX version: 2023.06.04 18:58
> > >
> > > Thank you!
> > >
> > >
> _______
> > > If your question is of interest to others as well, please add an entry
> to
> > > the Wiki!
> > >
> > > maillist : ntg-context@ntg.nl /
> > >

Re: [NTG-context] Protect the lettrine

2023-06-13 Thread linguafalsa--- via ntg-context
On Tue, Jun 13, 2023 at 02:01:14PM -0700, Thangalin via ntg-context wrote:
> Thanks Otared,
> 
> Unfortunately, that's adding content between \starttext and \stoptext,
> which isn't tenable in my situation. The user is writing in Markdown, which
> is automatically converted to XHTML then passed to ConTeXt, and so the
> setups need to account for this scenario without modifying the source
> document.
> 

Yeah yeah yeah, tenable. A lot of things aren't tenable. Anyhow,
What source document are you talking about here?

You're already sourcing the lines after chapter one. As a matter of
fact, if you weren't sourcing, then you'd have zilch, nada, zero, empty,
null, void, an space, a separation, an abstract 

Just define Kermit Muffins and it should be good to go 


\setupinitial[n=2]

\def\KermitMuffins{\vbox{Kermit Muffins\par\hskip 1.3cm \tfd Meet me at
the second line}}

\setuphead[chapter][
  after={\placeinitial},
  page=no,
]

\starttext
\chapter{one}
\KermitMuffins

\chapter{two}
\input knuth

Meet me at the second line.
\stoptext



> Cheers!
> 
> On Tue, Jun 13, 2023 at 1:30 AM Otared Kavian via ntg-context <
> ntg-context@ntg.nl> wrote:
> 
> > Hi,
> >
> > Adding \hfill\break to the short line solves the issue, but probably there
> > is a better way to achieve the correct result.
> >
> > \setupinitial[n=2]
> >
> > \setuphead[chapter][
> >   after={\placeinitial},
> >   page=no,
> > ]
> >
> > \starttext
> > \chapter{one}
> > Kermit Ruffins \hfill\break % <---
> >
> > Meet me at the second line.
> >
> > \chapter{two}
> > \input knuth
> >
> > Meet me at the second line.
> > \stoptext
> >




> >
> > Best regards: Otared
> >
> > On 13 Jun 2023, at 04:43, Thangalin via ntg-context 
> > wrote:
> >
> > I'm using KeenWrite Themes (specifically, Boschet) to typeset a chapter
> > wherein the first letter is a lettrine. When the first paragraph is too
> > short, the second paragraph overlaps the lettrine.
> >
> > % SOT
> > \setupinitial[n=2]
> >
> > \setuphead[chapter][
> >   after={\placeinitial},
> >   page=no,
> > ]
> >
> > \starttext
> > \chapter{one}
> > Kermit Ruffins
> >
> > Meet me at the second line.
> >
> > \chapter{two}
> > \input knuth
> >
> > Meet me at the second line.
> > \stoptext
> > % EOT
> >
> > Produces: https://i.stack.imgur.com/kNDqw.png
> >
> > How would you instruct ConTeXt to "protect" the lettrine such that
> > regardless of whether the first paragraph spans multiple lines, a short
> > first paragraph will still prevent the second paragraph from overlapping
> > the lettrine?
> >
> > That is, the setups should work in both cases, without any knowledge about
> > the first paragraph length being added between \starttext and \stoptext.
> >
> > ConTeXt LMTX version: 2023.06.04 18:58
> >
> > Thank you!
> >
> > ___
> > If your question is of interest to others as well, please add an entry to
> > the Wiki!
> >
> > maillist : ntg-context@ntg.nl /
> > https://www.ntg.nl/mailman/listinfo/ntg-context
> > webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > wiki : https://contextgarden.net
> >
> > _______
> >
> >
> > Otared Kavian
> > e-mail: ota...@gmail.com 
> > Phone: +33 6 88 26 70 95
> >
> >
> >
> >
> >
> > ___
> > If your question is of interest to others as well, please add an entry to
> > the Wiki!
> >
> > maillist : ntg-context@ntg.nl /
> > https://www.ntg.nl/mailman/listinfo/ntg-context
> > webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > wiki : https://contextgarden.net
> >
> > ___
> >

> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> arc

Re: [NTG-context] Protect the lettrine

2023-06-13 Thread Thangalin via ntg-context
Here's the output I'm looking to achieve:

https://i.stack.imgur.com/XeZQS.png

Note how the second line honours the lettrine's width and padding, in the
same way that the second line of the first paragraph in Knuth's quote
respects the width and padding.

On Tue, Jun 13, 2023 at 2:01 PM Thangalin  wrote:

> Thanks Otared,
>
> Unfortunately, that's adding content between \starttext and \stoptext,
> which isn't tenable in my situation. The user is writing in Markdown, which
> is automatically converted to XHTML then passed to ConTeXt, and so the
> setups need to account for this scenario without modifying the source
> document.
>
> Cheers!
>
> On Tue, Jun 13, 2023 at 1:30 AM Otared Kavian via ntg-context <
> ntg-context@ntg.nl> wrote:
>
>> Hi,
>>
>> Adding \hfill\break to the short line solves the issue, but probably
>> there is a better way to achieve the correct result.
>>
>> \setupinitial[n=2]
>>
>> \setuphead[chapter][
>>   after={\placeinitial},
>>   page=no,
>> ]
>>
>> \starttext
>> \chapter{one}
>> Kermit Ruffins \hfill\break % <---
>>
>> Meet me at the second line.
>>
>> \chapter{two}
>> \input knuth
>>
>> Meet me at the second line.
>> \stoptext
>>
>>
>> Best regards: Otared
>>
>> On 13 Jun 2023, at 04:43, Thangalin via ntg-context 
>> wrote:
>>
>> I'm using KeenWrite Themes (specifically, Boschet) to typeset a chapter
>> wherein the first letter is a lettrine. When the first paragraph is too
>> short, the second paragraph overlaps the lettrine.
>>
>> % SOT
>> \setupinitial[n=2]
>>
>> \setuphead[chapter][
>>   after={\placeinitial},
>>   page=no,
>> ]
>>
>> \starttext
>> \chapter{one}
>> Kermit Ruffins
>>
>> Meet me at the second line.
>>
>> \chapter{two}
>> \input knuth
>>
>> Meet me at the second line.
>> \stoptext
>> % EOT
>>
>> Produces: https://i.stack.imgur.com/kNDqw.png
>>
>> How would you instruct ConTeXt to "protect" the lettrine such that
>> regardless of whether the first paragraph spans multiple lines, a short
>> first paragraph will still prevent the second paragraph from overlapping
>> the lettrine?
>>
>> That is, the setups should work in both cases, without any knowledge
>> about the first paragraph length being added between \starttext and
>> \stoptext.
>>
>> ConTeXt LMTX version: 2023.06.04 18:58
>>
>> Thank you!
>>
>> ___
>> If your question is of interest to others as well, please add an entry to
>> the Wiki!
>>
>> maillist : ntg-context@ntg.nl /
>> https://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : https://contextgarden.net
>>
>> _______
>>
>>
>> Otared Kavian
>> e-mail: ota...@gmail.com 
>> Phone: +33 6 88 26 70 95
>>
>>
>>
>>
>>
>> ___
>> If your question is of interest to others as well, please add an entry to
>> the Wiki!
>>
>> maillist : ntg-context@ntg.nl /
>> https://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : https://contextgarden.net
>>
>> ___
>>
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Protect the lettrine

2023-06-13 Thread Thangalin via ntg-context
Thanks Otared,

Unfortunately, that's adding content between \starttext and \stoptext,
which isn't tenable in my situation. The user is writing in Markdown, which
is automatically converted to XHTML then passed to ConTeXt, and so the
setups need to account for this scenario without modifying the source
document.

Cheers!

On Tue, Jun 13, 2023 at 1:30 AM Otared Kavian via ntg-context <
ntg-context@ntg.nl> wrote:

> Hi,
>
> Adding \hfill\break to the short line solves the issue, but probably there
> is a better way to achieve the correct result.
>
> \setupinitial[n=2]
>
> \setuphead[chapter][
>   after={\placeinitial},
>   page=no,
> ]
>
> \starttext
> \chapter{one}
> Kermit Ruffins \hfill\break % <---
>
> Meet me at the second line.
>
> \chapter{two}
> \input knuth
>
> Meet me at the second line.
> \stoptext
>
>
> Best regards: Otared
>
> On 13 Jun 2023, at 04:43, Thangalin via ntg-context 
> wrote:
>
> I'm using KeenWrite Themes (specifically, Boschet) to typeset a chapter
> wherein the first letter is a lettrine. When the first paragraph is too
> short, the second paragraph overlaps the lettrine.
>
> % SOT
> \setupinitial[n=2]
>
> \setuphead[chapter][
>   after={\placeinitial},
>   page=no,
> ]
>
> \starttext
> \chapter{one}
> Kermit Ruffins
>
> Meet me at the second line.
>
> \chapter{two}
> \input knuth
>
> Meet me at the second line.
> \stoptext
> % EOT
>
> Produces: https://i.stack.imgur.com/kNDqw.png
>
> How would you instruct ConTeXt to "protect" the lettrine such that
> regardless of whether the first paragraph spans multiple lines, a short
> first paragraph will still prevent the second paragraph from overlapping
> the lettrine?
>
> That is, the setups should work in both cases, without any knowledge about
> the first paragraph length being added between \starttext and \stoptext.
>
> ConTeXt LMTX version: 2023.06.04 18:58
>
> Thank you!
>
> _______
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> ___
>
>
> Otared Kavian
> e-mail: ota...@gmail.com 
> Phone: +33 6 88 26 70 95
>
>
>
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> _______
>
_______
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] letfrozen?

2023-06-13 Thread Hans Hagen via ntg-context

On 6/13/2023 12:43 PM, Hans van der Meer via ntg-context wrote:

Of course. But without that \enabledirective I can redefine the frozen macro at 
will, as a simple test did show.
The crux, however, is that one wants to protect the frozen code always, 
irrespective of that directive setting.
there are several caregories, like primitive, permanent, instance, 
mutable, immutable and frozen


at some point we could deepfreeze them all but in the end that makes no 
sense because then we can't for instance run tikz


so in the end it's mostly about warnings and errors (one can actually 
distinguish between categories)


there's also \overloaded and \aliased and \enforced etc

of course you can at some point do

\newcount\overloadmode

but who can predict side effects (and one can argue that tex is 
progrmamable and that users get what they ask for) and keep in mind that 
all should also not hit performance too badly


there's quite a bit involved here .. pretty all context commands have 
some kind of flagging and protection (which also is handy for tracing)


You can spent hours playing with prefixes:

\frozen
\permanent
\immutable
\mutable
%primitive
\noaligned
\instance
\untraced
\global
\tolerant
\protected
\overloaded
\aliased
\immediate
\deferred
\semiprotected
\enforced
\inherited
\constant

if you're in the mood.

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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] xml nbsp?

2023-06-13 Thread Bruce Horrocks via ntg-context
 is not a pre-defined named character in XML (but it is in HTML which 
lulls you into a false sense of security).

See the link below for some more detail and a fix.
<https://coderanch.com/t/322290/java/html-nbsp-braking-space-character>


> On 13 Jun 2023, at 11:01, Hans van der Meer via ntg-context 
>  wrote:
> 
> What happened to the non breaking space in XML? It has disappeared in a way. 
> See the minimal example attached.
> 
> dr. Hans van der Meer
> 


test-nbsp.pdf
Description: Adobe PDF document
> 

—
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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] letfrozen?

2023-06-13 Thread Hans van der Meer via ntg-context
Of course. But without that \enabledirective I can redefine the frozen macro at 
will, as a simple test did show.
The crux, however, is that one wants to protect the frozen code always, 
irrespective of that directive setting.

dr. Hans van der Meer
> On 12 Jun 2023, at 19:47, Hans Hagen via ntg-context  
> wrote:
> 
> On 6/12/2023 12:32 PM, Hans van der Meer via ntg-context wrote:
>>> On 12 Jun 2023, at 11:12, Hans Hagen via ntg-context  
>>> wrote:
>>> 
>>> On 6/12/2023 10:57 AM, Hans van der Meer via ntg-context wrote:
>>>> The manual LMTX-primitives on page 21 tells me:
>>>>You can explicitly freeze an unfrozen macro.
>>>>...
>>>>A redefinition will now give: You can't redefine a frozen macro.
>>>> But is this true? The following code seems to contradict this:
>>>> \def\HOME{myhome}
>>>> \writestatus{1}{\meaning\HOME}
>>>> \letfrozen\HOME
>>>> \writestatus{2}{\meaning\HOME}
>>>> \def\HOME{other home}
>>>> \writestatus{3}{\meaning\HOME}
>>>> 
>>>> Is this mechanism broken? It looks so useful to prevent accidental 
>>>> redefinition!
>>> 
>>> here i run with
>>> 
>>> \enabledirectives[overloadmode=error]
>>> 
>>> (you can do that in cont-sys.mkxl)
>>> 
>>> \enabledirectives[overloadmode=warning]
>>> Hans
>>> 
>> Pity. Now I get on loading the tex file:
>> "csname overload > fatal error, protection level 4, control sequence 'nbsp', 
>> properties 'immutable', file 't-hvdm-text.tex', line 63
>> while I had hoped that frozen would give me something like:
>> illegal attempt to redefine \HOME
>> Byproduct (not unwanted) the above illegal redefinition to be solved :-)
>> May I ask why obviously the frozen-mechanism seems (yet?) unimplemented?
> It's okay and has been around for quite a while now.
> 
> \enabledirectives[overloadmode=error]
> 
> \starttext
> 
>\frozen\def\HOME{}
> 
>\def\HOME{!}
> 
> \stoptext
> 
> 
> -
>  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 / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] xml nbsp?

2023-06-13 Thread Hans van der Meer via ntg-context
What happened to the non breaking space in XML? It has disappeared in a way. See the minimal example attached.dr. Hans van der Meer

test-nbsp.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Protect the lettrine

2023-06-13 Thread Otared Kavian via ntg-context
Hi,

Adding \hfill\break to the short line solves the issue, but probably there is a 
better way to achieve the correct result.

\setupinitial[n=2]

\setuphead[chapter][
  after={\placeinitial},
  page=no,
]

\starttext
\chapter{one}
Kermit Ruffins \hfill\break % <---

Meet me at the second line.

\chapter{two}
\input knuth

Meet me at the second line.
\stoptext


Best regards: Otared

> On 13 Jun 2023, at 04:43, Thangalin via ntg-context  
> wrote:
> 
> I'm using KeenWrite Themes (specifically, Boschet) to typeset a chapter 
> wherein the first letter is a lettrine. When the first paragraph is too 
> short, the second paragraph overlaps the lettrine.
> 
> % SOT
> \setupinitial[n=2]
> 
> \setuphead[chapter][
>   after={\placeinitial},
>   page=no,
> ]
> 
> \starttext
> \chapter{one}
> Kermit Ruffins
> 
> Meet me at the second line.
> 
> \chapter{two}
> \input knuth
> 
> Meet me at the second line.
> \stoptext
> % EOT
> 
> Produces: https://i.stack.imgur.com/kNDqw.png 
> <https://i.stack.imgur.com/kNDqw.png>
> 
> How would you instruct ConTeXt to "protect" the lettrine such that regardless 
> of whether the first paragraph spans multiple lines, a short first paragraph 
> will still prevent the second paragraph from overlapping the lettrine?
> 
> That is, the setups should work in both cases, without any knowledge about 
> the first paragraph length being added between \starttext and \stoptext.
> 
> ConTeXt LMTX version: 2023.06.04 18:58
> 
> Thank you!
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Protect the lettrine

2023-06-12 Thread Thangalin via ntg-context
I'm using KeenWrite Themes (specifically, Boschet) to typeset a chapter
wherein the first letter is a lettrine. When the first paragraph is too
short, the second paragraph overlaps the lettrine.

% SOT
\setupinitial[n=2]

\setuphead[chapter][
  after={\placeinitial},
  page=no,
]

\starttext
\chapter{one}
Kermit Ruffins

Meet me at the second line.

\chapter{two}
\input knuth

Meet me at the second line.
\stoptext
% EOT

Produces: https://i.stack.imgur.com/kNDqw.png

How would you instruct ConTeXt to "protect" the lettrine such that
regardless of whether the first paragraph spans multiple lines, a short
first paragraph will still prevent the second paragraph from overlapping
the lettrine?

That is, the setups should work in both cases, without any knowledge about
the first paragraph length being added between \starttext and \stoptext.

ConTeXt LMTX version: 2023.06.04 18:58

Thank you!
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] letfrozen?

2023-06-12 Thread Hans Hagen via ntg-context

On 6/12/2023 12:32 PM, Hans van der Meer via ntg-context wrote:

On 12 Jun 2023, at 11:12, Hans Hagen via ntg-context  wrote:

On 6/12/2023 10:57 AM, Hans van der Meer via ntg-context wrote:

The manual LMTX-primitives on page 21 tells me:
You can explicitly freeze an unfrozen macro.
...
A redefinition will now give: You can't redefine a frozen macro.
But is this true? The following code seems to contradict this:
\def\HOME{myhome}
\writestatus{1}{\meaning\HOME}
\letfrozen\HOME
\writestatus{2}{\meaning\HOME}
\def\HOME{other home}
\writestatus{3}{\meaning\HOME}

Is this mechanism broken? It looks so useful to prevent accidental redefinition!


here i run with

\enabledirectives[overloadmode=error]

(you can do that in cont-sys.mkxl)

\enabledirectives[overloadmode=warning]
Hans



Pity. Now I get on loading the tex file:
"csname overload > fatal error, protection level 4, control sequence 'nbsp', 
properties 'immutable', file 't-hvdm-text.tex', line 63

while I had hoped that frozen would give me something like:
illegal attempt to redefine \HOME

Byproduct (not unwanted) the above illegal redefinition to be solved :-)

May I ask why obviously the frozen-mechanism seems (yet?) unimplemented?

It's okay and has been around for quite a while now.

\enabledirectives[overloadmode=error]

\starttext

\frozen\def\HOME{}

\def\HOME{!}

\stoptext


-
  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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] TiKz with LMTX

2023-06-12 Thread Hans Hagen via ntg-context

On 6/12/2023 6:49 PM, Carlos via ntg-context wrote:

On Thu, Jun 08, 2023 at 11:57:36PM -0400, Aditya Mahajan via ntg-context wrote:

On Thu, 8 Jun 2023, Jigé via ntg-context wrote:


  Thanks a lot Aditya.

The very simple TikZ example with the cross works.
The more complex example with the trigonometric circle from the pgf manual,
quoted in https://wiki.contextgarden.net/TikZ , does not compile
unless you also comment out
  or find(n,"pdftex")
in line 181 of the mtx-install-modules.lua file
before doing mtxrun --script install-modules --install tikz
but I could guess that from a:
  Driver file ``pgfsys-pdftex.def'' not found..
message


Ah so tikz uses both drivers.

@Hans, so the validate function should be:

local function validate(n)
 return not (
find(n,"latex")


what's the point of latex there?


  -- or find(n,"lualatex")


or for that matter this one lualatex too


 or find(n,"plain")
 or find(n,"optex")
  -- or find(n,"luatex")
  -- or find(n,"pdftex")
 )
end


just getting rid of files we don't need

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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] TiKz with LMTX

2023-06-12 Thread Carlos via ntg-context
On Thu, Jun 08, 2023 at 11:57:36PM -0400, Aditya Mahajan via ntg-context wrote:
> On Thu, 8 Jun 2023, Jigé via ntg-context wrote:
> 
> >  Thanks a lot Aditya.
> > 
> > The very simple TikZ example with the cross works.
> > The more complex example with the trigonometric circle from the pgf manual,
> > quoted in https://wiki.contextgarden.net/TikZ , does not compile
> > unless you also comment out
> >  or find(n,"pdftex")
> > in line 181 of the mtx-install-modules.lua file
> > before doing mtxrun --script install-modules --install tikz
> > but I could guess that from a:
> >  Driver file ``pgfsys-pdftex.def'' not found..
> > message
> 
> Ah so tikz uses both drivers. 
> 
> @Hans, so the validate function should be:
> 
> local function validate(n)
> return not (
>find(n,"latex")

what's the point of latex there? 

>  -- or find(n,"lualatex")

or for that matter this one lualatex too 

> or find(n,"plain")
> or find(n,"optex")
>  -- or find(n,"luatex")
>  -- or find(n,"pdftex")
> )
> end
> 
> 
> Aditya

Through rsync only and by default without mtx-install-modules script,
obviously, it'll simply fall back loading by pgfsys-pdftex

so you'd be better off by just having 

local function validate(n)
return not (
   find(n,"latex")
or find(n,"lualatex")
or find(n,"plain")
or find(n,"optex")
--  or find(n,"luatex")
or find(n,"pdftex")
)
end

instead.  

Also, forget about the curl --ssl or whatever you mentioned earlier.


> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___


-- 
Brian Kernighan has an automobile which he helped design.
Unlike most automobiles, it has neither speedometer, nor gas gauge, nor
any of the numerous idiot lights which plague the modern driver.
Rather, if the driver makes any mistake, a giant "?" lights up in the
center of the dashboard.  "The experienced driver", he says, "will
usually know what's wrong."

_______
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] letfrozen?

2023-06-12 Thread Hans van der Meer via ntg-context
> On 12 Jun 2023, at 11:12, Hans Hagen via ntg-context  
> wrote:
> 
> On 6/12/2023 10:57 AM, Hans van der Meer via ntg-context wrote:
>> The manual LMTX-primitives on page 21 tells me:
>>  You can explicitly freeze an unfrozen macro.
>>  ...
>>  A redefinition will now give: You can't redefine a frozen macro.
>> But is this true? The following code seems to contradict this:
>> \def\HOME{myhome}
>> \writestatus{1}{\meaning\HOME}
>> \letfrozen\HOME
>> \writestatus{2}{\meaning\HOME}
>> \def\HOME{other home}
>> \writestatus{3}{\meaning\HOME}
>> 
>> Is this mechanism broken? It looks so useful to prevent accidental 
>> redefinition!
> 
> here i run with
> 
> \enabledirectives[overloadmode=error]
> 
> (you can do that in cont-sys.mkxl)
> 
> \enabledirectives[overloadmode=warning]
> Hans
> 

Pity. Now I get on loading the tex file:
"csname overload > fatal error, protection level 4, control sequence 'nbsp', 
properties 'immutable', file 't-hvdm-text.tex', line 63

while I had hoped that frozen would give me something like:
illegal attempt to redefine \HOME

Byproduct (not unwanted) the above illegal redefinition to be solved :-)

May I ask why obviously the frozen-mechanism seems (yet?) unimplemented?

dr. Hans van der Meer

_______
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] letfrozen?

2023-06-12 Thread Hans Hagen via ntg-context

On 6/12/2023 10:57 AM, Hans van der Meer via ntg-context wrote:

The manual LMTX-primitives on page 21 tells me:
You can explicitly freeze an unfrozen macro.
...
A redefinition will now give: You can't redefine a frozen macro.

But is this true? The following code seems to contradict this:

\def\HOME{myhome}
\writestatus{1}{\meaning\HOME}
\letfrozen\HOME
\writestatus{2}{\meaning\HOME}
\def\HOME{other home}
\writestatus{3}{\meaning\HOME}




Is this mechanism broken? It looks so useful to prevent accidental redefinition!


here i run with

\enabledirectives[overloadmode=error]

(you can do that in cont-sys.mkxl)

\enabledirectives[overloadmode=warning]
 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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] letfrozen?

2023-06-12 Thread Hans van der Meer via ntg-context
The manual LMTX-primitives on page 21 tells me:
You can explicitly freeze an unfrozen macro.
...
A redefinition will now give: You can't redefine a frozen macro.

But is this true? The following code seems to contradict this:

\def\HOME{myhome}
\writestatus{1}{\meaning\HOME}
\letfrozen\HOME
\writestatus{2}{\meaning\HOME}
\def\HOME{other home}
\writestatus{3}{\meaning\HOME}




Is this mechanism broken? It looks so useful to prevent accidental redefinition!

dr. Hans van der Meer


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] setuphead page=right and blank even page.

2023-06-11 Thread Wolfgang Schuster via ntg-context

Alan Braslau schrieb am 11.06.2023 um 20:12:

On 10/06/23 10/06/23, 12:42, Wolfgang Schuster via ntg-context wrote:

Alan Braslau via ntg-context schrieb am 10.06.2023 um 12:28:

Hello,

\setuphead
  [part,chapter,title]
  [page=right]

will start a part, chapter, or title on an odd page (right), 
inserting a "blank" even page if necessary. How can I get this blank 
even page to be truely blank, that is with no headers nor footers?


I tried several thinks and must be missing something really simple 
and obvious.


\setuphead [...] [page={yes,header,footer,right}]


Wolfgang
Thank you for this hint. It works (almost) as expected:
Strangely, I had to add, explicitly,

\startfrontmatter

\component FrontMatterStuff

\page[yes,header,footer,right]

\stopfrontmatter

\startbodymatter

...

\stopbodymatter


In order to get the frontmatter end with a totally blank page before a 
right Chapter 1 header. Using just the setuphead resulted in headers 
and footers on the "blank" left page. No problems for Chapters 2, etc.


Section block force by default a page break which can produce unexpected 
headers/footers on the first chapter etc.


You can fix this by disabling the page break at the start/end of the 
section block with


    \setupsectionblock [bodypart] [page=]

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] setuphead page=right and blank even page.

2023-06-11 Thread Alan Braslau via ntg-context

On 10/06/23 10/06/23, 12:42, Wolfgang Schuster via ntg-context wrote:

Alan Braslau via ntg-context schrieb am 10.06.2023 um 12:28:

Hello,

\setuphead
  [part,chapter,title]
  [page=right]

will start a part, chapter, or title on an odd page (right), inserting 
a "blank" even page if necessary. How can I get this blank even page 
to be truely blank, that is with no headers nor footers?


I tried several thinks and must be missing something really simple and 
obvious.


\setuphead [...] [page={yes,header,footer,right}]


Wolfgang
Thank you for this hint. It works (almost) as expected:
Strangely, I had to add, explicitly,

\startfrontmatter

\component FrontMatterStuff

\page[yes,header,footer,right]

\stopfrontmatter

\startbodymatter

...

\stopbodymatter


In order to get the frontmatter end with a totally blank page before a 
right Chapter 1 header. Using just the setuphead resulted in headers and 
footers on the "blank" left page. No problems for Chapters 2, etc.


--
Alan


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Fallbacks in text font interfere with math accents

2023-06-10 Thread Henning Hraban Ramm via ntg-context

Am 10.06.23 um 19:46 schrieb Mikael Sundqvist via ntg-context:

Hi,

On Sat, Jun 10, 2023 at 10:06 AM Henning Hraban Ramm via ntg-context
 wrote:


Hi, this is probably for Hans & Mikael, but maybe someone else has a hint:

If I set a fallback for my body font to catch all missing characters,
some math accents get replaced by small bold uppercase characters (I
found hat by K and ring by T so far).

I tried [fallbacks=] for math to no avail.

My example uses Cambria, but it’s the same with other fonts.

(BTW, in \bar{b} with Libertinus, the bar looks too high.)


I leave the font fallbacks to Hans or somebody else, but for the \bar
one can argue that the "305 glyph in Libertinus Math sits too high.
This is adjusted for in the goodie file in the next upload.


I could fix a few math accents (e.g. widebar) by limiting my 
replacements to necessary glyphs, but many other problems remain (e.g. 
breve, check, dot, widehat). It also affects the sizing of limiters and 
e.g. underbraces.


Why do font fallbacks for non-math fonts affect math at all?

Hraban
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Fallbacks in text font interfere with math accents

2023-06-10 Thread Mikael Sundqvist via ntg-context
Hi,

On Sat, Jun 10, 2023 at 10:06 AM Henning Hraban Ramm via ntg-context
 wrote:
>
> Hi, this is probably for Hans & Mikael, but maybe someone else has a hint:
>
> If I set a fallback for my body font to catch all missing characters,
> some math accents get replaced by small bold uppercase characters (I
> found hat by K and ring by T so far).
>
> I tried [fallbacks=] for math to no avail.
>
> My example uses Cambria, but it’s the same with other fonts.
>
> (BTW, in \bar{b} with Libertinus, the bar looks too high.)

I leave the font fallbacks to Hans or somebody else, but for the \bar
one can argue that the "305 glyph in Libertinus Math sits too high.
This is adjusted for in the goodie file in the next upload.

/Mikael
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] setuphead page=right and blank even page.

2023-06-10 Thread Wolfgang Schuster via ntg-context

Alan Braslau via ntg-context schrieb am 10.06.2023 um 12:28:

Hello,

\setuphead
  [part,chapter,title]
  [page=right]

will start a part, chapter, or title on an odd page (right), inserting 
a "blank" even page if necessary. How can I get this blank even page 
to be truely blank, that is with no headers nor footers?


I tried several thinks and must be missing something really simple and 
obvious.


\setuphead [...] [page={yes,header,footer,right}]

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] setuphead page=right and blank even page.

2023-06-10 Thread Alan Braslau via ntg-context

Hello,

\setuphead
  [part,chapter,title]
  [page=right]

will start a part, chapter, or title on an odd page (right), inserting a 
"blank" even page if necessary. How can I get this blank even page to be 
truely blank, that is with no headers nor footers?


I tried several thinks and must be missing something really simple and 
obvious.


Thank you.

--
Alan
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


<    1   2   3   4   5   6   7   8   9   10   >