-
Notifications
You must be signed in to change notification settings - Fork 178
Hi there,
I have a use case for SOZI where I frequently add "interactivity" to a big SVG map. As the contents of the SVG map do only change in minor parts (e.g. text contents within a frame but not any frame location in the map), I was wondering if I could skip the editing using the SOZI EDITOR APPLICATION. I'd rather use a kind of predefined configuration which I apply by using e.g. a command line interface to SOZI.
Is such a command line interface already provided? Or maybe, another kind of automation interface to tell SOZI to apply the same kind of configuration whenever re-creating a presentation?
Here, you see a concept image where I show the different steps from the original SVG file read-in (on the left) until the resulting presentation HTML file (on the right). Inbetween, I use Inkscape to pre-configure the SVG image and SOZI to create the frames and zoom levels:
The "CREATOR" on the bottom of the concept image is not using the editor but rather a command line interface (CLI) to tell SOZI how to prepare the presentation HTML file. This would be my request.
Any ideas how use SOZI in a sort of automated / preconfigured way?
All reactions
Replies: 3 comments
Thanks for suggesting this use case. Currently, Sozi is not usable from the command line but I agree that there are common operations that would not need the GUI. See #585 for another example.
As the contents of the SVG map do only change in minor parts (e.g. text contents within a frame but not any frame location in the map)
In this specific situation, a workaround would be to make a copy of the original JSON file, with the name of the new SVG.
- Create
first-presentation.svgwith Inkscape. - Open
first-presentation.svgwith Sozi and create some frames. The presentation data are saved infirst-presentation.sozi.json. - Modify
first-presentation.svgwith Inkscape and save it assecond-presentation.svg. - Duplicate
first-presentation.sozi.jsonassecond-presentation.sozi.json. - Open
second-presentation.svgin Sozi.
All reactions
I have a similar request:
I am changing my svg's frequently and want to rebuild all presentations nightly in a Jenkins Pipeline. It would be great to have Command Line Parameters to just call sozi with the svg and it just build the html without opening the Editor (in fact I do not even have X in my Jenkins environment)
Something like
sozi --build my.svg
All reactions
-
👍 1
I would be interested in this feature as well. Shouldn't bee too hard to implement!?