Closed NeilSureshPatel closed 1 year ago
Let me just check I understand what you're asking for:
The profile specifies an input codepoint (e.g. U+014A Ŋ). This maps to "Eng" in the font, and shaperglot looks to see if there are any other "Eng.XXX" unencoded in the font. If there are not, we get a warning.
If there are, we check that they are triggered by a locl
feature for the language we are looking for, and that the glyph gets changed.
Actually now I write it out myself, I think that makes sense. Will work on it...
OK, I've done this. For now, you specify one codepoint at a time, and use it like this:
- check: unencoded_variants
input:
text: Ŋ
Shaperglot will pass the language code of the current language definition to Harfbuzz as a BCP47 tag, and Harfbuzz will magically map that to an OpenType tag. If you want to override the language tag passed to Harfbuzz, do it like this:
- check: unencoded_variants
input:
text: Ŋ
language: cuc # Usila Chinantec
Thanks, I'll give it a try.
I think I need a new test for unencoded glyph variants.
These would be the failure modes.
It would be good to also be able test item 3 with other OT features like smcp. Perhaps compare cluster 1 with just smcp on against cluster 2 with locl+smcp on.
I think logic would work.