[svg-developers] Re: text selector in ASV

2011-10-19 Thread Holger Jeromin
Francis Hemsher schrieb am 18.10.2011 22:16:

 Thomas.O.Smailus@... wrote:
 Yeah, this is ancient... but...
 Did you ever get a solution to this:
 A way to turn off the default ASV text highlighting functionality?

Perhaps you could place an transparent rect over the text to grab the
events :)

 Peter Sorotokin (Jan 2002) wrote:
 You need to do this:
 evt.preventDefault()
 in all your event handlers (mousedown, mouseup, mousemove).
 Peter
 I also use this in HTML5 documents, where SVG is inline.

Not compatible with ASV :-)

-- 
regards
Holger Jeromin





-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-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/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
svg-developers-dig...@yahoogroups.com 
svg-developers-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] Re: Roman numerals in SVG

2011-10-19 Thread ddailey
 

The origins of the lines as a typographic trick probably bear some
shared history with the use of underlining book titles as an
authorial hint to the typesetter that the text should be italicized,
though two generations of English teachers have since taught students
to underline book titles, even though they were supposed to be
italicized. In my case, though, I really did need the
overlineunderline option: 

http://cs.sru.edu/~ddailey/svg/2011/simplePuns.svg [1] 

This doesn't work in FF or Opera, but it does in ASV. 

cheers 

David
 On Sun 10/16/11 12:35 PM , Kenneth N nelli...@gmail.com sent:
Works in Mac Safari 5.1 as well, but I don't believe that that is
the proper way to present Roman Numerals. Just display them as upper
case in a serif font.
 I remember back in grade school our teacher would write out the
upper-case letters of the Roman numerals and then draw the two lines
across them all, but I think this was just a short cut to drawing
serifs on all the letters. Frankly, I don't think even the serifs are
necessary if context makes it clear that Roman numerals are being
presented.
 â€Ken
 --- In , Cameron McCormack wrote:
 
  Hi David,
  
  On 15/10/11 1:34 PM, David Dailey wrote:
   I assumed I would just apply text-decoration=overline,
underline or two
   instances of text-decoration, one with overline and one with
underline to
   make Roman numerals, but this appears not to be the case.
  
   I need both the overline and the underline for what I'm doing.
There's a
   Unicode range for these, but most fonts seem not to include the
distinctive
   pair of lines.
  
  It should be just text-decoration=overline underline, according
to CSS 
  3 Text: http://dev.w3.org/csswg/css3-text/#decoration [3]
  
  That seems to work in Chrome, at least. (Didn't test anything
else.)
 
  


Links:
--
[1] http://cs.sru.edu/~ddailey/svg/2011/simplePuns.svg
[3] http://dev.w3.org/csswg/css3-text/#decoration
[5]
http://groups.yahoo.com/group/svg-developers/post;_ylc=X3oDMTJxbzluY3ZvBF9TAzk3MzU5NzE0BGdycElkAzEyOTg0MjEEZ3Jwc3BJZAMxNzA2MDMwMzg5BG1zZ0lkAzY1MjE3BHNlYwNmdHIEc2xrA3JwbHkEc3RpbWUDMTMxODc4MjkyMg--?act=replyamp;messageNum=65217
[6]
http://groups.yahoo.com/group/svg-developers/message/65214;_ylc=X3oDMTM2aWxndjEzBF9TAzk3MzU5NzE0BGdycElkAzEyOTg0MjEEZ3Jwc3BJZAMxNzA2MDMwMzg5BG1zZ0lkAzY1MjE3BHNlYwNmdHIEc2xrA3Z0cGMEc3RpbWUDMTMxODc4MjkyMgR0cGNJZAM2NTIxNA--
[7] http://groups.yahoo.com/group/svg-developers
[8]
http://global.ard.yahoo.com/SIG=15o5elmpq/M=493064.14543979.14562481.13298430/D=groups/S=1706030389:MKP1/Y=YAHOO/EXP=1318790122/L=d7e1d4fa-f814-11e0-a34e-f736b19dc54a/B=n0BeEdGDJGA-/J=1318782922625039/K=OjowfBafIiznVRJshc.vJw/A=6060255/R=0/SIG=1194m4keh/*http://us.toolbar.yahoo.com/?.cpdl=grpj


