Hi,
I spent many hours trying to make this work with no success!! But by chance, I tried again a few months later (tonight) and finally got it. So I thought I might as well post a small message here for those of you in a similare situation. My problem was simply that I wasn't understanding what is needed in a minimal way to make all this work. Here is how I see all this, and how it has allowed me to make this work.
1) get the javascript file http://www.xml.com/2002/09/11/examples/TextWrap.es and put it in the same folder as your svg file where you are tying to do text wrap
2a) If you want to test the tutorial file, just download it, stick it in the same folder as the javascript file of point 1) and launch the svg file -> it works.
2b) If you want to try using the text wrap in another svg doc, you need to include the following things in your svg doc:
- you will need to add the following namespaces to the first <svg> tag of your document:
xmlns="http://www.w3.org/2000/svg" xmlns:text="http://xmlns.graougraou.com/svg/text/" xmlns:a3="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/" a3:scriptImplementation="Adobe" onload="TextWrap._init()"
- you will need to add a definition to your code: <defs>
<script type="text/ecmascript" xlink:href="TextWrap.es" a3:scriptImplementation="Adobe" />
</defs>
With these to things, you can simply use:
<text:wrap x="20" y="20" width="100">your text</text:wrap> and it works great!!! That's how I made it work. Now you can start playing around with all the rest.
Hope this can help someone who is stuck like I was...
Dj Jay
PS
One problem I have already seen: if a word is longer than the width of the wrap-box, then Adobe's SVG viewer (v3.0) just get's stuck, and therefore youre browser too... :(
|