[Scribus] Looking for certain scripting functions
Eilert
eilert-sprachen
Thu Dec 9 08:38:40 CET 2004
Hi,
thanks for the link. But even here, I can't find something useful for
this kind of work.
>>the website and wondered if there is a GetParagraphText() and a
>>GetParagraphStyle() function or something like that enabling me to
>>identify a certain paragraph and its style in a text frame.
>>these texts. Very easy if you have such functions for that.
> not so easy, believe me ;)
Not so easy to implement such functions, or not so easy to apply them?
My idea was just to make two loops:
browse all frames
browse all paragraphs
if paragraph's style == theOneI'mLookingFor
getText of this paragraph
getPageNumber of this frame
add as new entry to table of contents
I have no idea how styles and paragraphs are stored in Scribus, but once
you have a getParagraphStyle() and getParagraphText() and a way of
jumping from one frame to the next and from one paragraph to the next,
what else would you need?
> but stay tuned - I've got LoC workaround for Scribus 1.2x in progress.
:-) What's LoC? Why workaround?
> It works hardcoded in my devel-desktop. Now I need to find time to
> stabilize it. (But the time, you know...)
Yes, time... :-) But that's the advantage over commercial software. So
many projects have been spoiled by an impatient marketing - best example
is $THEBIGEVAL in Redmond :-)
Rolf
More information about the scribus
mailing list