[svg-developers] Re: Gradient problems

2007-10-02 Thread Frank Bruder
Hi, Damian, it sounds like the id attributes of dynamically added content are not processed properly so referencing them would not work. Have you also tried it with graphics containing use elements? I guess they wouldn't work either. I'm not sure if that really is the source of the problem. If

[svg-developers] Re: animating gradientTransform with SMIL? ASV bug?

2007-10-11 Thread Frank Bruder
To animate transform values you need to use an animateTransform element try: animateTransform attributeName=gradientTransform dur=5s repeatCount=indefinite type=rotate values=0 .5 .5;360 .5 .5/ that should work. Frank --- In svg-developers@yahoogroups.com, David Dailey [EMAIL PROTECTED]

[svg-developers] Re: svg clock for mobile

2007-10-27 Thread Frank Bruder
You could try using a wallclock-sync-value for begin. i.e. begin=wallclock(0s) As far as I know, that's not supported in either Opera or ASV. But for user agents supporting scripting you can still set the begin attribute at load time. I have no idea if any mobile phones do support

[svg-developers] Re: Off topic Javascript problem (now on topic)

2007-11-22 Thread Frank Bruder
--- In svg-developers@yahoogroups.com, Richard Pearman [EMAIL PROTECTED] wrote: Hi, Yeah so I tryed putting some roll-overs and links into the SVG version of the picture (which now says that the user CAN see SVG files). The links work but the javascript (in the SVG file and the XHTML

[svg-developers] Re: Problems with running Javascript in Batik Squiggle

2007-11-23 Thread Frank Bruder
Hi, This following code throws a null error in Batik, though for the life of me I don't know why: By null error, do you mean a null pointer exception? I see two things in the code which aren't very clean. But I don't know if they would cause an error in Batik, or

[svg-developers] Re: External CSS for SVG in XHTML not working for IE7?

2007-11-28 Thread Frank Bruder
Well, I wouldn't have expected your approach to work because: How would IE know that the stylesheet processing instruction is to be handed to ASV? And there doesn't seem to be a way to do this. I tried placing the stylesheet in an svg:style element inside the svg:svg element. I thought if this

[svg-developers] Re: Create additive behavior on key press event

2008-01-18 Thread Frank Bruder
I thought your code would be supposed to work, but accumulate=sum seems to work with a repeatCount but not with multiple occurences of a begin value in both Batik 1.7 Squiggle and ASV3. And in Opera accumulate doesn't work at all. The specification of the SMIL Animation Module seems not to be

[svg-developers] Re: Failed attribute warning on Opera browser

2008-01-18 Thread Frank Bruder
Have you tried xlink:href=# ? Does this also make Safari reload the document? But setting cursor=pointer on a g element works for me with Opera 9.25. Do you really need to fully support older versions? --- In svg-developers@yahoogroups.com, ons.renderman [EMAIL PROTECTED] wrote: Good

[svg-developers] Re: Create additive behavior on key press event

2008-01-20 Thread Frank Bruder
--- In svg-developers@yahoogroups.com, ~:'' ã#65533;‚ã‚Šã#65533;Œã#65533;¨ã#65533;†ã#65533;ã#65533;– ã#65533;„ã#65533;¾ã#65533;—ã#65533;Ÿã€‚ [EMAIL PROTECTED] wrote: Frank, where is the documentation describing keyboard control for Squiggle? this is really interesting for me, as iirc it's

[svg-developers] Re: how to create perspective in pattern?

2008-01-21 Thread Frank Bruder
Hi, would be great if full 3x3 matrices--without the third row implicitly set to [0 0 1]--were allowed for transform values. This would allow for perspective distortions. But I'm not sure if this wouldn't be too difficult for implementors since singularities (the horizon) would need to be

[svg-developers] Re: Pretty printer for Windows, Batik

2008-01-22 Thread Frank Bruder
Or you can write a batch file with your favoured options and %1 in place of FILES and add it as an action for the file type SVG. This way you can just right click on an SVG file and start the pretty printer from the context menu. I don't use pretty printer, but that's the way I use ttf2svg and

[svg-developers] Re: Begin and End

2008-01-22 Thread Frank Bruder
. Prem From: svg-developers@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Frank Bruder Sent: Tuesday, January 22, 2008 5:13 AM To: svg-developers@yahoogroups.com Subject: [svg-developers] Re: Begin and End Hi, at the begin

[svg-developers] Re: embedded svg shows different in every browser

2008-01-25 Thread Frank Bruder
Hi, Hago, regarding the 'quasi-normal IE-problems', you wrote it works locally but not over HTTP. I've had the same problem once and found that it does not occur when embed is used. The problem also seems to be solved by adding a param like this: object data=HC.svg type=image/svg+xml

[svg-developers] Re: Coordinate transformation and view box difficulties

2008-01-25 Thread Frank Bruder
You could add V0H0z to the end of the path data and instead of using stroke set stroke to none and fill to any color you like. Without a stroke, using transform would not yield ugly results. If you wish to use a stroke then you could use Javascript to rescale the path data. The source code

[svg-developers] Re: Begin and End

2008-01-27 Thread Frank Bruder
Using the values attribute with only two values should have the same effect as using from and to. (If no keyTimes or the like are used, at least.) No matter if those values are different or equal to each other. So values=400;400 would still produce just the same effect as from=400 to=400 or

[svg-developers] Re: Pretty printer for Windows, Batik

2008-02-03 Thread Frank Bruder
and rasterizing directly out of the file manager - be it on Windows, Mac or Linux. So if you could provide a more complete description on how to achieve this, it would really help. Thanks, Andreas --- In svg-developers@yahoogroups.com, Frank Bruder redurbf@ wrote: Or you can

[svg-developers] Re: transform question

2008-02-22 Thread Frank Bruder
I also had that problem. In mathematical graphics the positive y axis usually points upwards. Using a different coordinate system for positioning the text is not quite elegant. My solution is, when you've got a text which is inside a group with transform=scale(1,- 1) then instead of text x=1

[svg-developers] Re: Providing for multiple browsers

2008-07-02 Thread Frank Bruder
--- In svg-developers@yahoogroups.com, cwflamont [EMAIL PROTECTED] wrote: My own attempts are at: http://www.gateho.nildram.co.uk/temp/graphics/SVG/ ... Viewing the source of these in Ff shows that something is stripping out the '--' after the first 'endif', which I do not understand

[svg-developers] Re: Another Cross-browser Compatibility Question

2008-07-11 Thread Frank Bruder
--- In svg-developers@yahoogroups.com, cwflamont [EMAIL PROTECTED] wrote: Should Opera do this?: http://www.gateho.nildram.co.uk/temp/graphics/SVG/ svg_circle_object_onload_debug.html Surely the colour should change before the final alert appears? I was quite surprised to have Safari

[svg-developers] Re: Move a point of a path

2008-08-05 Thread Frank Bruder
--- In svg-developers@yahoogroups.com, pete.haikonen [EMAIL PROTECTED] wrote: Dear list, say I have a path: path d=M 1 2 C 3 4 5 6 7 8 / i.e. 4 curve points. Please, how do I change the position of a point? In Javascript? One way is to rebuild the d attribute and re-assign it but there

[svg-developers] Re: stroke-width values

2008-08-22 Thread Frank Bruder
The relevant specification is http://www.w3.org/TR/SVG11/coords.html#Units In SVG 1px is defined to be equal to one user unit, even if the viewBox, width, and height attributes are such that one user unit does not get mapped to one physical pixel. Other units are derived from px based on how many

[svg-developers] Drawing Stars

2008-08-25 Thread Frank Bruder
--- In svg-developers@yahoogroups.com, Richard Pearman [EMAIL PROTECTED] wrote: Sometimes filters do strange things, for example in the Book 1 title page, the background should be black with stars (using a filter because I couldn't be bothered drawing loads of stars - and it also saved

[svg-developers] Re: Need help with interactive animation map

2008-08-25 Thread Frank Bruder
--- In svg-developers@yahoogroups.com, jimew123456789 [EMAIL PROTECTED] wrote: Hello! I want an animation to start at a specific time after a button is pressed. For example change the color of a rect 5 seconds after Button X is pressed and change the color of another rect 3 seconds after

[svg-developers] Re: Named colors revisited

2008-09-05 Thread Frank Bruder
--- In svg-developers@yahoogroups.com, Erik Dahlström [EMAIL PROTECTED] wrote: On Thu, 04 Sep 2008 13:20:06 +0200, markdyson.13441 [EMAIL PROTECTED] wrote: This is a follow-up to a question I asked several weeks ago. Apologies for the delay, I had medical issues. The question was

[svg-developers] new comic lettering font in SVG format

2008-09-06 Thread Frank Bruder
Hello, everyone who publishes online comics in SVG format might be interested in this. My comic lettering font, Tomson Talks, is now available from the Open Font Library at http://openfontlibrary.org/media/files/skotan/310 It is licensed under the SIL Open Font License. There are a lot of

[svg-developers] Re: Of rainbows and doughnuts

2008-09-28 Thread Frank Bruder
--- In svg-developers@yahoogroups.com, ddailey [EMAIL PROTECTED] wrote: (Apologies for the cross-posting but there are folks in each place who are not in both, and relevance might exist for folks in either place) I started wondering yesterday if I could make a color wheel. In the page at

[svg-developers] Re: dynamically registered event listener does not work as the same as static one

2008-10-04 Thread Frank Bruder
function Grab(evt) { // find out which element we moused down on var targetElement = evt.target; // you cannot drag the background itself, so ignore any attempts to mouse down on it if ( BackDrop != targetElement ) {

[svg-developers] Re: Detect SMIL presence with Javascript

2008-10-04 Thread Frank Bruder
When the feature strings don't work, here's a method I've been using. Start your script delayed with a setTimeout command. svg onload=startScript=window.setTimeout('animateIt()', 500) ... and use the onbegin handler to cancel the script if declarative animation starts animate

[svg-developers] Re: TTF-Font

2008-10-04 Thread Frank Bruder
You should put the animateTransform element behind the tspan. I don't know about the current version, but some versions of Firefox didn't display text, when something else than tspan, or a elements was in the text element before the text. It is allowed, though, and does work in other user

[svg-developers] Re: TTF-Font

2008-10-06 Thread Frank Bruder
--- In svg-developers@yahoogroups.com, Hago Ziegler [EMAIL PROTECTED] wrote: Andreas Neumann schrieb: ... Firefox doesn't support SVG fonts at all, currently. Yes, I noticed in the meanwhile, that Firefox doesn't show anything, when I use SVG-Fonts. What is the solution? How can

[svg-developers] Re: Javascript colour flashing on the fly

2008-10-09 Thread Frank Bruder
The argument of the function fade should be called event, not target. With the previously defined function getTarget, the first part in fade can be simplified to var target = getTarget(event); Or otherwise you don't need to define an extra function for it. Since you start the animation with

[svg-developers] Things I'd program if I had the time

2008-10-26 Thread Frank Bruder
Hi, I wrote this list of ideas recently[12], and thought I should re-post here those items which are SVG related (which is a majority of the full list.) Things I'd like to program if only I had the time. Please let me know [1] if you're aware of already existing projects which come close to

[svg-developers] Re: Things I'd program if I had the time

2008-10-27 Thread Frank Bruder
--- In svg-developers@yahoogroups.com, Jake Beard [EMAIL PROTECTED] wrote: I was going to hold off on posting this until it had gone through a few more iterations, but I am working on a script that transforms svg, either inline or embedded, into VML by leveraging dojox.gfx. The project

[svg-developers] Re: midpoint(s) of a Bezier curve

2008-10-29 Thread Frank Bruder
Let p0, p1, p2, p3 denote the control points of a cubic Bezier curve. p0 and p3 are the start and end point respectively. To get a better idea of the following, you should take paper and pencil and draw a sketch. Connect the control points with lines. Now place three points, q0, q1, q2, halfway

[svg-developers] Re: SVG Tiny and eliptical arcs

2008-10-29 Thread Frank Bruder
SVG Tiny is targeted at devices with high restrictions in CPU speed and memory size. Just calculating the center point of an elliptical arc requires calculation of a sqare root and trigonometric functions (see http://www.w3.org/TR/SVG11/implnote.html#ArcConversionEndpointToCenter ), and is

[svg-developers] Re: Interactive access to interpolated states of an SVG SMIL animation

2008-11-03 Thread Frank Bruder
When the slider is moved, you can call setCurrentTime() on the root element http://www.w3.org/TR/SVG11/struct.html#InterfaceSVGSVGElement First you'll have to call pauseAnimations() so the animations will not run when the slider isn't moved. If you need to obtain any values for the time to which

[svg-developers] Re: getElementById-in-firefox-bug

2008-11-07 Thread Frank Bruder
Testing in Firefox 3.0.1 showed that using 'xml:id' does not work. But Firefox implements a Javascript function to evaluate XPath expressions, so I figured it would be possible to find the element this way. Here's the code for a function which works with both 'id' and 'xml:id' in Firefox, and

[svg-developers] Re: Using Batik - can I add a buffer zone

2008-11-12 Thread Frank Bruder
Use the -a, -w, and -h options of the rasterizer. If, for example, the image has a viewBox of 0 0 300 400 and you need 10 units offset, your command could be java -jar batik-rasterizer.jar -m image/jpeg -a -10,-10,320,420 -w 320 -h 420 -bg 255.255.255.255 mygraphic.svg --- In

[svg-developers] Re: A full SVG 1.1 spec editor

2008-11-18 Thread Frank Bruder
As for SVG to PNG converters, Apache Batik does support SVG fonts. If you show me the file with which you've tested it, I could probably find the error. --- In svg-developers@yahoogroups.com, caio ariede [EMAIL PROTECTED] wrote: I'm searching any editor that support full SVG 1.1 spec, including

[svg-developers] Re: document.addEventListener ?

2008-11-19 Thread Frank Bruder
From my understanding that should work, and in some browsers it does. To make it work in the other browsers too you could try it with window.addEventListener(click, click, false); or document.documentElement.addEventListener(click, click, false); Might be they don't both work the same way (if

[svg-developers] Re: adding image dynamically

2008-11-21 Thread Frank Bruder
sample code: var selection = document.getElementById(anyElement); var bbox = selection.getBBox(); var cx = bbox.x + bbox.width/2; var cy = bbox.y + bbox.height/2; var width = 100; var height = 100; var x = cx-width/2; var y = cy-width/2; var image =

[svg-developers] Re: Use of SVG for map production in map.search.ch

2008-11-21 Thread Frank Bruder
If they'd use the request header for browser switching, and send the SVG content to browsers in which it works, then users might become more aware that there's a difference. I agree that it's interesting to know. There should be a variation on the SVG logo which specifically stands for SVG

[svg-developers] Re: Inverted mask?

2008-11-22 Thread Frank Bruder
To achieve this you would have to paint your mask in black on a white background. Unfortunately there's no way to set a background color for a mask. It's alway transparent/equivalent to black. What you can do is place a white rectangle of large dimension as the first element in your mask and

[svg-developers] Re: Report on SVG Viewer Performance

2008-12-03 Thread Frank Bruder
Great work so far. Just three comments: - You identify your platform and the user agents you've tested, but since Batik is a Java application it would make sense to also state which JVM version was used. - Your testing method does not necessarily measure a relevant benchmark. A scripting engine

[svg-developers] Re: Report on SVG Viewer Performance

2008-12-08 Thread Frank Bruder
--- In svg-developers@yahoogroups.com, G. Wade Johnson [EMAIL PROTECTED] wrote: On Thu, 04 Dec 2008 06:12:30 - Frank Bruder [EMAIL PROTECTED] wrote: - Your testing method does not necessarily measure a relevant benchmark. A scripting engine which queues events in such a way

[svg-developers] Re: Why is that?

2008-12-10 Thread Frank Bruder
You'd have to make svg the default namespace with xmlns=http://www.w3.org/2000/svg; then it should work. Except maybe in Internet Explorer. I'm not sure how, or if, xslt and plugins go together. --- In svg-developers@yahoogroups.com, dupemenot [EMAIL PROTECTED] wrote: Its weird that I have to

[svg-developers] Re: Stroke width inside the shape

2008-12-12 Thread Frank Bruder
You could do this with a clip path. Sample code snippet: defs clipPath id=cp_poly1 use xlink:href=#poly1/ /clipPath /defs polygon id=poly1 points=... clip-path=url(#cp_poly1) stroke=blue stroke-width=5px/ The stroke is drawn centered around the outline, but the outer part is clipped by using

[svg-developers] Re: how to overcome requirement of SVG viewer

2008-12-12 Thread Frank Bruder
I don't think there's much value in doing so. Flash requires a plugin. SVG is supported natively by most browsers. Raster graphic formats don't support interactivity or links, and are often larger in file size than SVG. To provide fallback content in PNG or JPEG format Batik probably provides the

[svg-developers] Re: Firefox2 vs Firefox3 (code)

2008-12-18 Thread Frank Bruder
My guess would be that the a element with an empty xlink:href attribute causes the browser to reload the same document when you click it, after the code got executed. Try replacing the a with g style=cursor:pointer; Hopefully that'll fix it. Regards, Frank --- In svg-developers@yahoogroups.com,

Re : Re : [svg-developers] Re: Firefox2 vs Firefox3 (code)

2008-12-18 Thread Frank Bruder
I didn't see this was solved already when I wrote my last message, because this is spread out over four different threads now. Apparently the list doesn't recognize a message belongs to the same topic if the 'Re:' comes before '[svg-developers]' in the subject line. However. Instead of using the

[svg-developers] Re: Safari 3.2.1 with ASV 3.0 won't View Source

2008-12-23 Thread Frank Bruder
--- In svg-developers@yahoogroups.com, Kenneth Nellis nelli...@... wrote: I wonder if a 2nd pair of eyes might see a problem with my SVG code in this page: http://mysite.verizon.net/nellisks/svg/kakuro/wp.07-10-28.svg Safari 3.2.1 with ASV3 and Firefox 3.0.4 and Camino 1.6.5 render

[svg-developers] Re: Tubefy

2008-12-23 Thread Frank Bruder
Those examples are very impressive. You're aware that something similar could be done with filters. But not quite the same. One step in this would be using a Gaussian blur. The Hello Lucifer example is one in which this wouldn't quite work. It could look similar in the center, but because the

[svg-developers] Re: Stroke width inside the shape -- Bug in Opera 9.61 and IE/ASV ???

2008-12-23 Thread Frank Bruder
--- In svg-developers@yahoogroups.com, Helder Magalhães helder.magalh...@... wrote: Of course that, even in case it is an error, proper protection should exist in implementations (IMHO a crash is not acceptable behavior)... This inspired this week's strip of my SVG powered photo webcomic:

[svg-developers] Re: SVG chart project

2008-12-30 Thread Frank Bruder
--- In svg-developers@yahoogroups.com, dakabbe daka...@... wrote: 1. I want to convert these charts in jpg/png without using batik (because I havent java on my server) ... is there any other command-line tool avaible? ImageMagick can read SVG. I don't know how much of the specification

[svg-developers] Re: More cairo/svg2pdf difficulties

2009-01-02 Thread Frank Bruder
--- In svg-developers@yahoogroups.com, John Delacour j...@... wrote: It seems that svg2pdf, using Cairo, balks at textanything/text and gives a bus error. If anyone knows what might be the reason, and a solution, I'd be glad to hear it but in order to get on with things I'm thinking of

[svg-developers] Re: displaying svg on IE after 12-31-08

2009-01-02 Thread Frank Bruder
--- In svg-developers@yahoogroups.com, richard.trigaux trigaux.rich...@... wrote: This would not be good on a commercial site however, where we must have to do with our client's ways. But why not Please try this site with a standard compliant browser like Opera or Firefox, and see the

[svg-developers] Re: Embedding a swf file into SVG doc

2009-01-02 Thread Frank Bruder
--- In svg-developers@yahoogroups.com, Cameron McCormack c...@... wrote: huangshan04: Does anybody know how to embed a swf file in a svg document? What element should be used? I don’t know of any user agent that supports rendering WMF inside SVG. If your SVG user agent supported WMF

[svg-developers] Re: addEventListener Not working in mozilla

2009-01-02 Thread Frank Bruder
The question is, what is del? What does it do? Since you set the event listener at a use element I think it is probably a problem with event.target vs. event.currentTarget. Is anything reported on the error console when you click at the element? You can try putting an alert right as the first

[svg-developers] Re: 3D Graphics in SVG

2009-01-03 Thread Frank Bruder
There's SVG-VML-3D, a Javascript library for 3D graphics which uses SVG (or in IE VML) for displaying: http://www.lutanho.net/svgvml3d/ I've described my own idea of what an X3D to SVG converter could do in a blog entry: http://de.blog.360.yahoo.com/blog-rW.z7QIjfqIuNkZiEK3N?p=75 But I'm not

[svg-developers] Are glyph-name lists comma or space separated?

2009-01-03 Thread Frank Bruder
Hello, according to the SVG 1.1 specification the glyph-name attribute of glyph elements, and the g1 and g2 attributes of hkern and vkern elements both have the format name [, name ]* which would imply a comma separated list. In the section Basic Data Types under list of xxx the SVG 1.1

[svg-developers] Re: addEventListener Not working in mozilla

2009-01-06 Thread Frank Bruder
I've created a test file which uses the exact same code you posted here, and for me it worked fine in Firefox 3.0.4 for Linux. I can't send attachments over the list, but I'll send the file to you directly in a separate mail. Tell me whether this stripped down test case works for you or not. If it

[svg-developers] Re: Did i miss a reason that can cause an SVG file to not result in an image?

2009-01-16 Thread Frank Bruder
Some problems with SVGZ, and with server configuration are mentioned already. But one thing still missing rom the list is that Firefox doesn't display SVGZ files when the server doesn't send the correct content-encoding header, which also means that viewing local SVGZ files over the file:

[svg-developers] Re: Defining reference variables in SVG?

2009-01-17 Thread Frank Bruder
--- In svg-developers@yahoogroups.com, Helder Magalhães helder.magalh...@... wrote: Is it possible with SVG to define variables which can then be referred to in multiple places in the XML? For example, I'd like to see something like: As far as I know, XML provides such mechanism. You

[svg-developers] Re: Defining reference variables in SVG?

2009-01-21 Thread Frank Bruder
--- In svg-developers@yahoogroups.com, Kenneth Nellis nelli...@... wrote: On Sat Jan 17, 2009 12:52 am (PST), Frank Bruder redu...@... redurbf wrote: Firefox 3.0.5 doesn't support SVG fonts anyway, but it also fails to parse the document, complaining about an undefined entity