View Issue Details

IDProjectCategoryView StatusLast Update
0016783ScribusScripterpublic2022-04-22 07:23
Reporterwillsonlin Assigned To 
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status newResolutionopen 
OSWindowsOS Version8 
Product Version1.6.0.svn 
Summary0016783: Please making Scripter2 available for use as soon as possible
DescriptionI know Scripter2 is Scribus' new architecture for Scripting.It has been released for many years and I can find introduction on Scribus' offical wiki,even there is an old documentation exists on the web (https://scribus-scripter.readthedocs.org/en/latest/).I think Scripter2 could be easier to hand on for developers switched from InDesign scripting.Unfortunately I can't find a way to access this new feature via existing Scribus releases.So please making Scripter2 available for use as soon as possible, and I can help porting existing Python scripts to the new Scripter.
TagsNo tags attached.
PatchNo

Activities

jghali

2022-04-21 19:46

administrator   ~0049626

Last edited: 2022-04-21 19:47

>> I know Scripter2 is Scribus' new architecture for Scripting

Well it was rather an attempt of a new architecture. This experiment was started during Qt4 times. I don't remember exactly why, but that code could not be ported to Qt5 and we have no man power to port it to Qt5... or Qt6. Currently that code is not in a state of running.

ale

2022-04-22 05:21

manager   ~0049628

afaik, the current scripter is based on code that is very old, unmaintained since it has been published, only used by scribus and no other project, and is very hard to read and understand.

i've tried a few solutions for replacing that part of the code (and modernize the scripter API) and settled on pybind11 which is an amazing piece of software.
i produced a proof of concept, but there is one big issue left: running a script that uses pyqt5 (or pyside2) two times leads to a crash. (there is a ticket for it on github)

ale

2022-04-22 07:23

manager   ~0049629

p.s.: now that i think about it: i'm not sure if it's the scripter or the original scripter2 that depends on that obscure piece of software.

Issue History

Date Modified Username Field Change
2022-04-21 18:05 willsonlin New Issue
2022-04-21 19:46 jghali Note Added: 0049626
2022-04-21 19:47 jghali Note Edited: 0049626
2022-04-22 05:21 ale Note Added: 0049628
2022-04-22 07:23 ale Note Added: 0049629