From 289bdc162228609e841ae69a2ba1295926401ecd Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 8 May 2021 13:16:56 -0400 Subject: Improve term grouping (#1653) * Rename _addUniqueStrings to _addUniqueSimple * Update definition merging to not depend the sequence number * Improve naming * Update AnkiNoteDataCreator * Update docs * Remove fields that no longer exist * Update test data --- docs/interfaces/dictionary-entry.ts | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'docs/interfaces') diff --git a/docs/interfaces/dictionary-entry.ts b/docs/interfaces/dictionary-entry.ts index 724a0b5a..2a58f5dc 100644 --- a/docs/interfaces/dictionary-entry.ts +++ b/docs/interfaces/dictionary-entry.ts @@ -200,14 +200,6 @@ namespace Translation { * original search text, while non-primary sources originate from related terms. */ isPrimary: boolean; - /** - * Database sequence number for the term, or `-1` if multiple entries have been merged. - */ - sequence: number; - /** - * The dictionary that the sequence number originated from, or `null` if there is no sequence. - */ - sequenceDictionary: string; /** * A list of inflections that was applied to get the term. */ @@ -297,9 +289,11 @@ namespace Translation { */ dictionary: string; /** - * Database sequence number for the term. The value will be `-1` if there is no sequence. + * A list of database sequence numbers for the term. A value of `-1` corresponds to no sequence. + * The list can have multiple values if multiple definitions with different sequences have been merged. + * The list should always have at least one item. */ - sequence: number; + sequences: number; /** * Tags for the definition. */ -- cgit v1.2.3