moizngp
(moizngp)
June 16, 2023, 1:33am
1
Hello.
I’m having this problem with Contextual Anchors, where they don’t seem to work at all.
Below is the screenshot of my setup. I’m using Glyphs 3 (3200).
I want the botBelow in beh-ar.init
to move down when it is followed by reh-ar.
I have defined the contextual anchor in behDotless-ar.init
and placed reh-ar *
in the context.
It doesn’t seem to work for me.
Here is what it look like in InDesign (latest version).
The glyphs file is also attached.
Square Kufi Experiment.glyphs (32.1 KB)
System details:
MB Pro 2017.
MacOS: Ventura 13.4.
Processor: 2.9 GHz Quad-Core Intel Core i7.
This is was previously discussed here as well.
Have you fixed your context? You have to write
reh-ar.fina *
Because the reh is before the glyph that gets the mark.
Thanks and regards.
Then you need to first decompose the beh. The contextual mark positioning is applied when the text is rendered and then the dot in the beh is a fixed part of the glyph.
moizngp
(moizngp)
June 16, 2023, 5:30am
3
Thanks for the reply.
Can you please suggest how do I approach it?
As the concept is not clear to me.
Thanks.
In the ccmp feature add something like this:
sub beh-ar by behDotless-ar dotbelow-ar;
moizngp
(moizngp)
June 16, 2023, 7:00am
5
Thanks.
Will try that at the earliest.
Do I need to do anything else?
moizngp
(moizngp)
June 17, 2023, 2:06am
6
Hello,
I placed sub beh-ar.init by behDotless-ar.init dotbelow-ar;
in CCMP as you suggested.
Still not getting the desired position of dotbelow-ar
of beh-ar.init
when it is typed after reh-ar
.
What am I missing?
Thanks.
when the ccmp is applied, there are no .init formes, yet. So you only need to decompose the default glyphs (the ones without a suffix).
moizngp
(moizngp)
June 18, 2023, 1:48am
8
Thanks for the reply.
I decomposed the beh-ar
as you suggested.
then I figured out below code to attach dotbelow-ar
to behDotless-ar.init
:
markClass [dotbelow-ar] <anchor 50 150> @bottom;
pos base behDotless-ar.init <anchor 150 0> mark @bottom;
Please help with the contextual part.
Where dotbelow-ar
of beh-ar.init
moves down if it is preceded by reh-ar
.
Thanks.
You don’t need to deal with the markClass and such. That is done automatically.
Make sure that the dotbelow-ar
is set to Mark
, Nonspacing
and that it has a _bottom
anchor.
Then add the context to the *bottom
anchor like this
[reh-ar reh-ar.fina] *
moizngp
(moizngp)
June 18, 2023, 2:24pm
10
Thanks @GeorgSeifert for the tip.
Will try it.
kosbarts
(kosbarts)
June 18, 2023, 7:44pm
11
Is there a tutorial anywhere on contextual anchors? It’s the first time I heard this term.
They are described in the Handbook:
1 Like
moizngp
(moizngp)
November 7, 2023, 5:17am
13
hello,
this does not seem to work for me.
where do I put this contextual anchor?