Re: [svg-developers] Right-click menus in SVG
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 this mean that it is not possible for an SVG itself to process right-clicks and have popup menus of its own? In Opera each user must manually allow right-clicks to be handled by scripts: Tools Preferences Content JavaScript Options... Allow scripts to receive right clicks The default is that scripts are not allowed to receive right clicks. In most cases I would personally not like scripts to be able to override the built-in context menu. However, allowing content to add menuitems might be a workable solution. E.g see the menu section in HTML5 [1]. Cheers /Erik [1] http://www.w3.org/html/wg/html5/#menus -- 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: [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/ * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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/
[svg-developers] Re: Right-click menus in SVG
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 context menues. I am sure every browser does it differently. Alternatively, you could write the context menue in SVG and javascript. Maybe something like http://www.carto.net/papers/svg/gui/ selectionlist/ could server as a starter. Hope this helps, Andreas --- In svg-developers@yahoogroups.com, 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 this mean that it is not possible for an SVG itself to process right-clicks and have popup menus of its own? Thanks, -JCT [Non-text portions of this message have been removed] - 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/ * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Insert Chinese ideographic writing in svg file
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 wrote: hello, I am trying to replace the English object names in an svg file with Chinese ideographic writing. My purpose to compare the features of English and Chinese writing. Following is the svg file: http://www.pinyinology.com/test/chinese2.svg And following is the code which is already in the svg file: script type=text/javascript function chinText() { document.getElementById(moon).innerHTML = \u6708; document.getElementById(tree).innerHTML = \u6728; document.getElementById(man).innerHTML = \u4eba; document.getElementById(water).HTML = \u6c34; } /script I tested the above code in an html page. It works. But I don't know how to implement the code in the svg file. Following is the html page: http://www.pinyinology.com/test/span2.html I hope someone can help me. Thanks for your expertise. Fulio Pen [Non-text portions of this message have been removed] - 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 [Non-text portions of this message have been removed] - 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/ * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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/
[svg-developers] Re: Insert Chinese ideographic writing in svg file
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 use the onload handler of the svg element to call it like this: svg width=100% height=100% version=1.1 xmlns=http://www.w3.org/2000/svg; onload=writeText(evt); You then need something like this to do what you want: function writeText(evt) { /* SVG namespace */ var svgns = http://www.w3.org/2000/svg;; /* get a reference to the SVG document element */ var svgDoc = evt.target.ownerDocument; /* map element ids and chinese chars */ var map = {'moon': 'hello x6708;', 'tree': 'x6728;', 'man': 'x4eba;', 'water': 'x6c34;'}; for (el_id in map) { /* get the g element */ var el = svgDoc.getElementById(el_id); /* clear the children of the g element */ if (el.hasChildNodes()) { while (el.childNodes.length = 1) { el.removeChild(el.firstChild); } } /* create a new text element */ var textel = svgDoc.createElementNS(svgns, text); /* create a text node for the text content */ var text = svgDoc.createTextNode(map[el_id]); /* append the text node to the text element */ textel.appendChild(text); /* append the text element to the g element */ el.appendChild(textel); } } However, this doesn't work for a number of reasons - your HTML example did not work in my browser - the unicode characters could not be displayed - I guess I would have the same problem in SVG. Also, the text element in the above example is not styled in any way, so takes on the style of its parent g element - you could add styles using textel.setAttributeNS(null, name, value). I hope the above helps you get a little further with your problem. --- In svg-developers@yahoogroups.com, Fulio Pen [EMAIL PROTECTED] wrote: hello, I am trying to replace the English object names in an svg file with Chinese ideographic writing. My purpose to compare the features of English and Chinese writing. Following is the svg file: http://www.pinyinology.com/test/chinese2.svg And following is the code which is already in the svg file: script type=text/javascript function chinText() { document.getElementById(moon).innerHTML = \u6708; document.getElementById(tree).innerHTML = \u6728; document.getElementById(man).innerHTML = \u4eba; document.getElementById(water).HTML = \u6c34; } /script I tested the above code in an html page. It works. But I don't know how to implement the code in the svg file. Following is the html page: http://www.pinyinology.com/test/span2.html I hope someone can help me. Thanks for your expertise. Fulio Pen [Non-text portions of this message have been removed] - 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/ * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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/
[svg-developers] Re: Non-scalable text labels in scalable graphics?
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 scale operation. Laborious, but it seems to be the only way - but I'm a relative newby at SVG, so maybe someone knows a better way. The problem is that it isn't possible to exclude the font size or stroke-width from scaling operations in SVG. George --- In svg-developers@yahoogroups.com, Peter Thompson [EMAIL PROTECTED] wrote: Does this do what you want? ?xml version=1.0? svg xmlns=http://www.w3.org/2000/svg; width=100% height=100% circle cx=50 cy=200 r=2 stroke=green stroke-width=1 fill=green/ g id=Labels transform=translate(50,200) font-size=20pt fill=red textText scales, but doesn't change font size./text /g script ![CDATA[ function SyncUI() { var root = document.rootElement; var scaleUI = 1/parseFloat(root.currentScale); var obj = document.getElementById(Labels); obj.setAttribute(font-size, (20 * scaleUI) + pt); } document.rootElement.addEventListener( SVGScroll, SyncUI, false ); document.rootElement.addEventListener( SVGResize, SyncUI, false ); document.rootElement.addEventListener( SVGZoom, SyncUI, false ); SyncUI(); // ]] /script /svg --- On Sun, 9/7/08, gfc22 [EMAIL PROTECTED] wrote: From: gfc22 [EMAIL PROTECTED] Subject: [svg-developers] Non-scalable text labels in scalable graphics? To: svg-developers@yahoogroups.com Date: Sunday, September 7, 2008, 8:48 AM I expect this is a FAQ, but Google doesn't offer anything relevant: I have text labels in scalable SVG groups. I want the positions of the labels to scale with the other elements but not their text size. This must be a common requirement. Suggestions welcome. George [Non-text portions of this message have been removed] - 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/ * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Re: Non-scalable text labels in scalable graphics?
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 noscale attribute value somewhere in the SVG spec. A little bit of poking around revealed that with vector effects in SVG1.2 there is a 'non-scaling-stroke' associated with vector effects (see http://www.w3.org/TR/SVGMobile12/attributeTable.html). I thought there was another way and suspect there still may be. Seems like your situation is common enough that one might want a fairly ubiquitous attribute called @scale - scale=normal (the default) and scale=none when things like text and boundaries should not scale. One can imagine that authors might have (for whatever reason) other objects (like distant mountains that we might like to stay in the background). Maybe @scale should have a number scale=1 means it scales normally like all content, scale=0 means it is unaffected by zooming, anything in between (scale =.25) would be a multiplier. That would give declarative access to what we might call sleeping beauty space* (or Scooby doo space)- like in http://srufaculty.sru.edu/david.dailey/svg/balloon.svg where different layers have different virtual viewports. I still think we may be overlooking something that's already there in SVG 1.1. David *In recognition of Disney's quite elegant usage of 2+epsilon-dimensional space or of Scooby Doo's quite inelegant usage of it. From: svg-developers@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gfc22 Sent: Wednesday, September 10, 2008 12:28 PM To: svg-developers@yahoogroups.com Subject: [svg-developers] Re: Non-scalable text labels in scalable graphics? 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 scale operation. Laborious, but it seems to be the only way - but I'm a relative newby at SVG, so maybe someone knows a better way. The problem is that it isn't possible to exclude the font size or stroke-width from scaling operations in SVG. George --- In svg-developers@yahoogroups.com mailto:svg-developers%40yahoogroups.com , Peter Thompson [EMAIL PROTECTED] wrote: Does this do what you want? ?xml version=1.0? svg xmlns=http://www.w3.org/2000/svg; width=100% height=100% circle cx=50 cy=200 r=2 stroke=green stroke-width=1 fill=green/ g id=Labels transform=translate(50,200) font-size=20pt fill=red textText scales, but doesn't change font size./text /g script ![CDATA[ function SyncUI() { var root = document.rootElement; var scaleUI = 1/parseFloat(root.currentScale); var obj = document.getElementById(Labels); obj.setAttribute(font-size, (20 * scaleUI) + pt); } document.rootElement.addEventListener( SVGScroll, SyncUI, false ); document.rootElement.addEventListener( SVGResize, SyncUI, false ); document.rootElement.addEventListener( SVGZoom, SyncUI, false ); SyncUI(); // ]] /script /svg --- On Sun, 9/7/08, gfc22 [EMAIL PROTECTED] wrote: From: gfc22 [EMAIL PROTECTED] Subject: [svg-developers] Non-scalable text labels in scalable graphics? To: svg-developers@yahoogroups.com mailto:svg-developers%40yahoogroups.com Date: Sunday, September 7, 2008, 8:48 AM I expect this is a FAQ, but Google doesn't offer anything relevant: I have text labels in scalable SVG groups. I want the positions of the labels to scale with the other elements but not their text size. This must be a common requirement. Suggestions welcome. George [Non-text portions of this message have been removed] [Non-text portions of this message have been removed] - 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/ * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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/
[svg-developers] Re: Negative Coordinates?
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 problem with this example is the space rather than the fact that it is negative. Quite right! Thank you both. I hadn't noticed and I'll check the script to see how it happened to write the space... Ah! It seems the hard return in BBEdit is being converted to a space, so I probably need to make a change in the module. add (SVG_::rect(x\\42\\y\\-12 \\w\\5.75\\h\\112\\fill\\burlywood)); Thanks again. JD - 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/ * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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/
[svg-developers] Safari problem with no nought
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 -1 -5 -8 l -3,0 0,-2 a 8,8 1,0 1 0 -11 l 0,-4 -21,0 0,4 a 8,8 1,0 1 0 11 l 0,2 -3,0 q -1 4 -10.5 4 l -.5 3 q -8 2 -7 12 fill=burlywood stroke=black opacity=.8 / Does the SVG Specification require me to write the nought in this context? JD - 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/ * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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/
[svg-developers] SVG in your TV
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/ Andreas - 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/ * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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/
[svg-developers] Re: Safari problem with no nought
--- 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 more digits followed by a dot (.) followed by one or more digits Where you've omitted the optional sign character and have zero digits. So it seems to me a leading 0 is not required. Best regards Robert - 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/ * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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/
[svg-developers] Re: Safari problem with no nought
[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. which indicates to me that not including the 'nought' is ok and should be allowed. 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. These are the types of things we need to include in a 'SVG Torture Test' Regards, Jeff [1] http://www.w3.org/TR/SVG11/paths.html#PathData [2] http://www.w3.org/TR/SVG11/types.html#DataTypeDecimalNumber --- In svg-developers@yahoogroups.com, John Delacour [EMAIL PROTECTED] wrote: 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 -1 -5 -8 l -3,0 0,-2 a 8,8 1,0 1 0 -11 l 0,-4 -21,0 0,4 a 8,8 1,0 1 0 11 l 0,2 -3,0 q -1 4 -10.5 4 l -.5 3 q -8 2 -7 12 fill=burlywood stroke=black opacity=.8 / Does the SVG Specification require me to write the nought in this context? JD - 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/ * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Re: Insert Chinese ideographic writing in svg file
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 great programmer in this group helped me with a project by writing a wonderful code. http://www.pinyinology.com/test/characters.svg I wish this great person is still here with us. I've placed the code you wrote for me in the svg file. It needs more modification to display the ideographs: http://www.pinyinology.com/test/chinese4.svg Thanks again. Fulio - Original Message From: bjorsq [EMAIL PROTECTED] To: svg-developers@yahoogroups.com Sent: Wednesday, September 10, 2008 6:15:51 AM Subject: [svg-developers] Re: Insert Chinese ideographic writing in svg file 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 use the onload handler of the svg element to call it like this: svg width=100% height=100% version=1.1 xmlns=http://www.w3. org/2000/ svg onload=writeText( evt); You then need something like this to do what you want: function writeText(evt) { /* SVG namespace */ var svgns = http://www.w3. org/2000/ svg; /* get a reference to the SVG document element */ var svgDoc = evt.target.ownerDoc ument; /* map element ids and chinese chars */ var map = {'moon': 'hello x6708;', 'tree': 'x6728;', 'man': 'x4eba;', 'water': 'x6c34;'}; for (el_id in map) { /* get the g element */ var el = svgDoc.getElementBy Id(el_id) ; /* clear the children of the g element */ if (el.hasChildNodes( )) { while (el.childNodes. length = 1) { el.removeChild( el.firstChild) ; } } /* create a new text element */ var textel = svgDoc.createElemen tNS(svgns, text); /* create a text node for the text content */ var text = svgDoc.createTextNo de(map[el_ id]); /* append the text node to the text element */ textel.appendChild( text); /* append the text element to the g element */ el.appendChild( textel); } } However, this doesn't work for a number of reasons - your HTML example did not work in my browser - the unicode characters could not be displayed - I guess I would have the same problem in SVG. Also, the text element in the above example is not styled in any way, so takes on the style of its parent g element - you could add styles using textel.setAttribute NS(null, name, value). I hope the above helps you get a little further with your problem. --- In svg-developers@ yahoogroups. com, Fulio Pen [EMAIL PROTECTED] . wrote: hello, I am trying to replace the English object names in an svg file with Chinese ideographic writing. My purpose to compare the features of English and Chinese writing. Following is the svg file: http://www.pinyinol ogy.com/test/ chinese2. svg And following is the code which is already in the svg file: script type=text/javascri pt function chinText() { document.getElement ById(moon ).innerHTML = \u6708; document.getElement ById(tree ).innerHTML = \u6728; document.getElement ById(man ).innerHTML = \u4eba; document.getElement ById(water ).HTML = \u6c34; } /script I tested the above code in an html page. It works. But I don't know how to implement the code in the svg file. Following is the html page: http://www.pinyinol ogy.com/test/ span2.html I hope someone can help me. Thanks for your expertise. Fulio Pen [Non-text portions of this message have been removed] [Non-text portions of this message have been removed] - 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/ * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Re: Safari problem with no nought
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 years ago) that Opera had problems if I used dur=.5s instead of dur=0.5s, but thought that had all been fixed. Maybe I just got used to using 0. in my time units for SMIL. So yes, we'll need to make sure to include such cases. There are some boundary problems still existing of that type for example in http://srufaculty.sru.edu/david.dailey/svg/SVGOpen2008/filterBlur2.svg , if I put filter id=D x=0% y=0% width=100% height=100% feGaussianBlur stdDeviation=25,0 / /filter instead of filter id=D x=0% y=0% width=100% height=100% feGaussianBlur stdDeviation=25,0.1 / /filter (thanks to Erik for helping me figure this out) then Opera and FF and maybe Safari ( I don't remember) into the one labeled horizontal blur all choke even though the spec seems to be okay. Ruud has been writing about a nifty way of tweaking such attributes that might allow the quick exploration of the parameter space associate with such things, so perhaps he'll have something to say on this -- I think it may help with the speeding the development of test cases. David [Non-text portions of this message have been removed] - 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/ * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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/
[svg-developers] efficient method for calculating min distance from point to curve
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 if there isn't something built into the SVG spec that might be leveraged to help with this. I'd appreciate any guidance anyone can offer. Thanks, Jake [Non-text portions of this message have been removed] - 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/ * 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: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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/