In earlier versions of the OpenType Feature File Format specification, the example was mal-formed so we had invented our own test case. Adobe has kindly fixed the format specification: https://github.com/adobe-type-tools/afdko/issues/88 This change revealed a bug in the parser where mark classes did not get recognized as glyph classes; this is now fixed, too.
25 lines
659 B
Plaintext
25 lines
659 B
Plaintext
# OpenType Feature File specification, section 6.h.ii:
|
|
# Specifying Contextual Positioning with explicit lookup references
|
|
# http://www.adobe.com/devnet/opentype/afdko/topic_feature_file_syntax.html
|
|
|
|
languagesystem DFLT dflt;
|
|
|
|
markClass [acute grave] <anchor 150 -10> @ALL_MARKS;
|
|
|
|
lookup CNTXT_PAIR_POS {
|
|
position T o -10;
|
|
position T c -12;
|
|
} CNTXT_PAIR_POS;
|
|
|
|
lookup CNTXT_MARK_TO_BASE {
|
|
position base o <anchor 250 450> mark @ALL_MARKS;
|
|
position base c <anchor 250 450> mark @ALL_MARKS;
|
|
} CNTXT_MARK_TO_BASE;
|
|
|
|
feature test {
|
|
position
|
|
T' lookup CNTXT_PAIR_POS
|
|
[o c]'
|
|
@ALL_MARKS' lookup CNTXT_MARK_TO_BASE;
|
|
} test;
|