Make variant selectors of A and E able to influence AE and OE letters (#1031).

This commit is contained in:
be5invis 2021-05-22 16:41:45 -07:00
parent 6556e4f883
commit ce12d99f53
7 changed files with 139 additions and 60 deletions

View file

@ -97,6 +97,17 @@ const Radical = {
}
};
const RequireCcmpDecompose = {
get(glyph) {
if (glyph && glyph.related) return !!glyph.related.RequireCcmpDecompose;
else return false;
},
set(glyph) {
if (!glyph.related) glyph.related = {};
glyph.related.RequireCcmpDecompose = true;
}
};
const CvTagCache = new Map();
function Cv(tag, rank) {
const key = tag + "#" + rank;
@ -351,6 +362,7 @@ exports.getGrMesh = getGrMesh;
exports.TieMark = TieMark;
exports.TieGlyph = TieGlyph;
exports.Radical = Radical;
exports.RequireCcmpDecompose = RequireCcmpDecompose;
exports.AnyDerivingCv = AnyDerivingCv;
exports.CcmpDecompose = CcmpDecompose;
exports.CvDecompose = CvDecompose;