Re: [svg-developers] Right-click menus in SVG

2008-09-10 Thread Erik Dahlström
On Tue, 09 Sep 2008 22:09:03 +0200, John C. Turnbull [EMAIL PROTECTED] wrote: Forgive me if this is a bit obvious but I notice that when viewing an SVG in a browser, the browser seems to control what happens when the right mouse button is clicked with standard browser functionality. So does

[svg-developers] Re: Right-click menus in SVG

2008-09-10 Thread Andreas Neumann
Hi JCT, You can use evt.preventDefault(); at the end of the function that is triggered by the event to suppress the default context menu of the browser. You'd have to write the right-click context-menu yourself then. Maybe someone could write a wrapper around the various implementations of

Re: [svg-developers] Insert Chinese ideographic writing in svg file

2008-09-10 Thread Jonathan Chetwynd
Fulio, mileage may vary but this works for me in Opera: svg text moon: #x6708; /text /svg obviously you'll want to improve on this in a number of ways... best wishes Jonathan Chetwynd [EMAIL PROTECTED] http://www.openicon.org/ +44 (0) 20 7978 1764 On 9 Sep 2008, at 20:37, Fulio Pen

[svg-developers] Re: Insert Chinese ideographic writing in svg file

2008-09-10 Thread bjorsq
Hi Fulio, The code you posted has no chance of working in SVG because innerText is not part of the SVG DOM - you need to first clear all the children of the group, then create and append a new text element to it. Also, your function is not called in the page, so has no chance of firing - I would

[svg-developers] Re: Non-scalable text labels in scalable graphics?

2008-09-10 Thread gfc22
Thanks Peter, That looks good for what I asked for. But unfortunately I also want some lines to remain the same width under scaling. So I've gone ahead and excluded the relevant texts and lines from the scaled group, then computed and assigned their required new coordinates after every

RE: [svg-developers] Re: Non-scalable text labels in scalable graphics?

2008-09-10 Thread Dailey, David P.
My first thought was to create some sort of class or even a range of object id's that would allow all the things you want not to scale to be identified, and then to set the scale, on those, independently from the scale of everything else, through script. Then I thought that I had seen a

[svg-developers] Re: Negative Coordinates?

2008-09-10 Thread John Delacour
At 14:32 + 9/9/08, Samuel Dagan wrote: I am using successfully negative coordinates all the time. The problem you have is not the negative coordinate, but you wrote y=-12 instead of y=-12 . Have you noticed the blank after the number? At 07:10 + 9/9/08, Robert Longson wrote: The

[svg-developers] Safari problem with no nought

2008-09-10 Thread John Delacour
I will usually write 0.5 rather than .5 from my own preference rather than to satisfy any specification, but I see that, while Firefox and Opera render the path bwlow, Safari chokes at the ...11.5,0 .5,11 q...' path d=M 0,0 l 18,0 2,-1 1,-6 11.5,0 .5,11 q 14 3 18,-4 l 39,0 0,-10 -40,0 q -6

[svg-developers] SVG in your TV

2008-09-10 Thread Andreas Neumann
SVG may soon be present in your TV: This may be old news, but I still post it here: http://www.dreampark.com/390.html and Cabot's presentation at the SVG Open: http://www.svgopen.org/2008/papers/75- SVG_a_key_element_in_achieving_product_differentiation__competitive_advantage_in_the_DVB_market/

[svg-developers] Re: Safari problem with no nought

2008-09-10 Thread Robert Longson
--- In svg-developers@yahoogroups.com, John Delacour [EMAIL PROTECTED] wrote: Does the SVG Specification require me to write the nought in this context? JD From http://www.w3.org/TR/SVG/types.html#DataTypeDecimalNumber Your case is the... or an optional sign character followed by zero or

[svg-developers] Re: Safari problem with no nought

2008-09-10 Thread Jeff Schiller
[1] describes each of the path commands as having 'coordinates'. [2] says that coordinates are lengths which are numbers which can be in decimal notation: either an integer, or an optional sign character followed by zero or more digits followed by a dot (.) followed by one or more digits.

Re: [svg-developers] Re: Insert Chinese ideographic writing in svg file

2008-09-10 Thread Fulio Pen
Hi, bjorsq: Thanks a lot for your help. Please open the following page, to see whether the Chinese characters are displayed: http://www.pinyinology.com/test/span3.html The characters in the table in that page are directly entered with Chinese IME, instead of unicode. About a year ago, a

Re: [svg-developers] Re: Safari problem with no nought

2008-09-10 Thread ddailey
Hi Jeff! Jeff Schiller wrote: On the other hand, I'm not sure about begin/end times in SMIL. I noticed last night that Opera seems to have problem with missing nought characters in SMIL events (i.e. begin=.25s). Haven't done any thorough investigation though. I used to notice (a couple of

[svg-developers] efficient method for calculating min distance from point to curve

2008-09-10 Thread Jake Beard
I have what I think must be a fairly common requirement: I need an efficient method for calculating the minimum distance from a point to a curve. It would be possible to solve this problem numerically in JavaScript, but I'm not confident that JavaScript would be efficient enough, and I'm wondering