Add processing of dialogue highlight for ODT files

This commit is contained in:
Veronica Berglyd Olsen
2024-06-10 23:12:54 +02:00
parent f0f5ae6dc9
commit 0b3488c265
2 changed files with 48 additions and 15 deletions
+3 -1
View File
@@ -197,7 +197,8 @@ class Tokenizer(ABC):
# Instance Variables
self._hFormatter = HeadingFormatter(self._project)
self._noSep = True # Flag to indicate that we don't want a scene separator
self._noSep = True # Flag to indicate that we don't want a scene separator
self._showDialog = False # Flag for dialogue highlighting
# This File
self._isNovel = False # Document is a novel document
@@ -358,6 +359,7 @@ class Tokenizer(ABC):
def setDialogueHighlight(self, state: bool) -> None:
"""Enable or disable dialogue highlighting."""
self._rxDialogue = []
self._showDialog = state
if state:
if CONFIG.dialogStyle > 0:
self._rxDialogue.append((