When you use inline SVG in a text/vnd.tiddlywiki tiddler you are actually
just taking advantage of the way that TiddlyWiki wikitext parsing allows
for HTML elements. TiddlyWiki disables inline event handlers and script
tags for the reasons that pmario states: we want to make it impossible to
construct a wikitext tiddler that is dangerous for users to import.

One consequence of the above is that it is possible to mix TW widgets
within inline SVG images; for example, generating axes lines with the
`<$list>` widget.

When you use an SVG tiddler with type image/svg+xml then the source text
isn't parsed as wikitext (and hence inline event handlers are allowed);
instead it is displayed in an `<img>` tag, which essentially behaves as a
sandboxed iframe. As such, these SVG images can't access CSS styles defined
in the main page.

BJ's example of a link to "#tiddlertitle" targeted at  _parent takes
advantage of TiddlyWiki's global handling of fragment IDs: if the browser
fragment ID changes then TiddlyWiki steps in and performs a navigation to
the indicated tiddler(s).

Note that it is possible to use the permaview syntax to link to multiple
tiddlers at once. This example opens a story consisting of the three
tiddlers "Three", "Two" and "One", and navigates to "One":

<a xlink:href="#One:Three Two One" target="_parent"
  xlink:title="This is a link title in SVG!">

Best wishes

Jeremy

On Fri, Oct 3, 2014 at 4:28 PM, Derivation Bud <derivation....@gmail.com>
wrote:

> BJ,
> Thanks , that is the answer I needed. :)
>
> Now I know that  I want to create HTML5_inline_SVG because it's the way to
> go for a better integration with TW.
>
> I see 3 ways out:
> * Another tool than inkscape to draw.
> * A converter plugin in inkscape.
> * A TW widget SVG->HTML5
>
> After a quick search I found:
> https://github.com/kivivuori/svgger ?
>
> Suggestions are welcome
>
> David
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to tiddlywiki+unsubscr...@googlegroups.com.
> To post to this group, send email to tiddlywiki@googlegroups.com.
> Visit this group at http://groups.google.com/group/tiddlywiki.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jeremy Ruston
mailto:jeremy.rus...@gmail.com

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to