merged mode: make gloss hash more unique
Use ['gloss', 'ary'].concat('DictName') Known collision: 日本国有鉄道 in JMdict and JMnedict
This commit is contained in:
parent
b9d589374c
commit
e1c5d7a401
@ -196,7 +196,7 @@ function dictTermsMergeByGloss(result, definitions, appendTo, mergedIndices) {
|
||||
}
|
||||
}
|
||||
|
||||
const gloss = JSON.stringify(definition.glossary);
|
||||
const gloss = JSON.stringify(definition.glossary.concat(definition.dictionary));
|
||||
if (!definitionsByGloss[gloss]) {
|
||||
definitionsByGloss[gloss] = {
|
||||
expression: new Set(),
|
||||
|
Loading…
Reference in New Issue
Block a user