[NTG-context] LMTX, BIdi, full paragraph, and spurious empty line

2021-06-21 Thread Rik Kabel

Hello all,

Last October Denis Maier complained about a spurious empty line 
generated with protrusion and bidi active and a full paragraph. (See 
https://www.mail-archive.com/ntg-context@ntg.nl/msg95916.html 
 or 
similar on your favorite mail archive.)


I have recreated the issue without involving protrusion. When a 
paragraph is very full and bidi is on, an extra line seems to be 
generated. Without bidi there is no extra line. This is quite sensitive, 
of course, to line width. I have probably 30 instances of it occurring 
in a tightly-set bibliography. I would assume that it may occur in any 
text, but have not noticed it in the body of my book.


I have created an example document that shows it. The problem disappears 
if bidi is turned off (comment out the first non-comment line) but of 
course then the RTL text is mis-set. In this example, the spurious line 
appears after the Walt Kelly entry.


This was tested under ConTeXt  ver: 2021.06.18 23:37 LMTX  fmt: 
2021.6.21, but is not a new problem with this version. /The problem does 
not occur with MKIV from the same installation./


   %% Demonstration of spurious line insertion on full paragraph with
   bidi active

   \setupdirections  [bidi=on,method=unicode]

   \definepapersize  [Testing]
  [width=6.69in]
   \setuppapersize   [Testing]

   \setuplayout  [width=fit,
   backspace=1.4in,
   cutspace=1in,
   leftmargin=0.65in,
   rightmargin=0.65in]

   \setupwhitespace  [small]

   \setupbodyfont    [libertinus,11pt]

   \define\SetupBib{
  \spaceskip 0.7\interwordspace plus .5\interwordstretch minus
   \interwordshrink
  \definedelimitedtext
    [Exdent]
    [leftmargin=1em,
 indenting={yes,-1em},
 indentnext=yes]}

   \starttext
  \input jojomayer

  \input klein

  \blank[2*line]

  \SetupBib
  \startExdent

    Kelly, Cynthia C., ed. 2005. {\em Oppenheimer and the Manhattan
    Project: Insights into J.~Robert Oppenheimer, ‘Father of the
    Atomic Bomb’}. Singapore: World Scientific.

    Kelly, Walt. 1953. {\em The Pogo Papers}. New York, NY: Simon
    & Schuster.

    Kuhn, Thomas S. 1962. {\em The Structure of Scientific
    Revolutions}. Chicago, IL: University of Chicago Press.

    Weinreich, Max. 1945. “Der YIVO un di problemen fun undzer
    tsayt (דער ייִוואָ און די פּראָבלעמען פֿון אונדזער צײַט).”
    {\em YIVO Bleter} 25 (1): 3--18. The title is translated as
    {\em The YIVO and the problems of our time}, and also as
    {\em The YIVO faces the post-war world}.

  \stopExdent
   \stoptext

Of course, there could be some other mechanism at work here than bidi, 
but changing that clears the problem in this instance. (It may be the 
adjustment to spaceskip that I use to tighten up the text in the 
bibliography, and if it is, I welcome an alternative way to do that.)


--
Rik

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

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


Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-21 Thread Jeong Dal

Dear Otared,

I received list mail in condensed form, I didn’t see your mail before I sent 
one.

As Mikael explained, “whatever” is very nice to find the intersection point of 
two lines.
You can see nice examples which use “whatever” in MetaFun manual.

In my code, the next point is the intersection point of the edge and the 
folding line which bisect the angle of the former folding line [M,N].

H := whatever[N, N + dir(.5*angle(M-N))*u] = whatever[A,B];

Enjoy the use of “whatever”!

I made an animation of the folding process using animation module and 
\processMPbuffer.
But Woldgang’s code showed a way to make it using \startuseMPgraphic.


Best regards,

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

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


Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-21 Thread Mikael Sundqvist
Hi,

yes, sure, I should have copied my code from the geometry document
where I do this kind of constructions over and over...

/Mikael

