In the above image which is Hebrew rtl, I want to add kerning between the slash and the letter yod-hb on the left due to the diacritic patah-hb underneath.
however, when I add this code to the kern feature,
Try the extended notation <xPos yPos xAdv yAdv>: keep all y values at zero; pos means the positioning of the glyph, adv means the displacement of the following cursor position.
So your example would be:
pos slash' <0 0 -200 0> yod @wide_vowels;
The position of slash doesn’t change, but the following cursor position is moved 200 to the left.
Or:
pos slash yod' <-200 0 -200 0> @wide_vowels;
Moves the yod instead (and the following cursor position).
The slash tucks nicely under the yod-hb character without the vowels, but honestly, I am trying to learn as much as possible because I eventually want to do a font with cantillation marks which is far more complex.
Currently I solve the problem of cantillation marks with a program that I had made that creates a massive search and replace which can take hours to run on a large text.
That should be build into the font. Your tool should has all the info it needs to generate the feature code. So you can set up the groups like you showed in the video. But instead of applying it to the text in Indesign, you generate the fea code, add it to the .glyphs file and export the font (Testing your fonts in Adobe apps | Glyphs).