|
From: <pl...@pi...> - 2011-10-21 08:36:41
|
On 10/21/11 10:14, Christoph Bersch wrote: > 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 > Thanks for the link. <http://www.w3.org/TR/2000/CR-SVG-20001102/struct.html#DescriptionAndTitleElements> >> Authors should always provide a 'title' child element to the outermost 'svg' element within a stand-alone SVG document. The 'title' child element to an 'svg' element serves the purposes of identifying the content of the given SVG document fragment. Since users often consult documents out of context, authors should provide context-rich titles. >> It seems gnuplot should be adding such a title at the outermost level as I suggested doing. Peter. |