* First round of adding fea output No format tests but all test files give reasonable output so far. * Get existing tests working * Initial tests that work for fea2fea * Get more tests working Bug fixes and re-layout some tests to compare with fea2fea output. Ranges and name parameters are not optimised yet. * Handle vertical default values in fea2fea * Hide fea2fea differences in lookupflags * No reduce() in py3 so use a for loop
21 lines
523 B
Plaintext
21 lines
523 B
Plaintext
# OpenType Feature File specification, section 5.f.i, example 1
|
|
# "Specifying a Chain Sub rule and marking sub-runs"
|
|
# http://www.adobe.com/devnet/opentype/afdko/topic_feature_file_syntax.html
|
|
|
|
languagesystem latn dflt;
|
|
|
|
lookup CNTXT_LIGS {
|
|
sub f i by f_i;
|
|
sub c t by c_t;
|
|
} CNTXT_LIGS;
|
|
|
|
lookup CNTXT_SUB {
|
|
sub n by n.end;
|
|
sub s by s.end;
|
|
} CNTXT_SUB;
|
|
|
|
feature test {
|
|
sub [a e i o u] f' lookup CNTXT_LIGS i' n' lookup CNTXT_SUB;
|
|
sub [a e i o u] c' lookup CNTXT_LIGS t' s' lookup CNTXT_SUB;
|
|
} test;
|