Add glossary hover presentation
This commit is contained in:
@@ -499,6 +499,8 @@ class SentenceQueueModule extends BaseModule {
|
||||
blockId: metadata.blockId ?? null,
|
||||
gameId: metadata.gameId ?? null,
|
||||
paragraphIndex: metadata.paragraphIndex ?? null,
|
||||
layoutText: metadata.layoutText || text,
|
||||
glossaryEntries: Array.isArray(metadata.glossaryEntries) ? metadata.glossaryEntries : [],
|
||||
isFirstParagraphInChapter: Boolean(metadata.isFirstParagraphInChapter),
|
||||
role: metadata.role || (metadata.type === 'heading' ? 'chapter-heading' : 'body'),
|
||||
dropCap: Boolean(metadata.dropCap),
|
||||
@@ -629,6 +631,7 @@ class SentenceQueueModule extends BaseModule {
|
||||
lines: layout.lines || null,
|
||||
processedText: layout.processedText || text,
|
||||
sourceLayoutText: layoutText,
|
||||
glossaryEntries: Array.isArray(metadata.glossaryEntries) ? metadata.glossaryEntries : [],
|
||||
measures,
|
||||
lineOffsets,
|
||||
indentWidth,
|
||||
|
||||
Reference in New Issue
Block a user