Cont
This commit is contained in:
parent
539c828605
commit
942deb3bbe
7 changed files with 395 additions and 430 deletions
|
@ -390,12 +390,17 @@ function byTagPreference(a, b) {
|
|||
}
|
||||
function queryCvFeatureTagsOf(sink, gid, glyph, tagSet) {
|
||||
const cvs = AnyCv.query(glyph).sort(byTagPreference);
|
||||
|
||||
let existingFeatures = new Map();
|
||||
let existingTargets = new Set();
|
||||
|
||||
for (const gr of cvs) {
|
||||
const target = gr.get(glyph);
|
||||
if (target === gid) continue;
|
||||
|
||||
if (existingTargets.has(target)) continue;
|
||||
existingTargets.add(target);
|
||||
|
||||
let series = existingFeatures.get(gr.tag);
|
||||
if (!series) {
|
||||
if (tagSet) {
|
||||
|
|
|
@ -295,7 +295,7 @@ class VbStageAlternative {
|
|||
for (const [selector, suffix] of Object.entries(this.selectorAffix))
|
||||
ans.addSelectorAffix(this.mode, selector, suffix);
|
||||
|
||||
if (!this.next) {
|
||||
if (!this.next || this.next === "END") {
|
||||
ans.rank = ++globalState.rank;
|
||||
globalState.sink.push(ans);
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue