I wish parse all the text within a Scribus document. I assume that I will have to traverse the pages, the text frames within the page, the paragraphs within the text frames, the characters within the paragraph.
I would then like to apply UI defined character styles to selected chunks of characters within each paragraph. The documents are books of plays with a few hundred pages.
FYI. I maintained compilers for 20 years and have nearly 100,000 lines of Python code, some of which relate to special purpose compilers for microprocessors.
I am trying to overcome the lack of character style importing from ODT. I can detect, by character syntax, the presence of stage directions, lighting tech notes, and sound tech notes, which must be cast to specific character styles within paragraphs with "dialog" style attached.
I notice that the SLA files are just XML. Maybe I should do this outside of Scribus?