<snip> > > """ > > with python's string (or regexp) libraries you can find where the > > ===== in the frame are; then you use scribus.selectText() to > > select the text... > > > > (if the formatting you want to apply is more complicated, you may > > have to build a simple parser instead of just searching for > > strings...) """ > > > > it won't be easy, but it may be doable :-) > > > > > > have a nice day! > > a.l.e > > How about creating the document in Open Office, applying styles > there, and importing it?
Hi, it's me again. I am kind of getting stuck. Maybe someone here can help me (again)? I tried counting the characters and then using selecttext but I get an index out of range error. I tried stripping whitespace and the counting but then the wrong part of the text was selected. I attached the script, sample text and style template. You will have to change the path to the textfile and template file in the script, unless your username is chantal too :). -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.scribus.info/pipermail/scribus/attachments/20090812/e22cdbdc/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: selecttest.py Type: text/x-python Size: 2059 bytes Desc: not available URL: <http://lists.scribus.info/pipermail/scribus/attachments/20090812/e22cdbdc/attachment.py> -------------- next part -------------- A non-text attachment was scrubbed... Name: agrodokstijltemplate.sla.gz Type: application/vnd.scribus Size: 7528 bytes Desc: not available URL: <http://lists.scribus.info/pipermail/scribus/attachments/20090812/e22cdbdc/attachment.bin> -------------- next part -------------- == chapter 2 == jfsgjhgfs jfgjkasf kjljkfgsa jhfgjh == chapter 3 == fgnbfannfbjaghr
