[scribus] Scripter 2 examples

john Culleton John at wexfordpress.com
Mon Dec 10 14:58:48 UTC 2012


On Mon, 10 Dec 2012 00:57:20 +0100
JLuc <jluc at no-log.org> wrote:

> Hello,
> 
> I would like to create a script that would read
> a previously created text file with properly taged text content
> and create out of it a scribus file, with proper formating according
> to tags, using predefined layout and styles.
> 
> Since  scripter2 is the future of scribus scripter (isnt ?),
> i'm thinking of using it on scribus 1.5.
> I see that some people are using scripter2,
> so i understand that it works !
> This is encouraging.
> 
> It is however difficult to know how to use it as for now
> since there is almost no documentation and examples.
> 
> So i'm thinking that maybe people that have been effectively using
> the scripter2 would be kind enough to share some key samples of code ?
> 
> Sincerly,
> JLuc
> 
> 
> ___
> Scribus Mailing List: scribus at lists.scribus.net
> Edit your options or unsubscribe:
> http://lists.scribus.net/mailman/listinfo/scribus
> See also:
> http://wiki.scribus.net
> http://forums.scribus.net


For Linux etc. users there are several independent programs that will
translate various strings to other strings, including at the
simplest level sed and awk and for more complex matters there are
lex and yacc and their modern equivalents flex and bison. It may
be that these tools can be used outside of Scribus to do the
conversions you desire. This may save you reinventing the wheel.
All these tools are well documented.

-- 
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: "Create Book Covers with Scribus"
available at http://www.booklocker.com/books/4055.html



More information about the scribus mailing list