Converting Scribus script to Inkscape Script

Discussion about writing code for Inkscape.
admoraes
Posts: 2
Joined: Fri May 29, 2015 2:22 am

Converting Scribus script to Inkscape Script

Postby admoraes » Fri May 29, 2015 2:28 am

Hello,

Sorry for my bad english and because I don`t know if it`s a right place for what I will ask:

I`m looking for a script like "Inkscape Generator", but its now unmaintened and doesn`t work on windows. I found "Scribis Generator" (http://www.ekkehardwill.de/sg/) that do same thing on Scribus and work on windows. It is wroten in Python, and has MIT license. I don`t know nothing about program, but Is It possible port this script to Inkscape?

Thanks,

Admoraes

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: Converting Scribus script to Inkscape Script

Postby hulf2012 » Fri May 29, 2015 3:22 am

Hello,

In theory, It's possible.

But it's not easy. I only know a little about python but:
- The script use TKInter (Tk / TcL?) libraries for the GUI (dialogs, buttons). As far as I know the python version that comes with Inkscape. Doesn't come with that libraries. For GUI, Inkscape uses some kind of XML's driven GUI, which is limited. It doesn't allow to choose files from a file explorer.
- When exporting to PDF or other export, the extensions on Inkscape uses some kind of Hack, as far as I understand. It involves to open a second Inkscape's window, or something like that... :roll:

- It will take time and effort... doing it for free??... no comments. ... well, I've seen extensions here in the forum, useful and simple given to the community, with generosity.

However, It's something that many will appreciate, including me.


Forget to say, that there are been proposed other ways to do the same, with more or less success.Please do a search in the forum.
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

admoraes
Posts: 2
Joined: Fri May 29, 2015 2:22 am

Re: Converting Scribus script to Inkscape Script

Postby admoraes » Fri May 29, 2015 4:19 am

Hello hulf2012,

Thank you. I found now a new python script based on Inkscape Generator at https://github.com/bitterjug/inkmerge. I will try it.

Admoraes


Return to “Programming”