[svg-developers] Multiple unit types in an SVG image
At the SVG-edit project, we are working on supporting units. Initially this seemed fairly straightforward to me, just use the CSS units supported in the SVG spec. However, only some elements with length-based attributes (like rect) can use such units, where others (like path) cannot. This wouldn't be a problem if all units directly mapped to each other, but as different viewers can have different px/inch ratios, they do not. Here [1]'s an example of the problem on Stack Overflow. A solution given to the problem is to set the desired base unit on the root element together with a viewBox, then just use user units on all elements inside. This works fine, it just means that no other unit can be used inside the image, as its proportion would be incorrect. So my thought for SVG-edit was initially to have two different unit modes: The first would allow different units within the image, which would have the potential problem of having an inconsistent appearance among viewers. The second would set a base unit on the root w/viewBox, and just use user units everywhere else. The average user however, would likely have trouble understanding the difference, so I'd prefer not to have both modes. Which leads me to the question I'd like to ask here: Have you actually used/needed an SVG image where multiple units are used? With perhaps a rect width=3cm/ and a path/? I don't count percentages here, just everything else. If the use cases for this are rare enough, I think I'll drop this option. Thanks, Alexis Deveria [1] http://stackoverflow.com/questions/1346922/svg-and-dpi-absolute-units-and-user-units-inkscape-vs-firefox-vs-imagemagick/2306752 - 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: Multiple unit types in an SVG image
--- In svg-developers@yahoogroups.com, fyrd_svg adeve...@... wrote: Which leads me to the question I'd like to ask here: Have you actually used/needed an SVG image where multiple units are used? With perhaps a rect width=3cm/ and a path/? I don't count percentages here, just everything else. If the use cases for this are rare enough, I think I'll drop this option. Nope, I only ever use px and %. I have no use for cm, etc. I could in theory use em for designs where getComputedTextLength() is of prime importance, but in practice, I don't do that. --kirby - 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] CooL tests for browsers
Here are some CooL tests: volume one - using createElementNS. http://srufaculty.sru.edu/david.dailey/svg/createElementBrowser.html I'm calling them CooL since they are kind of cool, but I would not like to think they are in any way so definitive as those Ken Kesey might have proffered. Basically, they are examples I've made not to be browser tests, nor as tests of the spec, but rather because of a curiosity as to whether or not some particular effect could be accomplished. A good many of them were created when only ASV+IE was around to run them, and I have been pleased to watch as other browsers have come along and are able to make them work. I think, that finally (with some recent advances by FF4), none of these particular tests is any longer in the category that only ASV+IE handles them correctly which makes me think that maybe they are correct. or at least another browser developer and I stumbled into the same way of handling something. Not surprisingly, given the way many of these tests were created, ASV passes all 19 of them. Though, please, ne t'en fais pas, as subsequent volumes emerge (if I get the energy): for script-less animation, or for filters, or for scripted things that don't insert or delete elements from DOM, there will be examples where other browsers shine and ASV barfs. I have been trying to get Windows 7 to run on one of my office machines, so that I might test IE9b (which is likely to be adversely affected by my fondness for SVG/SMIL) but the machine has thus far been coyly ignoring my overtures. The point system employed shows ASVOFF4CS which might not surprise many folks. What surprised me was how high FF4 has gotten. There is also a best of show category and each of {ASV, O, FF4 and C} received two of these ribbons for outstanding performance above the other browsers. This is entirely subjective, whereas other things only mostly subjective. Do let me know if you see a) bugs in my code that prevent a browser from doing it properly (and by this I don't mean things like if you wouldn't use SMIL it would work) or b) if you find that a recent bug fix in browser X that has just made one of these things work. These are quite different than the things the SVG IG is doing at http://code.google.com/p/svgtorture/ which I think are much more focused on particular SVG features than on omnibus aggregations. That work appears to be systematic and thorough while this is not. It does give some idea though, of how browsers fare amidst some fairly complex content. It also answers some FAQ that I've been getting about where can I find some interesting examples, and could I organize some of the information at http://srufaculty.sru.edu/david.dailey/svg/ so it might be easier to find things and to know where they might work. They are also different from what Erik and Vincent have been doing at http://svg-wow.org/ (I see the Gandhi quotes demo is now up ! a must-see! ) since the criteria for inclusion there would seem to require a lot more work! They also go to greater lengths to work through browser limitations than these examples. Their examples are also a lot more artful! Cheers David [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] Embed SVG from SVG
Is it possible to embed another SVG image into an SVG file? The code below works for the PNG but not for the SVG... ?xml version=1.0 encoding=utf-8? !-- Generator: Adobe Illustrator 13.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 14948) -- !DOCTYPE svg PUBLIC -//W3C//DTD SVG 1.1//EN http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd; svg version=1.1 id=Layer_1 xmlns=http://www.w3.org/2000/svg; xmlns:xlink=http://www.w3.org/1999/xlink; x=0px y=0px width=500px height=500px viewBox=0 0 500 500 enable-background=new 0 0 500 500 xml:space=preserve image overflow=visible width=500 height=500 xlink:href=works.png /image image overflow=visible x=270 y=225 width=250 height=250 xlink:href=doesntwork.svg /image /svg - 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] Embed SVG from SVG
Yes, this should be supported. It's hard to tell where this is failing just by looking at the text. Can you post a live example? Jake On Mon, Oct 18, 2010 at 10:01 PM, marijn.kampf yahoo@gwobbel.comwrote: Is it possible to embed another SVG image into an SVG file? The code below works for the PNG but not for the SVG... ?xml version=1.0 encoding=utf-8? !-- Generator: Adobe Illustrator 13.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 14948) -- !DOCTYPE svg PUBLIC -//W3C//DTD SVG 1.1//EN http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd; svg version=1.1 id=Layer_1 xmlns=http://www.w3.org/2000/svg; xmlns:xlink=http://www.w3.org/1999/xlink; x=0px y=0px width=500px height=500px viewBox=0 0 500 500 enable-background=new 0 0 500 500 xml:space=preserve image overflow=visible width=500 height=500 xlink:href=works.png /image image overflow=visible x=270 y=225 width=250 height=250 xlink:href=doesntwork.svg /image /svg [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/