[Non-text portions of this message have been removed]





-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-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/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
svg-developers-dig...@yahoogroups.com 
svg-developers-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] SMIL -- still not yet!

2011-10-19 Thread ddailey
 
 ON MON 10/17/11 11:56 AM , JOHN DELACOUR  

Please point me to some SMIL animations that are not jerky in
Firefox 
 and Opera [snip] 
http://cs.sru.edu/~ddailey/svg/2011/Galorie.html [1] 

Generally, support for SMIL animation across browsers follows this
ordering: 

(Opera, ASV, FF, Chrome, Safari, IE9), though there are contexts in
which that ordering is warped. 
cheers 

David 
  . 
 


Links:
--
[1] http://cs.sru.edu/~ddailey/svg/2011/Galorie.html


[Non-text portions of this message have been removed]





-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-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/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
svg-developers-dig...@yahoogroups.com 
svg-developers-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] SMIL -- still not yet!

2011-10-19 Thread Raks A
I downloaded Safari and for me its jerky and wobbly in Safari ( on Windows
XP ) as well
There is no difference in jerkiness between Safari and Firefox/Chrome

Did you try Safari on a Mac ? Are you trying FireFox and Safari on the same
CPU and monitor ?

- Rakesh

On Mon, Oct 17, 2011 at 9:26 PM, John Delacour j...@bd8.com wrote:

 **


 At 17:40 +0530 17/10/11, Raks A wrote:

 Its jerky even in Flash on Windows, never tried though on a Mac
 So does not look like it's a SVG implementation issue
 
 The jerki-ness is probably because of the animation spread over 9 seconds
 which is far too slow for the pixel size of the monitor

 As I said, it is fine in Safari and not in the other browsers, so it
 is obviously a browser issue. I took that URL as one simple example.
 Please point me to some SMIL animations that are not jerky in Firefox
 and Opera and tell me why this particular example works in Safari and
 not in Opera or Firefox.

 JD

 



[Non-text portions of this message have been removed]





-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-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/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
svg-developers-dig...@yahoogroups.com 
svg-developers-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



[svg-developers] Re: SMIL -- still not yet!

2011-10-19 Thread Robert Longson
--- In svg-developers@yahoogroups.com, John Delacour JD@... wrote:
 In Firefox there is jerkiness and besides, the font color remains 
 black instead of changing as it should.  The relative movement and 
 change of shape of the characters is worst in Opera, and in Safari 
 everything seems to happen as it should.
 

Hi,

Firefox does not support the deprecated animateColor element. Just replace 
animateColor by animate and the font colour will animate.

Best regards

Robert






-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-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/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
svg-developers-dig...@yahoogroups.com 
svg-developers-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] SMIL -- still not yet!

2011-10-19 Thread Erik Dahlstrom
On Tue, 18 Oct 2011 14:20:40 -0400, John Delacour j...@bd8.com wrote:

 At 14:01 -0400 17/10/11, Erik Dahlstrom wrote:


 On Mon, 17 Oct 2011 03:52:58 -0400, John Delacour j...@bd8.com wrote:

   ...
  http://www.w3.org/TR/SVG/images/animate/anim01.svg
   ...

 The jerkiness you see is due to selecting different font-sizes, it's  
 not
 a SMIL issue. You'd get a smoother animation if the same glyph outlines
 were used all the time.

 Thanks Erik, but that doesn't explain why it has no jerkiness in
 Safari, and the code doesn't actually referto font-size in the
 animation.

Maybe I wasn't clear enough: any transform may affect the size of the text  
on screen. Now, the browser knows this, but there are (at least) two ways  
you can select the glyph outlines - before or after the transforms have  
been applied, so in one case you extract glyph outlines at size 14px and  
then scale those, and in the other case if you had a scale(2) transform  
you might extract the outlines at actual fontsize 28px. Subpixel fontsizes  
combined with this can lead to a sort of staircase effect, as seen in some  
browsers. This was mentioned in the talk by Google Docs at SVG Open the  
other day,  
http://svgopen.org/2011/registration.php?section=abstracts_and_proceedings#paper_52.

