Fixed outlier on character paragraph.

On new chat, character paragraphs, found an outlier possibility where character/narrator wouldn't swap, so performed replace('&quot;<. *', '&quot;< *"').replace('< *"', '< *') which should capture it.
This commit is contained in:
erew123 authored and GitHub committed 2023-12-13 10:00:33 +00:00
1 parent fedea7cc09
commit 8c8e65fb1d
1 file changed
+3 -1
+3 -1
View File
@@ -508,8 +508,10 @@ def output_modifier(string, state):
.replace('&quot;', '&quot;<')
# Capture new conversations which wont have things like &quote in them
.replace('"', '&quot;<')
)
#capturing another outlier in inital character paragraph
processed_string = processed_string.replace('&quot;<. *', '&quot;< *"')
processed_string = processed_string.replace('< *"', '< *')
# Set up a tracking of the individual wav files.
audio_files_all_paragraphs = []
# Split the line using &quot; and ".* " (so end of sentences, leaving special characters added to the start of all OTHER sentences, bar possibly the first one if its starting with a *