Comment by california-og
1 year ago
That's genius, thank you!! I will have to try that tomorrow but I have a feeling it might just work : - )
1 year ago
That's genius, thank you!! I will have to try that tomorrow but I have a feeling it might just work : - )
Here's a tested version that, given text containing only lower case letters, backslash and double quote, capitalizes the letters between quotes and handles escaping reasonably. (works with NotoSans-Regular.ttf)
Do you know if there is a programmatic way to convert multi character to multi character without intermediate glyphs? E.G. snake -> snāk
For that example, I think you could do
although that would also change "snāke" to "snāk", which is not quite what you asked for.
I don't think there's a way to do many-to-many substitution in general, although it would always be possible if you create intermediate glyphs. I believe Section 5 of http://adobe-type-tools.github.io/afdko/OpenTypeFeatureFileS... gives the full list of substitution types.