View Single Post
Old 03-09-11, 12:04 PM   #14
d3vnu11
Bosun
 
Join Date: Feb 2011
Posts: 66
Downloads: 95
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
a string buffer in Python can only hold x amount of characters. I've found a solution to this though. We define multiple AIText= entries where each AIText is a paragraph of text.
We have to also define an [AdditionalInfoEnd] header after all the AITexts.

I've also fixed the formatting problem when images are embedded into the text.
I'm not exactly sure how the Python interpreter was embedded into SH5 or what data types sh5 defines that you can access or even how much of the python api was included. But couldn't you simply extend the String Buffer class to suit your needs ? Or even define a new class to tailor it to what you are trying for ?
Regards,
Kevin
d3vnu11 is offline   Reply With Quote