I'm making a font for my conscript. I've made some ligatures for syllables. Vowels can be represented either by symbols or diacritics:
I want to make a substitution rule, where the vowel symbols would turn into diacritics only when they're preceded by a syllable (e.g. pa (syllable) + a (symbol) = paa (syllable + diacritic). I tried doing this with single and multiple substitutions, but it affects even isolated and initial states of these symbols, I don't want that.
Such symbols should turn into diacritics only once and only if they're preceded by a syllable.
Currently, it looks like this (screenshot above).
Symbol and diacritic on the left is for vowel a, while on the right is for vowel e.How to substitute a character with a diacritic only when it's preceded by an another character?
-
- Moderator
- Posts: 11419
- Joined: Fri Oct 04, 2002 12:41 am
- Location: Bilthoven, The Netherlands
- Contact:
Re: How to substitute a character with a diacritic only when it's preceded by an another character?
You will need a contextual lookup. See the Swashes for an example:
Enrich Your Fonts with OpenType Features
Enrich Your Fonts with OpenType Features