merged mode: fix tags for non-main dictionaries
This commit is contained in:
parent
7b9ad61352
commit
84420e00bf
@ -228,8 +228,10 @@ function dictTermsMergeByGloss(result, definitions, appendTo, mergedIndices) {
|
|||||||
for (const tag of definition.tags) {
|
for (const tag of definition.tags) {
|
||||||
if (dictIsJmdictTermTag(tag)) {
|
if (dictIsJmdictTermTag(tag)) {
|
||||||
result.expressions.get(definition.expression).get(definition.reading).add(tag);
|
result.expressions.get(definition.expression).get(definition.reading).add(tag);
|
||||||
} else {
|
} else if (typeof tag === 'string') {
|
||||||
definitionsByGloss[gloss].tags.add(tag);
|
definitionsByGloss[gloss].tags.add(tag);
|
||||||
|
} else if (tag.category && tag.category !== 'dictionary') {
|
||||||
|
definitionsByGloss[gloss].tags.add(tag.name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user