On Mon, Jun 21, 2021 at 4:31 PM Otared Kavian  wrote:
>
> Hi Mikael,
>
> Thank you so much for the explanation: I am ashamed for not having read this 
> in the MetaPost manual.
>
> Just to make sure whether I am beginning to understand, in your example code
>
> > z3 = whatever[z1,z2] = z0+whatever*dir(angle(z1-z0)+90));
>
> should the second « whatever » be
>
> z0 + whatever*dir(angle(z2 - z1) + 90)) ;
>
> or am I proving that I have not yet understood this wonderful command ?
>
> Thanks again and best regards: Otared
>
> > On 21 Jun 2021, at 14:21, Mikael Sundqvist  wrote:
> >
> > Hi,
> >
> > As is written in the MetaPost manual: Whatever generates a new
> > anonymous variable each time it is used. It is very useful in cases
> > where you are not interested in the value of a variable, but want to
> > use it to (let MP) calculate something. Example
> >
> > you have three points z0, z1, z2 forming a triangle, and you want to
> > find where the altitude from z0 is intersecting the line between z1
> > and z2. You can find that intersection z3 by writing
> >
> > z3 = whatever[z1,z2] = z0+whatever*dir(angle(z1-z0)+90));
> >
> > The first equality says only that z3 should be on the line between z1
> > and z2, the second one says that z3 should be on the line through z0,
> > perpendicular to the line between z1 and z2. Since MetaPost solves
> > linear equations, this defines z3, and we need not to think more about
> > the actual values of the "whatevers" (note that they are not in
> > general equal in this example!).
> >
> > Hope it helps!
> >
> > /Mikael
> >
> >
> > On Mon, Jun 21, 2021 at 2:07 PM Otared Kavian  wrote:
> >>
> >> Hi Aditya,
> >>
> >> Thanks for the detailed file you sent to answer Dalyoung’s question and 
> >> file. And going through both files I have a question.
> >> I see that both of you use a function « whatever » (but is it a function 
> >> ?): what does this do and where can it be used (actually I have seen Hans 
> >> using this expression, but I had always thought this is just a name…
> >>
> >> Best regards: Otared
> >>
> >>> On 21 Jun 2021, at 06:26, Aditya Mahajan  wrote:
> >>>
> >>> On Mon, 21 Jun 2021, Jeong Dal wrote:
> >>>
> 
>  Hi,
> 
>  I defined a macro definition in metafun, and draw figures using 
>  \startbuffer[] … \stopbuffer and \processMPbuffer[].
>  As you see in the attached code, the same macro definition is used 
>  repeatedly by changing the numeric argument.
>  Is there a better way to simplify the code, for example, using 
>  \dorecurse and recurselevel?
> >>>
> >>> See attached. The main idea is to store the repetitive bits in 
> >>> \startuseMPgraphic{...} and then reuse them using \includeMPgraphic.
> >>>
> >>> Aditya___
> >>> If your question is of interest to others as well, please add an entry to 
> >>> the Wiki!
> >>>
> >>> maillist : ntg-context@ntg.nl / 
> >>> http://www.ntg.nl/mailman/listinfo/ntg-context
> >>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> >>> archive  : https://bitbucket.org/phg/context-mirror/commits/
> >>> wiki : http://contextgarden.net
> >>> ___
> >>
> >> ___
> >> If your question is of interest to others as well, please add an entry to 
> >> the Wiki!
> >>
> >> maillist : ntg-context@ntg.nl / 
> >> http://www.ntg.nl/mailman/listinfo/ntg-context
> >> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> >> archive  : https://bitbucket.org/phg/context-mirror/commits/
> >> wiki : http://contextgarden.net
> >> ___
> > ___
> > If your question is of interest to others as well, please add an entry to 
> > the Wiki!
> >
> > maillist : ntg-context@ntg.nl / 
> > http://www.ntg.nl/mailman/listinfo/ntg-context
> > webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > wiki : http://contextgarden.net
> > ___
>
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> 

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-21 Thread Jeong Dal
Dear Aditya,

Your code works perfectly.

Thank you for your help.

Best regards,

Dalyoung

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

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


Re: [NTG-context] Trying to make all links in my document blue instead of red or green

2021-06-21 Thread T. Kurt Bond
Thanks, that did it!

On Mon, Jun 21, 2021 at 11:33 AM Adam Reviczky  wrote:

> Hi Kurt,
>
> It is because of the spaces after the last line in contrastcolor.
>
-- 
T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Trying to make all links in my document blue instead of red or green

2021-06-21 Thread Adam Reviczky
Hi Kurt,

It is because of the spaces after the last line in contrastcolor.

Use any of the following instead:

\setupinteraction
  [state=start,
  color=blue,
  contrastcolor=blue,
  ]


\setupinteraction
  [state=start,
  color=blue,
  contrastcolor=blue%
  ]


\setupinteraction
  [state=start,
  color=blue,
  contrastcolor=blue]


Adam


On Mon, Jun 21, 2021 at 4:10 PM T. Kurt Bond  wrote:

> I'm trying to make all the hyperlinks in my document blue.  Here's my
> example:
>
> \setupinteraction
>   [state=start,
>   color=blue,
>   contrastcolor=blue
>   ]
>
>
> \starttext
> \completecontent
> \section{Section A}
> \subsection{SubSection A.A}
> \pagebreak[yes]
> \section {Section B — on another page}
> \subsection {SubSection B.A — on another page}
> \stoptext
>
> When I format it with ConTeXt (ConTeXt  ver: 2021.06.18 23:37 LMTX  fmt:
> 2021.6.19  int: english/english) links to destinations on the same page
> come out black while links to destinations on another page come out blue,
> as I'd intended.  Here is a screen shot:
> [image: image.png]
> Notice that the Contents lines with Section A and SubSection A.A are
> black?  I'd expected them to be blue.
> --
> T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Trying to make all links in my document blue instead of red or green

2021-06-21 Thread T. Kurt Bond
I'm trying to make all the hyperlinks in my document blue.  Here's my
example:

\setupinteraction
  [state=start,
  color=blue,
  contrastcolor=blue
  ]


\starttext
\completecontent
\section{Section A}
\subsection{SubSection A.A}
\pagebreak[yes]
\section {Section B — on another page}
\subsection {SubSection B.A — on another page}
\stoptext

When I format it with ConTeXt (ConTeXt  ver: 2021.06.18 23:37 LMTX  fmt:
2021.6.19  int: english/english) links to destinations on the same page
come out black while links to destinations on another page come out blue,
as I'd intended.  Here is a screen shot:
[image: image.png]
Notice that the Contents lines with Section A and SubSection A.A are
black?  I'd expected them to be blue.
-- 
T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-21 Thread Otared Kavian
Hi Mikael,

Thank you so much for the explanation: I am ashamed for not having read this in 
the MetaPost manual.

Just to make sure whether I am beginning to understand, in your example code

> z3 = whatever[z1,z2] = z0+whatever*dir(angle(z1-z0)+90));

should the second « whatever » be 

z0 + whatever*dir(angle(z2 - z1) + 90)) ;

or am I proving that I have not yet understood this wonderful command ?

Thanks again and best regards: Otared

> On 21 Jun 2021, at 14:21, Mikael Sundqvist  wrote:
> 
> Hi,
> 
> As is written in the MetaPost manual: Whatever generates a new
> anonymous variable each time it is used. It is very useful in cases
> where you are not interested in the value of a variable, but want to
> use it to (let MP) calculate something. Example
> 
> you have three points z0, z1, z2 forming a triangle, and you want to
> find where the altitude from z0 is intersecting the line between z1
> and z2. You can find that intersection z3 by writing
> 
> z3 = whatever[z1,z2] = z0+whatever*dir(angle(z1-z0)+90));
> 
> The first equality says only that z3 should be on the line between z1
> and z2, the second one says that z3 should be on the line through z0,
> perpendicular to the line between z1 and z2. Since MetaPost solves
> linear equations, this defines z3, and we need not to think more about
> the actual values of the "whatevers" (note that they are not in
> general equal in this example!).
> 
> Hope it helps!
> 
> /Mikael
> 
> 
> On Mon, Jun 21, 2021 at 2:07 PM Otared Kavian  wrote:
>> 
>> Hi Aditya,
>> 
>> Thanks for the detailed file you sent to answer Dalyoung’s question and 
>> file. And going through both files I have a question.
>> I see that both of you use a function « whatever » (but is it a function ?): 
>> what does this do and where can it be used (actually I have seen Hans using 
>> this expression, but I had always thought this is just a name…
>> 
>> Best regards: Otared
>> 
>>> On 21 Jun 2021, at 06:26, Aditya Mahajan  wrote:
>>> 
>>> On Mon, 21 Jun 2021, Jeong Dal wrote:
>>> 
 
 Hi,
 
 I defined a macro definition in metafun, and draw figures using 
 \startbuffer[] … \stopbuffer and \processMPbuffer[].
 As you see in the attached code, the same macro definition is used 
 repeatedly by changing the numeric argument.
 Is there a better way to simplify the code, for example, using \dorecurse 
 and recurselevel?
>>> 
>>> See attached. The main idea is to store the repetitive bits in 
>>> \startuseMPgraphic{...} and then reuse them using \includeMPgraphic.
>>> 
>>> Aditya___
>>> If your question is of interest to others as well, please add an entry to 
>>> the Wiki!
>>> 
>>> maillist : ntg-context@ntg.nl / 
>>> http://www.ntg.nl/mailman/listinfo/ntg-context
>>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>>> wiki : http://contextgarden.net
>>> ___
>> 
>> ___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>> 
>> maillist : ntg-context@ntg.nl / 
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>> ___
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-21 Thread Mikael Sundqvist
Hi,

As is written in the MetaPost manual: Whatever generates a new
anonymous variable each time it is used. It is very useful in cases
where you are not interested in the value of a variable, but want to
use it to (let MP) calculate something. Example

you have three points z0, z1, z2 forming a triangle, and you want to
find where the altitude from z0 is intersecting the line between z1
and z2. You can find that intersection z3 by writing

z3 = whatever[z1,z2] = z0+whatever*dir(angle(z1-z0)+90));

