As mentioned in [1] I do not find a 'new image button' after importing
svg-editor [2] (nor on [2] itself). While this seems an error
ultimately I'd like such a button to integrate with the neui-em theme
[3] I'm using. While this is mostly up to Mario I decided to do some
DIY to learn a bit. I modified the free image at [4] to give [5] which
approximates a neui-em button. I uploaded this into a Palette.svg
tiddler, then added
<<image Palette.svg height:3em width:3em alt:"New SVG Tiddler"
tiddlyLink:"SVG Picture Editor">>
to SidebarButtons. [[SVG Picture Editor]] is a tiddler that just says
<<svgedit>> (the macro from [2]). Works pretty well.
Issues and notes:
1) At first Palette.svg wouldn't scale according to height: and
width:, but crop instead. Same problem as described in [6]. Had a
search and found the answer at [7]. Quoting from there:
>SVG file contained '<svg ... width="32px" height="32px" ...>...</svg>',
>as Inkscape created it. To be properly scaled it should contain '<svg
>... width="100%" height="100%" viewBox="0 0 32 32" ...>...</svg>'.
So I edited Palette.svg along those lines and it works.
Unfortunately SVG-edit inists on saving using the non-scalable syntax,
AFAICS, so any 'internally' created svg tiddler image may be
unscalable...
2) I can only seem to edit an existing SVG image tiddler once without
reloading the whole space (using svg-editor). I.e. I'll open the
tiddler, click edit, make changes to the pic within SVG-edit, click
the tiddler save button: fine. If I try to repeat this sequence,
nothing happens when I try to save. Reloading the space allows makes
the tiddler saveable once more -- but it's not ideal that way.
3) (somewhat off-topic) I can't get the alt:"aTooltipText" syntax for
<<image>> (described in [8]) to work. When I hover over my palette
'button', the tooltip I get is not "New SVG Tiddler" but "SVG Picture
Editor - my_username date_&_time_stamp" which isn't so great. I
checked whether the svg has its own <title>...</title>. It has
<dc:title /> and <dc:title>the_author's_name</dc:title>. I don't know
if these count, but in any case the_author's_name doesn't appear as a
tooltip.
cheers, ~P
[1]
http://groups.google.com/group/tiddlywiki/browse_thread/thread/88b167bc929ab656
[2]
http://svg-editor.tiddlyspace.com/
[3]
http://neui-em.tiddlyspace.com/
[4]
http://www.openclipart.org/detail/21620
[5]
http://www.sendspace.com/file/h5nehr
[6]
http://groups.google.com/group/tiddlywiki/browse_thread/thread/edd60994f5c1ec8/93824e57554892b3
[7]
http://groups.google.com/group/mozilla.dev.tech.svg/browse_thread/thread/bcc7e520e2d8c17b/0c71dcd943b1fabc
[8]
http://macros.tiddlyspace.com/#image