Provide a python script to dia on the command line

2014-09-11 Thread Martin Metzker
Hello list, while exploring ways to generate beautiful(TM) PDFs from dia diagrams (cf. https://mail.gnome.org/archives/dia-list/2014-August/msg6.html), I noticed there isn't an acceptable way of telling dia to execute a python script from the command line. Working with the python consol

Fwd: little problem

2014-09-11 Thread George Georgalis
resending without strace output... build is successful but the binary fails... -- Forwarded message -- From: George Georgalis Date: Wed, Sep 10, 2014 at 9:30 AM Subject: Re: little problem To: discussions about usage and development of dia reply inline.. On Tue, Sep 9, 2014 at

Re: Provide a python script to dia on the command line

2014-09-11 Thread Hans Breuer
Hi Martin, Am 11.09.2014 um 12:55 schrieb Martin Metzker: [...] I can "dia -i foo.py" to make dia execute foo.py. The script is executed _after_ all modules have been loaded, right before handle_all_diagrams() is called. (This allows using dia's python capabilities to modify diagrams right before

Building Dia (was: Fwd: little problem)

2014-09-11 Thread Hans Breuer
Am 11.09.2014 um 19:21 schrieb George Georgalis: resending without strace output... build is successful but the binary fails... Reading your log and modification I woudn't say the build was successful. The main problem seems to be that you are using an outdated source package of Dia. But see b

Re: how do I set a default line width

2014-09-11 Thread Hans Breuer
Am 10.09.2014 um 16:52 schrieb gottl...@nyu.edu: On Wed, Sep 10 2014, gottl...@nyu.edu wrote: I was able to set a default pointsize by double clicking the "T" button. When I tried this for the "line" button, I see that I can only change the absolute start/end gap. This is by design. Properties

Re: Provide a python script to dia on the command line

2014-09-11 Thread Martin Metzker
Hi Hans, I'm having "dia_is_interactive = FALSE" if the -i option is provided, however I already have half a mind to remove this limitation, but there are implications to consider first. Could elaborate a bit more about the implications? Or is it just that you don't have a use case yet? Ther

Re: how do I set a default line width

2014-09-11 Thread gottlieb
On Thu, Sep 11 2014, Hans Breuer wrote: > Am 10.09.2014 um 16:52 schrieb gottl...@nyu.edu: >> On Wed, Sep 10 2014, gottl...@nyu.edu wrote: >>> I was able to set a default pointsize by double clicking the "T" button. >>> >>> When I tried this for the "line" button, I see that I can only change >>>

Re: Building Dia (was: Fwd: little problem)

2014-09-11 Thread George Georgalis
Hi Hans, Thanks. My version choice was based on: https://wiki.gnome.org/Apps/Dia/Download Latest stable release Version 0.97.2 is now available. ... First you should get an up-to-date version, for stable use > git clone git://git.gnome.org/dia > and > git checkout -b dia-0-97 -