fesch / Structorizer.Desktop

Structorizer is a little tool which you can use to create Nassi-Schneiderman Diagrams (NSD).
https://structorizer.fisch.lu
GNU General Public License v3.0
65 stars 19 forks source link

Feature request: Command line options for reading a .nsd file and saving it as PNG/PDF/... #1171

Open rpxrpxrpx opened 3 months ago

rpxrpxrpx commented 3 months ago

Hi.

It would be great if there were command line options to instruct Structorizer to read a .nsd file and export a picture or even code.

Example: Structorizer --export-png myfile.nsd (Structorizer should read the .nsd file and export a .png file.)

It would be (among other scenarios) useful for the following: LaTeX documents that include structograms are stored in git repositories and only the .nsd files are checked in. With command line options as proposed above utilities like make could build all required .png files from the .nsd files automatically.

(This feature request is inspired by the transfig utility that transforms .fig files from xfig to lots of other formats.)

Thank you for reading this request.

codemanyak commented 3 months ago

@rpxrpxrpx

It would be great if there were command line options to instruct Structorizer to read a .nsd file and export a picture or even code.

Thank you for your proposal. The possibility to export code via command line parameters has been existing for many years. Have a look at the User Guide. This even includes pseudo code and StrukTeX export, which both allow integration into LaTeX texts. StrukTeX code actually represents LaTeX commands for graphical representation of the diagram (though looking different from the original diagrams as rendered by Structorizer itself).

It should be feasible to provide a command-line ("batch") conversion to picture files in e.g. png or pdf format, too.