|
From: <pl...@pi...> - 2011-10-23 19:17:19
|
On 10/23/11 19:41, sfeam (Ethan Merritt) wrote: > On Saturday, 22 October 2011, pl...@pi... wrote: >> http://piments.com/tmp/opera-tabs.png >> >> The three files here are: >> 1. A web based URL with an svg from gnuplot before recent changes. >> 2. An html wrapper on a local server that opera decides to display the >> whole URL not the fn. >> 3. File with "name" based top level svg title. > > So Firefox chooses to display different things, depending on exactly how > you point it at the file. Errm, you will notice I was refering to Opera there not FF. Also point of 2 above was that it was NOT an svg but HTML and shows that display of filenames is not consistent. 1 and 3 differ because 3 is using "name". This was to show how it offered more control. So ,no, this was nothing to do with FF and did not show different behaviour wrt svg depending on how the file was opened. The whole point is that browsers seem to take different choices of what to do if there is no title defined. Getting more consistency would be one reason to define what we want in a coherent way that browsers can display consistently . > And other browsers make other choices. > I think you are presenting a good case that we should not spend too much > effort worrying about the<title> attribute. I think I am presenting a good case why this needs to be dealt with correctly, not ignored. You are free to see things differently , of course. > >> [the] correct place to set this would seem to be when the file is opened, >> ie as an option to set output. >> Could you comment on whether that would fit the logic of more complex >> plots? > > "set output" deals only with controlling the output stream. > It knows nothing about the current terminal type or plot attributes. > The one thing the program remembers after a "set output" command > is the filename, which indeed is what the PostScript terminal > currently uses as a title. But for other terminals it may make no > sense at all. Consider: > set output '|display png:-' > Not very useful as a plot or window title :-) Please read what I wrote. I in nowhere suggested that the current argument for "output" should be used as the svg title. My point was that if you consider this to be a function of the file rather than the terminal (a possition that I have agreed makes sense) it should be dealt with at the time the output file is determined. This means it has to be in set output. It was you who said you thought using terminal "name" was not good and objected to reopening the terminal to reset it. That makes some sense but the overhead of reopening does not seem prohibitive. Going with you idea that this is out of place in set terminal would mean a new option in set output , not using the value of output itself. > > Is your objection to using the current command "set title" > only that the title might not fit in a browser index tab? > My objection is that it _almost certainly_ will not fit in the tab. Opera seems to give it 12 characters. There is little chance that a the plot -title will be that short , thus the text in tab , which is the primary focal point when switching between tabs is rendered of little use for gnuplot svg output. The mod you just committed fixes this from my point of view (thanks) but you seem unhappy with it. I was trying to find a more rigorous solution that would satisfy your more complicated usage. If you are not interested in taking it any further I'll drop it. Current cvs fits my needs fine. regards, Peter. |