|
From: Christoph B. <us...@be...> - 2011-10-21 08:15:01
|
On 21.10.2011 07:43, Ethan Merritt wrote: > >> The 'title' option sets the svg<title> element that is displayed by >> some svg viewers in the title bar. It is not visible in the plot itself. >> If not supplied it will be the same as 'js_id' value. > > This isn't quite correct either, at least for me running firefox here. > Each plot has a title, and it pops up in a little box whenever the > mouse is over that plot. As you point out, the title of the first > plot also is displayed in the top window bar. But I think that may > be a firefox bug/idiosyncracy. Opera and Konqueror display the > filename instead. I don't mind adding something to make firefox > display a different title, but so far I have not figured out how :-( I guess, the problem is, that according to the standard it is up to the viewer to decide how to handle the 'title' elements: <http://www.w3.org/TR/2000/CR-SVG-20001102/struct.html#DescriptionAndTitleElements> Firefox seems to show the first element in the title bar, regardless of where it was specified (the plot titles are inside groups), but Opera uses only a title element which is placed in the top level of the document structure: <?xml version="1.0" encoding="UTF-8" standalone="no" ?> <svg width="200" height="200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>The SVG title</title> <rect x="5" y="5" width="190" height="190" /> </svg> So, writing the <title> next to the <desc> works fine. Christoph |