Hello.
In a Python script, I need to insert variable text with complex formatting into a text frame. The text may be something like:
Lorem ipsum <bold>dolor sit</bold> amet, consectetur
adipiscing <italic>elit, sed do eiusmod</italic> tempor
incididunt ut labore et dolore <small>magna aliqua</small>.
Ut enim ad minim veniam, quis nostrud exercitation
I added the text formatting in angle brackets.
The problem is that I don't know in advance which parts of the text should be in bold or italics, so I can't select individual pieces of text to assign formatting to them.
I see in the online help that I can assign an HTML file to a text frame with "scribus.insertHTMLText()".
Is there a way to assign a string containing HTML formatting to a text frame instead of a file?