I want to use predicates to make classes of various kinds of diacritics. I was led to believe I could do this:
But as you can see no workey.
I want to use predicates to make classes of various kinds of diacritics. I was led to believe I could do this:
But as you can see no workey.
Try subcategory like "Combining"
See the sample code here: Tokens | Glyphs
Are you sure you have glyphs what have the subCategory set to “Combining”? Just for the sake of testing, try $[category == "Letter"]
.
That does work so maybe it’s me not understanding the subCategory
name. What I want to do is get these
the combining marks.
check what the actual subcategory is in the Show info for selection from Font View, or in the Glyph Info box in the lower left (click the triangle in the lower corner).
You most likely mean to use
$[subCategory == "Nonspacing"]
The names in the sidebar are user readable, not at all meant to reflect the actual values.
I see, thanks. I jumped to the wrong conclusion when reading the documentation.
One more question: Why is my NOT
operator not working?
$[category == "Mark" AND subCategory == "Nonspacing" AND name endswith "comb" NOT name contains "below"]
There appears to be an AND
missing before the NOT
.
There was indeed. Once again the documentation was perhaps making presumptions regarding the knowledge users would have? It mentions NOT
but that it should be combined with some other operator is implied knowledge.
This is not the case. See the example for NOT
in the documentation which does not use another operator since it’s just a negation of the … in …
predicate.
You only need to add an AND
or OR
when there are multiple predicates that need to be combined.
Clear as mud.
You are listing multiple conditions.
You need to make the fact that you are listing them clear by adding an “AND” between each condition, similar to when you list items in normal text and separate them with commas.
You above code would be similar to “I buy bread and cheese and milk no pasta”. This doesn’t make sense, so you need to say “I buy bread and cheese and milk and no pasta”.