Adding OpenType features: Long GSUB Strings

This morning I have made a test font using what I have learned in this thread, what I have learned in the following thread and trying some of the glyphs that I made yesterday.

It works well in Serif PagePlus X5.
Ligatures_006_plus_aalt.otf (21 KB)

script latn { 
    feature DiscretionaryLigatures;
    feature Ligatures;
    feature AccessAllAlternates;
}

feature DiscretionaryLigatures dlig {
    lookup dligSub;
}  

lookup dligSub {
    sub c t -> c_t;
    sub s h -> s_h;
    sub s t -> s_t;
    sub colon colon one zero zero one six colon semicolon -> ls10016;
    sub colon colon one zero zero one seven colon semicolon -> ls10017;
}

feature Ligatures liga {
    lookup ligaSub;
}

lookup ligaSub {
    sub f f i -> f_f_i;
    sub f f l -> f_f_l;
    sub f f -> f_f;
    sub f i -> fi;
    sub f j -> f_j;
    sub f l -> fl;
    sub d a -> d_a;
    sub longs t -> longs_t;
    sub colon colon -> lsmbob;
    sub colon semicolon -> lsmbcb;
}

feature AccessAllAlternates aalt {
    lookup AccessAllAlternates;
}

lookup AccessAllAlternates {
    sub ls10016 -> [ls10016.alt];
    sub ls10017 -> [ls10017.alt];
}

William Overington

19 November 2013