Do you have example? thanks in advance
Philippe Lhoste <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] cc: 09/20/2004 02:24 Subject: Re: [svg-developers] About Text PM Please respond to svg-developers [EMAIL PROTECTED] wrote: > i try to do by http://www.xml.com/pub/a/2002/09/11/quint.html > <?xml version="1.0" encoding="utf-8"?> > <svg xmlns="http://www.w3.org/2000/svg" > xmlns:text="http://xmlns.graougraou.com/svg/text/" > xmlns:a3="http://ns.adobe.com/AdobeSVGViewerExtension/3. > a3:scriptImplementation="Adobe" onload="TextWrap._init()" > <text:wrap xmlns:text="http://xmlns.graougraou.com/svg/text/" > x="10.5" y="47.5" width="440" style="font-family:arial; > font-size: 11px; > text-rendering: optimizeLegibility; > line-interval: > 1.5em"><dddddddddddddddddddddddddddddddddddddddddddd><text:wrap> > > </svg> > > i do something wrong. can you suggest me? > thanks in advace Hi wimonsri. I see several problems in the sample you gave: 1) <dd...dd> is incorrect: it is neither a valid XML tag (which it shouldn't be anyway) nor a valid XML text (< and > should be replaced by < and > If you don't need them, just drop them). 2) You should put spaces in your test text (sic). AFAIK, JavaScript based text wrappers split lines on word limits. They don't split words, first because computing graphical length of text fragments is time intensive, second because to do it right, we should use complex hypenating rules which are dependent on the language. Even without that (SVG 1.2 skips this problem...), the first problem is enough to keep long words as is, even if this is longer than the defined text width. 3) I don't see any JavaScript in you example. You should either paste the code in your SVG file, or reference it using something like: <script type="text/ecmascript" xlink:href="TextWrap.js"/> if you plan to use text wrapping in several of your SVG files. -- Philippe Lhoste -- (near) Paris -- France -- Professional programmer and amateur artist -- http://Phi.Lho.free.fr -- -- -- -- -- -- -- -- -- -- -- -- ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/1U_rlB/TM --------------------------------------------------------------------~-> ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/