I\'m working with Inkscape in cli no (--without-gui
or -z
) to :
hanzi
, pinyin
) ;>
-z
or --without-gui
.Asked on #inkscape
and it come out that currently (Inkscape 0.48.3.1 r9886 (Jan 29 2013)
) doesn't support verb's parameters:
verbs do not take arguments -> you cannot save a file you opened with '-f' under a different name copy the file first (e.g. in the script), and edit and save the copied file
There is a bug confirmed on this topic (see: Bug:Provide scriptable method of saving files).
verbs currently (with stable) always require to open the GUI (even if no interaction is required)
Bug is confirmed Allow suppressing the GUI (-z) when using --verb option(s) and added to whishlist.
Newer version of Inkscape may fix this "issue", currently you can solve it by doing
cp 䖠-x45A0.svg test-union-cli.svg && inkscape -g -f ./test-union-cli.svg \
--select=hanzi --select=pinyin --verb=SelectionUnion \
--verb=FileSave --verb=FileClose
Improvement is on its way lp:~7-eric/inkscape/effectscript:
read the commit log of revision 12388 here https://code.launchpad.net/~7-eric/inkscape/effectscript - this was merged into trunk recently, and AFAIU allows to run boolops verbs via cli without GUI -> likely the next major version of inkscape (0.49) will have better cli support