[scribus] Scripts preferences ?

Gregory Pittman gpittman at iglou.com
Tue Jun 9 18:21:08 UTC 2020

On 6/9/20 12:53 PM, JLuc wrote:

> As for now, the autotypo can be both. It's a transformer.
> Answering the 5 dialogs to set the parameters each time is tedious because its allways the same for me
> and i use this script a lot now it exists !
> So i added a new variable do_ask that defaults to True in the distributed script.
> https://github.com/JLuc/autotypo/blob/master/autotypo.py#L42
> When do_ask, each dialog pops and asks for a choice.
> But do_ask can be manualy edited to False, which results in the script not asking but using the defaults values.
> That still feels a bit of a hack, but it fits perfectly my needs
> and it makes it easier, at least for some users, to use the script more efficiently.

HI JLuc,

One of the great benefits of what you've done is to show others how to modify an existing script to their own needs, either by adding features or streamlining its use. 
For me, I have always had an easier time in learning some programming language when I can modify something that already exists to my own needs. For Scribus mail list users, they know they can get help with things like this.
This is how the original Autoquote.py began, by someone asking on the mail list if it were possible to automatically convert typewriter quotes to typographic quotes -- seemed like a very interesting problem to me. I started out with English style quotes, figured out how to parse the contents of a text frame, then the logic to use the character preceding or following a quote to decide which to replace it with. After that, there was of course a request for doing the same for other languages, causing me to do a lot of research into which language uses which quotes (far more complicated than I would have guessed). Then you came in to add some other features for French typography...

So users know they have a choice of playing with or modifying a script themselves, or just come to the list to ask for help.


More information about the scribus mailing list