I think I have finished x-verbs feature
Patched Inkscape had successfully pass some complicated tests as part of
my project.
yaml script had 1099 lines, inkscape opened 17 svg files, crop and saved
as svg 126 files and exported 43 png files
It looks stable, but I'm not sure for 100% ;)
branch:
Hi Dmitry,
This looks really interesting (and there's quite a few files there
too). For this kind of output where it's not an svg file, we've
typically recommended writing python extensions as they're easier to
include in builds, release new versions out side of the inkscape
release and support.
Given that you've already got this solution working for your own needs.
I on't suppose you'd be interested in translating it to python? There's
already a yaml library available and inky.py extension module provides
access to all the svg element tree.
But I understand this is asking a lot considering all the work you've
put in to the C version in your branch.
Best Regards, Martin Owens
On Tue, 2016-04-26 at 01:32 +0600, Dmitry Zhulanov wrote:
> Hi, all!
>
> Im a game developer and using the inkscape for layouting my game
> screens. Loading_screen_layout.svg one of them. It have g with id
> pause_button and rect with id sandclock_bound which I use for
> animation
> placement.
>
> The verbs feature which inkscape already have is have some
> limitations.
> The MAX_PATH for example. Also some verbs required user interactions,
> so
> I need some eXtended verbs here.
>
> Using python script I have load layout as xml and collecting
> element-id's of interactive elements with "onclick" attribute, for
> example. Using this element-id list I generate .yaml, which is some
> sort
> of batch file. Here is the .yaml file which is used with Inkscape to
> clean up layout and put button image in separated file with
> pause_button.svg filename. Also I count undoable actions to restore
> state generating verb EditUndo.
>
> command: inkscape -B loading_screen_layout.yaml
>
> ----------- loading_screen_layout.yaml ---------
> run:
> - xverb-id: XFileOpen, loading_screen_layout.svg
> - xverb-id: XUndoLabel, fresh_document
> - xverb-id: XSelectElement, pause_button
> - verb-id: EditInvert
> - verb-id: EditDelete
> - verb-id: FitCanvasToDrawing
> - xverb-id: XFileSaveAs, pause_button.svg # save with stupid name
> - xverb-id: UndoToLabel, fresh_document
>
> - xverb-id: XSelectElement, pause_button
> - verb-id: EditDelete
> - xverb-id: XUndoLabel, fresh_document
>
> - xverb-id: XSelectElement, sandclock_bounds
> - verb-id: EditDelete
> - xverb-id: XUndoLabel, fresh_document
>
> - xverb-id: XFileSaveAs, loading_screen_layout_release.svg # save
> with stupid name
> - verb-id: FileQuit
> ------------------ CUT HERE --------------------
>
> I guess you can get readonly access on my launchpad page.
>
https://code.launchpad.net/~dmitry-zhulanov/+junk/inkscape-xverbs
>
> Code is tested with mingw+windows7+VS2010 sdk.
>
> If you would like to merge the feature, I will clean up code to
> conforming code style, remove printf's & so on
>
> Any help or advice are appreciated!
> P.S. sorry for my bad english :)
>
> Best Regards,
> Dmitry Zhulanov
>
> -------------------------------------------------------------------
> -----------
> Find and fix application performance issues faster with Applications
> Manager
> Applications Manager provides deep performance insights into multiple
> tiers of
> your business applications. It resolves application problems quickly
> and
> reduces your MTTR. Get your free trial!
>
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _______________________________________________
> Inkscape-devel mailing list
> Inkscape-devel(a)lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/inkscape-devel