On Fri, Sep 10, 2010 at 9:41 AM, Terry Brown <[email protected]> wrote: > On Fri, 10 Sep 2010 06:20:40 -0700 (PDT) > "Edward K. Ream" <[email protected]> wrote: > >> Performance of post production (inkscape) code is not good. I'll see >> where the bottlenecks are. > > I think Inkscape takes an annoyingly long time to instantiate its GUI, so > that calls the edit_svg() are slow to get started. I'd assume that's beyond > the scope of the Leo documentation process, although the way it's been going > so far I'm not sure :-)
germane? http://pypi.python.org/pypi/svgwrite/0.0.0 "svgwrite 0.0.0 A Python library to create SVG drawings. svgwrite Abstract A Python library to create SVG drawings. a simple example: import svgwrite as svg drawing = svg.drawing('test.svg') drawing.add(svg.line((0, 0), (10, 0), color=svg.rgb(0, 0, 16))) drawing.add(svg.text('Test', insert=(0, 0.2)) drawing.save() " > > I'd work around that with a workflow where all the SVGs are created first, > with calls to make_svg(), and then you just work through editing them in > Inkscape, probably loading them through Inkscapes file/load menu. > >> I don't like the drop shadows. I disabled them by disabling the call >> to: >> >> self.enable_filters(svg_fn, True) >> >> in edit_svg. This will be a setting. > > The correct way would be to just delete the drop shadow from the template.svg > (i.e. edit template.svg in Inkscape), and leave the disable/enable filters in > place to (a) avoid the slow rendering during edit when there are effects like > drop shadow in use, and (b) not leave cruft in the SVG file, not that that > really matters in this case. > >> It will be best to resolve all these picky details before generating >> slides en masse. That way everything will be uniform in the final >> slideshow. > > True, the possibilities for automated changes to the SVGs after they've been > edited by hand for position callouts are limited. There could be an "add to > existing" mode, and a "replace text in existing in the same order they were > done before" mode (which could also add to existing if there were more in the > new list than the old). > > I have thought of a better possibly design for the callout balloon template / > resizing system, but it wouldn't make a huge difference to how things work / > look. > > Cheers -Terry > >> I hope to finish this all today. That may be a stretch. >> >> Edward >> > > -- > You received this message because you are subscribed to the Google Groups > "leo-editor" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/leo-editor?hl=en. > > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.