The first equality says only that z3 should be on the line between z1
and z2, the second one says that z3 should be on the line through z0,
perpendicular to the line between z1 and z2. Since MetaPost solves
linear equations, this defines z3, and we need not to think more about
the actual values of the "whatevers" (note that they are not in
general equal in this example!).

Hope it helps!

/Mikael


On Mon, Jun 21, 2021 at 2:07 PM Otared Kavian  wrote:
>
> Hi Aditya,
>
> Thanks for the detailed file you sent to answer Dalyoung’s question and file. 
> And going through both files I have a question.
> I see that both of you use a function « whatever » (but is it a function ?): 
> what does this do and where can it be used (actually I have seen Hans using 
> this expression, but I had always thought this is just a name…
>
> Best regards: Otared
>
> > On 21 Jun 2021, at 06:26, Aditya Mahajan  wrote:
> >
> > On Mon, 21 Jun 2021, Jeong Dal wrote:
> >
> >>
> >> Hi,
> >>
> >> I defined a macro definition in metafun, and draw figures using 
> >> \startbuffer[] … \stopbuffer and \processMPbuffer[].
> >> As you see in the attached code, the same macro definition is used 
> >> repeatedly by changing the numeric argument.
> >> Is there a better way to simplify the code, for example, using \dorecurse 
> >> and recurselevel?
> >
> > See attached. The main idea is to store the repetitive bits in 
> > \startuseMPgraphic{...} and then reuse them using \includeMPgraphic.
> >
> > Aditya___
> > If your question is of interest to others as well, please add an entry to 
> > the Wiki!
> >
> > maillist : ntg-context@ntg.nl / 
> > http://www.ntg.nl/mailman/listinfo/ntg-context
> > webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > wiki : http://contextgarden.net
> > ___
>
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-21 Thread Otared Kavian
Hi Aditya,

Thanks for the detailed file you sent to answer Dalyoung’s question and file. 
And going through both files I have a question.
I see that both of you use a function « whatever » (but is it a function ?): 
what does this do and where can it be used (actually I have seen Hans using 
this expression, but I had always thought this is just a name…

Best regards: Otared

> On 21 Jun 2021, at 06:26, Aditya Mahajan  wrote:
> 
> On Mon, 21 Jun 2021, Jeong Dal wrote:
> 
>> 
>> Hi,
>> 
>> I defined a macro definition in metafun, and draw figures using 
>> \startbuffer[] … \stopbuffer and \processMPbuffer[].
>> As you see in the attached code, the same macro definition is used 
>> repeatedly by changing the numeric argument. 
>> Is there a better way to simplify the code, for example, using \dorecurse 
>> and recurselevel?
> 
> See attached. The main idea is to store the repetitive bits in 
> \startuseMPgraphic{...} and then reuse them using \includeMPgraphic. 
> 
> Aditya___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


[NTG-context] \pdfbackendcurrentresources not expanded

2021-06-21 Thread Christoph Reller
Hi,

Consider the following MWE, which uses the tizk module:

\usemodule[tikz]
\usetikzlibrary[fadings]
\starttext
\starttikzpicture
  \fill [path fading=west,red] (-1,-1) rectangle (1,1);
\stoptikzpicture
\stoptext

When compiling with ConTeXt LMTX version 2021.06.18, the output PDF
contains "\pdfbackendcurrentresources" in the middle of a resource
dictionary. Apparently, this command does not get expanded but is written
literally to the file, which makes the PDF corrupt.

This command is used in the tikz module file pgfutil-context.def as:
  \def\pgf@sys@pdf@possible@resources{\pdfbackendcurrentresources}
As mentioned in a comment in back-pdf.mkxl, the command is implemented in
lua in lpdf-ini.lmt.

The command is also used in mlib-pps.mkxl and is documented in ConTeXts
interface. Can somebody tell why it is not expanded?

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

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


Re: [NTG-context] Font glyph replacement regression

2021-06-21 Thread Hans Hagen

On 6/21/2021 9:08 AM, Christoph Reller wrote:
On Mon, Jun 21, 2021 at 12:00 AM Hans Hagen > wrote:


On 6/20/2021 9:51 PM, Christoph Reller wrote:
 > In my documents I use the MyriadPro font of Adobe. Until
recently, some
 > glyphs were automatically replaced (in a correct way) for this
font. In
 > ConTeXt LMTX version 2021.09.18, the replacement stopped working:
 >
 > 1. En dash and em dash: "--" and "---" are not by default
replaced any
 > more. Using the font feature "trep" brings back the replacement
in this
 > case. See
https://www.mail-archive.com/ntg-context@ntg.nl/msg98162.html

 > >

Actually: Font feature "tlig" brings back the en-dash and em-dashes.

 > 2. Apostrophe: "'" is not replaced by the proper apostrophe anymore.
 > Unfortunately, I don't know any font feature to bring back this
replacement.
I still wonder why -- and --- it don't work at your end because that 
should be handled without the tlig (unless disabled). It 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 / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Font glyph replacement regression

2021-06-21 Thread Christoph Reller
On Mon, Jun 21, 2021 at 12:00 AM Hans Hagen  wrote:

> On 6/20/2021 9:51 PM, Christoph Reller wrote:
> > In my documents I use the MyriadPro font of Adobe. Until recently, some
> > glyphs were automatically replaced (in a correct way) for this font. In
> > ConTeXt LMTX version 2021.09.18, the replacement stopped working:
> >
> > 1. En dash and em dash: "--" and "---" are not by default replaced any
> > more. Using the font feature "trep" brings back the replacement in this
> > case. See https://www.mail-archive.com/ntg-context@ntg.nl/msg98162.html
> > 
>

Actually: Font feature "tlig" brings back the en-dash and em-dashes.


> > 2. Apostrophe: "'" is not replaced by the proper apostrophe anymore.
> > Unfortunately, I don't know any font feature to bring back this
> replacement.
>

Actually: Font feature "trep" brings back the apostrophe replacement.


> > Any hints for this issue?
> an example would help
>

Sorry for the noise.

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

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