Re: [svg-developers] About Text

2004-09-21 Thread Philippe Lhoste

[EMAIL PROTECTED] wrote:
 Do you have example?
 thanks in advance

Well, it is in the page I gave and that you gave back:
http://www.xml.com/pub/a/2002/09/11/quint.html

The link demo gives the SVG file:
http://www.xml.com/2002/09/11/examples/TextWrap.svg

The comments at the end of the article gives the location of the 
JavaScript file, which is actually at the same location:
http://www.xml.com/2002/09/11/examples/TextWrap.es

I downloaded both files (neglected to test it before...), dropped the 
SVG file in IE or Mozilla, tested, it works OK (but it is very slow...).

-- 
Philippe Lhoste
--  (near) Paris -- France
--  Professional programmer and amateur artist
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --


 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/
 





Re: [svg-developers] About Text

2004-09-20 Thread wimonsri

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.5emtext: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
lt; and gt; 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/