Conversion_Kitchen_Code/kitchen_counter/conversion/subtitling/dialogue2.py

23 lines
1.0 KiB
Python
Raw Normal View History

2024-04-27 09:33:09 +00:00
from dia_function import dialogueBreakdown
def dialogue_gen(path):
filename1 = path
refined, total_scenes = dialogueBreakdown().getRefined(filename1)
sluglines, without_slug = dialogueBreakdown().getSlugAndNonSlug(refined)
total_scenes = len(sluglines)
characters = dialogueBreakdown().getSpeakers(without_slug)
main_lis = dialogueBreakdown().getListForPrevAndNextDialogue(refined, characters)
scenes, parenthetical_count_dict, predecessor_scene_no_dict, successor_scene_no_dict, actionline, parenthetical_lis, speakers, dia_count, dialogues, slugline_dic = dialogueBreakdown().getScenes(refined,
total_scenes, characters)
print("-"*50)
print("-"*50)
print("-"*50)
print("-"*50)
print("-"*50)
print(dialogues)
dialogue_gen("/home/user/mnf/project/MNF/conversion/subtitling/newFrench.docx")