[svg-developers] Re: external entities
I appreciate the response, Robert. I get why to avoid DTDs, but I wasn't aware that external entities had to be defined in a DTD. The syntax for importing an external entity reference... !ENTITY blue SYSTEM colors.xml ...suggests a plain-vanilla XML file, not a DTD. Am I wrong about this? âKen Nellis --- In svg-developers@yahoogroups.com, Robert Longson longsonr@... wrote: This is not going to work, at least not in a browser. See http://hsivonen.iki.fi/no-dtd/ for why it's a bad idea. Best regards Robert. --- In svg-developers@yahoogroups.com, Kenneth Nellis nellisks@ wrote: I've tried without success to get external entities to work. For example, let's say I want to define blue in a shared file as #00247D and then, in multiple, separate SVG files, reference the shared definition (as blue;). I get that the SVG document that references the color would pull in the definition with something like the following in its DOCTYPE: !ENTITY blue SYSTEM colors.xml And blue would be defined in file colors.xml, but I haven't been able to figure out how to define blue in file colors.xml. Suggestions would be most appreciated! Ideally, I wouldn't need separate !ENTITY�. references in each SVG for each color, but could simply refer (somehow) to colors.xml and pull in all entity definitions in colors.xml. �Ken Nellis - 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: external entities
Thanx for that, however I do have internal entities working just fine. Looking for help specifically with externally-defined ones. âKen Nellis --- In svg-developers@yahoogroups.com, Marty Sullivan dark3251@... wrote: I can't tell you if this is possible as I've never tried to define external entities. However, to make the local entities in you svg, you would put them in the DOCTYPE like so: !DOCTYPE svg [ !ENTITY blue FF !ENTITY green #00FF00 !ENTITY red #FF ] and then refer to them as red; green; blue; in your document. On Sun, Nov 18, 2012 at 5:26 PM, Kenneth Nellis nellisks@... wrote: I've tried without success to get external entities to work. For example, let's say I want to define blue in a shared file as #00247D and then, in multiple, separate SVG files, reference the shared definition (as blue;). I get that the SVG document that references the color would pull in the definition with something like the following in its DOCTYPE: !ENTITY blue SYSTEM colors.xml And blue would be defined in file colors.xml, but I haven't been able to figure out how to define blue in file colors.xml. Suggestions would be most appreciated! Ideally, I wouldn't need separate !ENTITY�. references in each SVG for each color, but could simply refer (somehow) to colors.xml and pull in all entity definitions in colors.xml. �Ken Nellis - 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 [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: Trying to animate two lines moving each other
Same with the one I used, Mac/Safari 5.1.2. âKen --- In svg-developers@yahoogroups.com, Marty Sullivan dark3251@... wrote: Firefox/Opera/Chrome and probably other browsers will display all parse errors when you load the file. On Sun, Jan 1, 2012 at 7:05 PM, Pranav Lal pranav.lal@... wrote: ** Hi Kenneth, Thanks for that. Is there a desktop IDE available for parsing SVG or XML to detect such errors? Pranav -Original Message- From: svg-developers@yahoogroups.com [mailto: svg-developers@yahoogroups.com] On Behalf Of Kenneth Nellis Sent: Monday, January 02, 2012 1:33 AM To: svg-developers@yahoogroups.com Subject: [svg-developers] Re: Trying to animate two lines moving each other You didn't close your two animate tags resulting in parse errors. -Ken Nellis - 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 [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: Roman numerals in SVG
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 svg-developers@yahoogroups.com, Cameron McCormack cam@... 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 That seems to work in Chrome, at least. (Didn't test anything else.) - 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: national flags for use in db? perhaps ip-to-country.csv
Maybe you already know that Wikipedia has SVG for many (all?) national flags? Anyway, for my own pleasure, I hand-crafted SVG for about 140 of the easiest national flags, getting colors and geometry from Wikipedia and Flags of the World. Unfortunately, the two did not always agree and frequently precise information was not available from either. http://homepage.mac.com/nellisks/svg/flags/ This seems relevant to the conversation, yet I sense I am overlooking something. Since I'm talking about it, thought I'd add that I turned these flags into a flash-card-type presentation: http://homepage.mac.com/nellisks/flashcards/nationalFlags.html Ken Nellis - 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: national flags for use in db? perhaps ip-to-country.csv
Thanks! âKen --- In svg-developers@yahoogroups.com, Jon Frost jonfrost@... wrote: The SVG looks really clean too - keep up the good work: http://homepage.mac.com/nellisks/svg/flags/flag.libya.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/
[svg-developers] Re: How to define canvas?
Thanx for the link! âKen --- In svg-developers@yahoogroups.com, Holger Jeromin mailgmane@... wrote: opera does not have an html5 parser in a production version. http://caniuse.com/svg-html5 thats why it does not recognise the svg Element in html. embeded svg in xhtml is working in opera without problems. -- 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/
[svg-developers] Re: Introducing me and my SVG toy
Cool! You can have it provide random blobs, or you can design your own, e.g., dog: http://blotbot.co/#73470750 Ken Nellis --- In svg-developers@yahoogroups.com, Jon Frost jonfrost@... wrote: Nice work. These blots are great and as my art professor might have said, titillating, but verging on the obscene. http://blotbot.co/#ee0197ca http://blotbot.co/#3521f9f9 And then our psych profs would remind us of the purpose of the rorschach. Thus far the svg programming community has had a disproportionate number of left-handed dual-brained good-humored and generally good-hearted folks which has been great. In 2011 I think svg will hit the masses due to economics which might dilute our creativity - but its an open standard after-all :-) Best. - 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: Safari 3.2.1 with ASV 3.0 won't View Source
To close the loop on this, back in December 2008 I did write a Webkit Bugzilla report and just today I got the word that they fixed the bug, 25 months later! https://bugs.webkit.org/show_bug.cgi?id=14242 I haven't downloaded the lastest nightly build yet, so haven't confirmed it. Ken Nellis --- In svg-developers@yahoogroups.com, Kenneth Nellis nellisks@... wrote: Thanx to Andreas and Frank for their helpful responses and apologies for my second post appealing for help on the same subject. Frank, I followed up on your idea that applying font-size directly as text element attributes rather than in style attributes. This worked to a point: I could control the text size in Safari down to 0.3pt (if I recall correctly), but this was still too big, but if I made the size any smaller, Safari would ignore my specification and generate the huge text. Andreas, your JavaScript solution is creativeand works in all browsers I tested, even Mac/IE 5.2.3but I think it points out that the real solution is for the program that generates these SVG files to specify the coordinates on a higher-resolution grid so that I can specify font-size in a higher unit count. Do you think this is worthy of a Webkit Bugzilla report? Ken - 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: SVG Support in Opera 11
TidBITS [1] recently announced that Opera 11 is available for the Mac, but when I go to my Mac version of Opera, 10.63, and do Check for Updates, I'm told that [I am] using the latest version of Opera. SMIL seems to work with that version, but if it doesn't work with 11.0, I'm hoping I'll hear that there's an 11.x update when it's available. [1] http://db.tidbits.com/article/11847 Ken Nellis --- In svg-developers@yahoogroups.com, jamesd jcdeering1@... wrote: SMIL animations don't work at all now in Opera, and I just put up a new site lauding the web browser. Not cool! James jdsvg.com - 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: anti-aliasing fill
Please see: http://homepage.mac.com/nellisks/svg/flags/flag.haiti.svg The problem exhibits itself with the following browsers, among possibly others: Mac/Opera 10.63 Mac/Safari 4.1.3 Mac/Firefox 3.6.12 Mac/OmniWeb 5.10.3 Maybe it's a Mac thing? Haven't tried with non-Mac browsers. Ken Nellis --- In svg-developers@yahoogroups.com, Holger Jeromin mailgm...@... wrote: Kenneth Nellis schrieb am 28.12.2010 22:26: In SVG renderings, where, for example, two non-rotated rectangles of solid but different colors abut, I see a single line of pixels at the border that I attribute, perhaps erroneously, to anti-aliasing. I wish to know what I can do to eliminate this artifact. I tried svg color-rendering=optimizeSpeed, but this had no effect in my two browsers (Mac/Safari 4.1.3 and Mac/Opera 10.63). Any ideas? Please provide an example. -- regards Holger - 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: anti-aliasing fill
Never mind! I kept looking after my post and found the answer: svg shape-rendering=crispEdges Ken Nellis --- In svg-developers@yahoogroups.com, Kenneth Nellis nelli...@... wrote: In SVG renderings, where, for example, two non-rotated rectangles of solid but different colors abut, I see a single line of pixels at the border that I attribute, perhaps erroneously, to anti-aliasing. I wish to know what I can do to eliminate this artifact. I tried svg color-rendering=optimizeSpeed, but this had no effect in my two browsers (Mac/Safari 4.1.3 and Mac/Opera 10.63). Any ideas? Ken Nellis - 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: anti-aliasing fill
My excitement was short-lived. While I want to disable anti-aliasing for vertical and horizontal borders, anti-aliasing makes diagonal or curved borders much better. So, I am still looking for ideas for dealing with this. Ken Nellis --- In svg-developers@yahoogroups.com, Kenneth N nelli...@... wrote: Never mind! I kept looking after my post and found the answer: svg shape-rendering=crispEdges Ken Nellis --- In svg-developers@yahoogroups.com, Kenneth Nellis nellisks@ wrote: In SVG renderings, where, for example, two non-rotated rectangles of solid but different colors abut, I see a single line of pixels at the border that I attribute, perhaps erroneously, to anti-aliasing. I wish to know what I can do to eliminate this artifact. I tried svg color-rendering=optimizeSpeed, but this had no effect in my two browsers (Mac/Safari 4.1.3 and Mac/Opera 10.63). Any ideas? Ken Nellis - 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: Unable to see axes lines
Mac/Safari 4.1.3, Mac/Opera 10.63, and Mac/Firefox 3.6.12 all render the axes. BTW, if you'd send SVG code that is stripped down to the minimum necessary to demonstrate the problem, you'd probably get more folks interested enough to consider responding. Ken Nellis --- In svg-developers@yahoogroups.com, Pranav Lal pranav@... wrote: Hi all, I am unable to see the lines I have drawn as the axes in the below graph. What am I missing? Pranav ?xml version=1.0 encoding=UTF-8? !DOCTYPE svg PUBLIC -//W3C//DTD SVG 1.0//EN http://www.w3.org/TR/SVG/DTD/svg10.dtd; svg contentScriptType=text/ecmascript xmlns:xlink=http://www.w3.org/1999/xlink; zoomAndPan=magnify xmlns:iveo=http://viewplus.com/iveo; contentStyleType=text/css xmlns:daisy=http://www.daisy.org/z3986/2005/; viewBox=0 0 803 510 preserveAspectRatio=xMidYMid meet xmlns=http://www.w3.org/2000/svg; version=1.0 titleSheet1 Chart 2/title desctest graph with line axes/desc g visibility=visible pointer-events=visible rect fill=none stroke=white width=273 height=160 id=plot.301948 x=11 y=6/ !axes start here line x1=0 y1=0 y2=0 x2=59.8348818897638 style=stroke:rgb(134,134,134);; stroke-width 5; / line x1=0 x2=0 y1=0 y2=106.25 style=stroke:rgb(134,134,134); stroke-width 5; / !axes end here polyline fill=none id=Demand style=stroke:rgb(74,126,187); stroke-width 1; points=322,154 310,148 297.25,142 285.25,136 273.25,129.25 259.75,123.25 247.75,117.25 235.75,111.25 223,105.25 211,99.25 199,93.25 187,87.25 174.25,80.5 162.25,74.5 150.25,68.5 136.75,62.5 124.75,56.5 112.75,50.5 100.75,44.5 88,38.5 / rect fill=none height=2 width=1 style=stroke:rgb(0,0,0);; stroke-width 1; x=322 y=154 title1/1/2001, 1/title/rect rect fill=none height=2 width=1 style=stroke:rgb(0,0,0);; stroke-width 1; x=310 y=148 title1/2/2001, 2/title/rect rect fill=none height=2 width=1 style=stroke:rgb(0,0,0);; stroke-width 1; x=297.25 y=142 title1/3/2001, 3/title/rect rect fill=none height=2 width=1 style=stroke:rgb(0,0,0);; stroke-width 1; x=285.25 y=136 title1/4/2001, 4/title/rect rect fill=none height=2 width=1 style=stroke:rgb(0,0,0);; stroke-width 1; x=273.25 y=129.25 title1/5/2001, 5/title/rect rect fill=none height=2 width=1 style=stroke:rgb(0,0,0);; stroke-width 1; x=259.75 y=123.25 title1/6/2001, 6/title/rect rect fill=none height=2 width=1 style=stroke:rgb(0,0,0);; stroke-width 1; x=247.75 y=117.25 title1/7/2001, 7/title/rect rect fill=none height=2 width=1 style=stroke:rgb(0,0,0);; stroke-width 1; x=235.75 y=111.25 title1/8/2001, 8/title/rect rect fill=none height=2 width=1 style=stroke:rgb(0,0,0);; stroke-width 1; x=223 y=105.25 title1/9/2001, 9/title/rect rect fill=none height=2 width=1 style=stroke:rgb(0,0,0);; stroke-width 1; x=211 y=99.25 title1/10/2001, 10/title/rect rect fill=none height=2 width=1 style=stroke:rgb(0,0,0);; stroke-width 1; x=199 y=93.25 title1/11/2001, 11/title/rect rect fill=none height=2 width=1 style=stroke:rgb(0,0,0);; stroke-width 1; x=187 y=87.25 title1/12/2001, 12/title/rect rect fill=none height=2 width=1 style=stroke:rgb(0,0,0);; stroke-width 1; x=174.25 y=80.5 title1/13/2001, 13/title/rect rect fill=none height=2 width=1 style=stroke:rgb(0,0,0);; stroke-width 1; x=162.25 y=74.5 title1/14/2001, 14/title/rect rect fill=none height=2 width=1 style=stroke:rgb(0,0,0);; stroke-width 1; x=150.25 y=68.5 title1/15/2001, 15/title/rect rect fill=none height=2 width=1 style=stroke:rgb(0,0,0);; stroke-width 1; x=136.75 y=62.5 title1/16/2001, 16/title/rect rect fill=none height=2 width=1 style=stroke:rgb(0,0,0);; stroke-width 1; x=124.75 y=56.5 title1/17/2001, 17/title/rect rect fill=none height=2 width=1 style=stroke:rgb(0,0,0);; stroke-width 1; x=112.75 y=50.5 title1/18/2001, 18/title/rect rect fill=none height=2 width=1 style=stroke:rgb(0,0,0);; stroke-width 1; x=100.75 y=44.5 title1/19/2001, 19/title/rect rect fill=none height=2 width=1 style=stroke:rgb(0,0,0);; stroke-width 1; x=88 y=38.5 title1/20/2001, 20/title/rect polyline fill=none id=Supply style=stroke:rgb(190,75,72); stroke-width 1; points=322,38.5 310,44.5 297.25,50.5 285.25,56.5 273.25,62.5 259.75,68.5 247.75,74.5 235.75,80.5 223,87.25 211,93.25 199,99.25 187,105.25 174.25,111.25 162.25,117.25 150.25,123.25 136.75,129.25 124.75,136 112.75,142 100.75,148 88,154 / rect fill=none height=2 width=1 style=stroke:rgb(0,0,0);; stroke-width 1; x=322 y=38.5 title1/1/2001, 20/title/rect rect fill=none height=2 width=1 style=stroke:rgb(0,0,0);; stroke-width 1; x=310 y=44.5 title1/2/2001, 19/title/rect rect fill=none height=2 width=1 style=stroke:rgb(0,0,0);; stroke-width 1; x=297.25 y=50.5 title1/3/2001, 18/title/rect rect fill=none height=2 width=1 style=stroke:rgb(0,0,0);; stroke-width 1; x=285.25 y=56.5 title1/4/2001, 17/title/rect rect fill=none height=2 width=1 style=stroke:rgb(0,0,0);; stroke-width 1; x=273.25 y=62.5 title1/5/2001, 16/title/rect rect fill=none height=2 width=1 style=stroke:rgb(0,0,0);;
[svg-developers] Re: styling use with CSS
FWIW, it also doesn't work in Safari or OmniWeb, but it does work in Camino. An elegant use of styles. I hope it's valid! Ken Nellis --- In svg-developers@yahoogroups.com, t...@... t...@... wrote: Hi all, I have some Christmas gifts for you! That is, if you use Firefox: http://wwwpub.zih.tu-dresden.de/~s9783698/svg/css-presents.svg As code: ?xml version=1.0 encoding=UTF-8 standalone=no? svg xmlns=http://www.w3.org/2000/svg; version=1.1 xmlns:xlink=http://www.w3.org/1999/xlink; defs style .redbox .boxtop {fill:#e33} .redbox .boxside {fill:#a11} .redbox .boxfront {fill:#c22} .redbox .ribbontop {fill:#3e3} .redbox .ribbonside {fill:#1a1} .redbox .ribbonfront {fill:#2c2} .bluebox .boxtop {fill:#33e} .bluebox .boxside {fill:#11a} .bluebox .boxfront {fill:#22c} .bluebox .ribbontop {fill:#e33} .bluebox .ribbonside {fill:#a11} .bluebox .ribbonfront {fill:#a22} .greenbox .boxtop {fill:#3e3} .greenbox .boxside {fill:#1a1} .greenbox .boxfront {fill:#2c2} .greenbox .ribbontop {fill:#33e} .greenbox .ribbonside {fill:#11a} .greenbox .ribbonfront {fill:#22c} /style g id=giftbox path class=boxtop d=m0,0 36,12 48,-12 -36,-12z/ path class=boxfront d=m36,12 48,-12 0,48 -48,12z/ path class=boxside d=m0,0 36,12 0,48 -36,-12z/ path class=ribbonside d=m15,5 6,2 0,48 -6,-2z/ path class=ribbontop d=m15,5 48,-12 6,2 -48,12z/ path class=ribbontop d=m20,-5 36,12 8,-2 -36,-12z/ path class=ribbonfront d=m56,7 0,48 8,-2 0,-48z/ /g /defs use xlink:href=#giftbox class=redbox x=30 y=20/ use xlink:href=#giftbox class=greenbox x=70 y=50/ use xlink:href=#giftbox class=bluebox x=15 y=75/ /svg This works perfectly in Firefox, but not in Opera, Chrome, Batik, Inkscape or librsvg. Is this a bug or a feature in Firefox? Season's greetings Thomas W. - 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: overflow=hidden
Perfect! It makes the overflow=hidden attribute superfluous. Thanx! Ken Nellis --- In svg-developers@yahoogroups.com, Erik Dahlstrom e...@... wrote: On Sun, 19 Dec 2010 10:17:18 +0100, t...@... t...@... wrote: Here's what the specs say: http://www.w3.org/TR/SVG/masking.html#AutoClipAtViewportNotViewBox but what does it mean? At least this works in Opera: ?xml version=1.0 encoding=UTF-8 ? svg xmlns=http://www.w3.org/2000/svg; xmlns:xlink=http://www.w3.org/1999/xlink; version=1.1 clip=rect(0,300,300,0) titleoverflow test/title rect width=300 height=300 / line stroke-width=10 x2=300 y2=300 stroke=red / /svg But that's probably not what you want, and it doesn't work in Firefox, Batik, Chrome, Inkscape or with librsvg. The 'clip' property changed meaning from CSS2 to CSS2.1, that's one reason, another is that it wasn't implemented the way SVG 1.1 specified it for image and nested svg elements in some browsers (and not at all in others). The plan ahead is to align with CSS2.1, and I would recommend that you use 'clip-path' instead for the time being since that has better cross-browser support. The overflow property clips the child content to the established viewport, see this example[1]. Note however that viewBox isn't the same as viewport, if the aspect ratio is different you might see some overflow (since the viewBox is positioned in the viewport using preserveAspectRatio, which defaults to xMidYMid meet, essentially center the content inside the viewport). The rule-of-thumb is that the viewport for an svg element is defined by the width and height attributes, and the viewBox naturally by the viewBox attribute. Anyway, this is what you want I guess: ?xml version=1.0 encoding=UTF-8 ? svg xmlns=http://www.w3.org/2000/svg; xmlns:xlink=http://www.w3.org/1999/xlink; version=1.1 viewBox=0 0 10 10 overflow=hidden clip-path=url(#clip) titleoverflow test/title defs clipPath id=clip rect width=100% height=100%/ /clipPath /defs rect width=100% height=100% / line x2=100% y2=100% stroke=red / /svg Cheers /Erik [1] http://dev.w3.org/SVG/profiles/1.1F2/test/svg/masking-path-03-b.svg -- 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/
[svg-developers] Re: overflow=hidden
--- In svg-developers@yahoogroups.com, t...@... t...@... wrote: Here's what the specs say: http://www.w3.org/TR/SVG/masking.html#AutoClipAtViewportNotViewBox but what does it mean? Right, that's where I got the idea that overflow=hidden would work. I didn't understand those specs either. :-/ At least this works in Opera: ?xml version=1.0 encoding=UTF-8 ? svg xmlns=http://www.w3.org/2000/svg; xmlns:xlink=http://www.w3.org/1999/xlink; version=1.1 clip=rect(0,300,300,0) titleoverflow test/title rect width=300 height=300 / line stroke-width=10 x2=300 y2=300 stroke=red / /svg But that's probably not what you want, and it doesn't work in Firefox, Batik, Chrome, Inkscape or with librsvg. Thank you for that; I appreciate you taking the time to respond, however, for me running Opera 10.63 over Mac OS X 10.4.11, it did not work. I still see the corners of the line sticking out past the clipping rectangle. Here's a PNG image showing how Opera renders it for me:http://tinyurl.com/opera-overflow http://tinyurl.com/opera-overflow For completeness here's the (same as yours) SVG that rendered it:http://tinyurl.com/overflowA http://tinyurl.com/overflowA While Mac/Safari 4.1.3 renders the same as Opera for your SVG version, Safari lets me resize my window to that of the graphic, while Opera incongruously clips it severely. commentaryAs an occasional tinkerer with SVG, I've been very impressed with some of the work I've seen produced by members of this list, so I am flummoxed at the difficulty of accomplishing seemingly trivial tasks./commentary Ken Nellis --- In svg-developers@yahoogroups.com, Kenneth Nellis nellisks@ wrote: I'd like to draw a diagonal line from corner to corner and not have the width of the line extend outside the viewBox boundaries at the two corners, however they do despite my attempt to thwart it with overflow=hidden. What am I doing wrong? Here's an example that demonstrates the problem: http://tinyurl.com/ overflow-svg Ken Nellis [Non-text portions of this message have been removed] [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: Rotating Images
Perhaps you can adapt the following to your needs. It rotates an image about its center point: ?xml version=1.0? svg xmlns=http://www.w3.org/2000/svg; xmlns:xlink=http://www.w3.org/1999/xlink; g transform=translate(400 328) image xlink:href=ken3d.jpg width=400 height=328 x=-200 y=-164 animateTransform attributeName=transform attributeType=XML type=rotate from=0 to=360 begin=0s dur=12s repeatCount=indefinite / /image /g /svg Ken Nellis --- In svg-developers@yahoogroups.com, PETER nos...@... wrote: I have an image image xlink:href=working.png x=740 y=40 width=40 height=40/ I want to rotate it around its centre (x=760 y=60) indefinately I have tried Transform Rotate and animateTransform but cannot get rotation around the centre of the image !! Help please Pete (Northolt UK) - 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: click coordinates not of object
--- In svg-developers@yahoogroups.com, Narendra Sisodiya naren...@... wrote: On Sat, Nov 20, 2010 at 9:03 AM, Kenneth Nellis nelli...@...wrote: I have this SVG file* that displays a centered grid, dimensions 10x10, that scales to the size of the web page. I've attached an onclick handler to the grid that displays the x,y coordinates of the click point. I want the coordinates to be of the grid's coordinate system, but I'm getting the coordinates of the web page. I'm hoping someone can advise how to fix this. æen Nellis * http://homepage.mac.com/nellisks/yahoo/groups/svg-developers/ gridClick.svg I am using Firefox - x = evt.offsetX; is not not giving correct result, Error - x is undefined when it is used later Yes, I see. Also doesn't work in Opera. Works in Safari, however, where I've been developing. My JavaScript source* seems to indicate offsetX/Y as valid properties. Perhaps I'm not referencing them correctly? (More in my next reply, coming right up.) --Ken Nellis - 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: click coordinates not of object
--- In svg-developers@yahoogroups.com, Holger Jeromin mailgm...@... wrote: Narendra Sisodiya schrieb am 20.11.2010 05:36: On Sat, Nov 20, 2010 at 9:03 AM, Kenneth Nellis nelli...@...wrote: I have this SVG file* that displays a centered grid, dimensions 10x10, that scales to the size of the web page. I've attached an onclick handler to the grid that displays the x,y coordinates of the click point. I want the coordinates to be of the grid's coordinate system, but I'm getting the coordinates of the web page. I'm hoping someone can advise how to fix this. æen Nellis * http://homepage.mac.com/nellisks/yahoo/groups/svg-developers/ gridClick.svg I am using Firefox - x = evt.offsetX; is not not giving correct result, Error - x is undefined when it is used later offsetX is only available in opera, safari, chrome. layerX is available in safari, chrome, firefox clientx is available in all: opera, chrome, safari, firefox and adobe svg viewer pageX is available in all browsers (no adobe plugin) and is independant from the scrolling. But the problem is still that the offset of document.getElementById(grid) compared to the page is apparently not available. This is really suprising to me. I have not found a solution. -- best regards Holger Thank you for your response. Another difference I just noticed is that Safari responds to the onclick handler if anywhere in the viewBox is clicked, whereas Firefox and Opera require you to click right on one of the lines, so this is a separate problem to fix. And Opera's responses using offsetX/Y appear to be complete garbage! Anyway, I'm still open to ideas and offer links to the original version (offsetXY) as well as links to versions using clientXY and pageXY. http://tinyurl.com/offsetXY-svg http://tinyurl.com/clientXY-svg http://tinyurl.com/PageXY-svg --Ken Nellis - 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: click coordinates not of object
--- In svg-developers@yahoogroups.com, Kenneth N nelli...@... wrote: And Opera's responses using offsetX/Y appear to be complete garbage! Sorry for the spam, but I have to correct the previous statement; further analysis reveals a pattern, just different from Safari and Firefox, which both report screen coordinates. Opera, however, reports coordinates relative to the clicked line, which is closer to what I want, but still is not scaled to range [0,10] as I am looking for. And since Opera returns different coordinates from Safari and Firefox, I fear the only solution, if there is one, would require a browser-specific solution. :-( --Ken Nellis - 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/