The solution that was proposed was to use  
text-rendering=geometricPrecision to mean that you want the smoothly  
scaled transition. However, this doesn't yet solve the problem since that  
fix has not yet been made in all the different browsers. Note that  
geometricPrecision can lead to text that is harder to read, and the spec  
says that by default more importance should be given to text legibility,  
see http://www.w3.org/TR/SVG11/painting.html#TextRenderingProperty.

A workaround could be to convert the outlines to paths e.g in Inkscape,  
and then animate those.

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed




-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-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/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
svg-developers-dig...@yahoogroups.com 
svg-developers-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [svg-developers] normalizedPathSegList

2011-10-19 Thread yannick . bochatay
Hi,
I wrote a partial javascript workaround for the unimplemented 
normalizedPathSegList property :
http://jsfiddle.net/ybochatay/AtTND/3/ or https://gist.github.com/1297684
It's not the normalizedPathSegList property as described by the W3C but a 
function to convert paths with only M,L,C and Z segments.
You can set the degree of Bezier Curves to approximate arcs (1 will produce L 
segments, 2 Q, 3 C), and the defaultFlatness.
Regards,

Yannick Bochatay
http://ybochatay.fr

- Mail original -
De: yannick bochatay yannick.bocha...@free.fr
À: svg-developers@yahoogroups.com
Envoyé: Mercredi 12 Octobre 2011 15:00:53
Objet: [svg-developers] normalizedPathSegList






Hi, 
I try to write a function to update points of a path from a transformation 
matrix. It's all ok except for elliptical arcs : 
I can't find the correct coefficients for r1 r2 and angle. 
Is it simplier to approximate arcs with bezier curves, like the 
normalizedPathSegList property would do (but not implemented yet) ? 
I wrote an example at http://jsfiddle.net/s32LX/, but I've put the code below 
anyway. 
Best regards, 

Yannick Bochatay 
http://ybochatay.fr 

SVGPathElement.prototype.mtx2attrs = function(mtx) { 

var seg,letter,point,pt={}, 
angle = Math.atan2(mtx.b, mtx.a), 
svg = this.ownerSVGElement, 
list = this.pathSegList, 
i=0, N = list.numberOfItems; 

/* this.rel2abs(); function that change relative paths to absolute */ 

for (;iN;i++) { 
seg = list.getItem(i); 
letter = seg.pathSegTypeAsLetter; 

['','1','2'].forEach(function(ind) { 

if (seg['x'+ind] === undefined  seg['y'+ind] === undefined) { return; } 

if (seg['x'+ind] !== undefined) { pt['x'+ind] = seg['x'+ind]; } 
if (seg['y'+ind] !== undefined) { pt['y'+ind] = seg['y'+ind]; } 

var point = svg.createSVGPoint(); 
point.x = pt['x'+ind]; point.y = pt['y'+ind]; 
point = point.matrixTransform(mtx); 

seg['x'+ind] = point.x; 
seg['y'+ind] = point.y; 
}); 

if (angle!==0  (letter === 'H' || letter === 'V')) { 
this.pathSegList.replaceItem( this.createSVGPathSegLinetoAbs(seg.x,seg.y) , i 
); 
} 
else if (letter === 'A') { 
/*what to do in that case ?? 
seg.r1 = ? 
seg.r2 = ? 
seg.angle+= angle ? 
*/ 
} 
} 
}; 

 




-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-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/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
svg-developers-dig...@yahoogroups.com 
svg-developers-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



[svg-developers] Any Maor Advantages of SVG over CSS3 animation

2011-10-19 Thread Raks A
Hi,

Well I have been using SVG SMIL for all of my animation needs and have not
even studied CSS3 animations in depth.
But the more I read about CSS3 animations it seems to be able to do almost
everything that SVG is capable of
And its been hard to convince people to use SVG

Are there examples of animations which is possible to do in SVG but cannot
be achieved with CSS3
Or are any major advantages of SVG animations over CSS3 animation

All I find is that SVG text is more readable, though it could be because of
my experience with SVG

- Raks


[Non-text portions of this message have been removed]





-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-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/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
svg-developers-dig...@yahoogroups.com 
svg-developers-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/