Will the Object > Symbols support Objects?

Asked by BobSongs

OS: Windows XP SP3
Inkscape version: Inkscape 0.48+devel r12322

Question: will the Symbols library support "objects" in order to support the addition of future shaping tools?

I'm asking because, as it stands, the current items under "Word Balloons" and "Flow Chart Shapes" do not have the flexibility one might expect:

* The items cannot be broken apart
* Embedded text cannot be removed
* There are no control nodes for user manipulation
(see: http://img824.imageshack.us/img824/5820/flyoutexamplesforinksca.png)

This user would want to add a star with a spoke ratio of 0.383 while retaining its object functionality. But if an object is converted to a path and cannot retain its object properties, then perhaps fly out menus for various tools would solve that.

Thank you.

Question information

Language:
English Edit question
Status:
Solved
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Solved by:
su_v
Solved:
Last query:
Last reply:
Revision history for this message
BobSongs (bobspcrepair) said :
#1

I added a thread proposing fly-out menus for Inkscape where new shapes and variations on current shapes could be supplied as a courtesy to users new and old alike.

Reference: http://www.inkscapeforum.com/viewtopic.php?f=28&t=14049

Revision history for this message
Best su_v (suv-lp) said :
#2

The symbols dialog works based on the SVG <symbol> element -> what gets
inserted into the drawing is similar to Inkscape's clones (SVG <use>
elements). AFAICT this underlying structure won't change: the new
'Symbols' feature is not about adding new parameterized objects (aka
shapes), nor does it automagically implement new shape tools which would
allow to create and edit new parameterized objects (aka shapes) not
defined in the current SVG specification (similar to the existing
circle/ellipse, star/polygon and spiral tool).

References:

SVG 1.1 <symbol>
<http://www.w3.org/TR/SVG11/struct.html#SymbolElement>

Tavmjong Bah's posts about the new feature:
<https://plus.google.com/111969650498055377139/posts/Tz9FxGJENiy>
<https://plus.google.com/111969650498055377139/posts/hcoMb8XhN7E>

Specification in the wiki:
<http://wiki.inkscape.org/wiki/index.php/SymbolsDialog>

Some threads discussing the new feature on the mailing list:
<http://thread.gmane.org/gmane.comp.graphics.inkscape.devel/39202>
<http://thread.gmane.org/gmane.comp.graphics.inkscape.devel/40348>

... and of course plenty of related feature requests for symbol (or
stencil) libraries in inkscape in the bug tracker (those are not yet
updated to reflect the current state in development builds).

Revision history for this message
BobSongs (bobspcrepair) said :
#3

Thank you, ~suv.

"... and of course plenty of related feature requests for symbol (or
stencil) libraries in inkscape in the bug tracker (those are not yet
updated to reflect the current state in development builds)."

I won't harass the dev team for more. However, I am curious about my observations (0.48+devel r12322):

1. Word Balloons and Flow Chart Shapes at this point appear to be uneditable. The symbols cannot be ungrouped. Therefore, removing the words "Think Balloon" (for example) is currently not possible with Inkscape's toolset. I can't get to the nodes using the F2 tool either. The same is true with the "Flow Chart Shapes". No colors can be modified by any means I'm aware of.

2. Logic symbols allow for fill and contour colour changes.

If this is unintentional, I can post a bug report. If this is how that library of shapes and balloons is supposed to work, I'll mark this thread Problem Solved.

Revision history for this message
BobSongs (bobspcrepair) said :
#4

Thanks ~suv, that solved my question.

Revision history for this message
su_v (suv-lp) said :
#5

Hi BobSongs (sorry for replying late):

On 2013-05-14 01:35 +0100, BobSongs wrote:
> (…) However, I am curious about my observations (0.48+devel r12322):
>
> 1. Word Balloons and Flow Chart Shapes at this point appear to be
> uneditable. The symbols cannot be ungrouped. Therefore, removing the
> words "Think Balloon" (for example) is currently not possible with
> Inkscape's toolset. I can't get to the nodes using the F2 tool either.
> The same is true with the "Flow Chart Shapes". No colors can be modified
> by any means I'm aware of.

'Symbols' instantiated in the current document can be edited in two ways:
1) keep <symbol> feature: use the commands in menu 'Object > Symbol' to
convert the symbol to a group, edit the group (aka its members), and
finally convert the group back to a symbol.
2) "brute force": unlink (like a clone), and edit at will with regular
tools.

With regard to editing a placeholder text e.g. in the 'Word Balloon'
symbols, a proposed enhancement (not yet implemented) might come handy
in the future:
<quote>
Generic symbols: It should be possible to extend the Symbol dialog to
include <g> elements as well as <symbol> elements. A group could be
marked as a symbol by adding an "inkscape:symbol" tag. In this way one
can put place holders in for things like text: (…)
</quote>
<http://wiki.inkscape.org/wiki/index.php/SymbolsDialog#Future_Enhancements>

> 2. Logic symbols allow for fill and contour colour changes.

AFAIU the 'Logic Symbols' and the 'Symbol Signs' (which belong to the
original set contributed by Tavmjong Bah) have been carefully crafted to
allow recoloring instances of a symbol individually, whereas the symbols
of the libraries added later by Martin Owens do not support this (they
keep the original color no matter what styes are applied to the inserted
symbol). Both types IMHO seem legit use cases of symbols / symbol
libraries, and the details depend on / vary with the intent and skills
of the author.

The wiki page about the new 'Symbols' dialog & symbol libraries explains
briefly how styles for symbols can be defined (based on SVG styling
rules), i.e. how symbols can have a default style, and may have "fixed"
or flexible attributes too (allowing to change the style without
unlinking the instanciated symbol (like clones), or converting it to
group, edit objects inside the group and converting back to symbol). The
underlying basics are the same SVG styling rules as are already known to
Inkscape users for clones:

<quote>
In order to allow styling of symbols from within Inkscape, styling
should be kept out of <symbol> elements as much as possible. It is then
possible for a symbol to inherit the styling of the <use> element that
references it. In order to provide a default style to a <symbol> one can
either provide a general default style in the root <svg> element of the
library or add a symbol specific default style by putting a style string
in the "inkscape:symbol-style" attribute inside the symbol element. When
a symbol is selected in the Symbol dialog, the style will be added to
the <use> element in the clipboard.
</quote>
<http://wiki.inkscape.org/wiki/index.php/SymbolsDialog#Symbol_Libraries>

Known issues are listed here:
<http://wiki.inkscape.org/wiki/index.php/SymbolsDialog#Bugs.2FIssues>

> If this is unintentional, I can post a bug report. If this is how that
> library of shapes and balloons is supposed to work, I'll mark this
> thread Problem Solved.

From my point of view, it is intended behavior that
1. symbols need a separate set of tools for editing ('Convert symbol to
group, Convert group to symbol, or 'Unlink').
2. inserted symbols may be (or may not be) individually styled
(partially or full wrt to objects and to individual objects' fill and/or
stroke properties), depending on the symbol definition in the symbol
library.

Revision history for this message
BobSongs (bobspcrepair) said :
#6

Excellent! Thank you ever so much. I look forward to 0.49.

I appreciate the answer and I'll give the wiki page a more thorough read.