|
From: Ethan M. <merritt@u.washington.edu> - 2009-09-14 21:53:47
|
On Monday 14 September 2009 pl...@pi... wrote:
>
> help svg refers the user to read help enhanced, this topic contains
> several refernces to the use of /Symbol :
>
> set xlabel 'Time (10^6 {/Symbol m}s)'
Hmm. That's a historical artifact. The enhanced text mode was originally a
feature of the postscript terminal only, so of course the original
documentation assumed you were using postscript. It should be re-written.
On Monday 14 September 2009 13:41:21 Mojca Miklavec wrote:
> >> - The superscripted characters are spaced out
>
> I don't know the specification, but removing the space, that means changing
> <tspan>e</tspan>
> <tspan font-size="9.6pt" dy="-6.00pt">iπ</tspan>
> into
> <tspan>e</tspan><tspan font-size="9.6pt" dy="-6.00pt">iπ</tspan>
> helped. I don't know whether this classifies as gnuplot problem or
> viewer problem, but I would expect
> <text>a
> b
> c</text>
> to print out "a b c", not "abc", so without reading exact
> specification, I would vote for browser's behaviour, not for
> gnuplot's, and that particular problem should be rather trivial to fix
> in gnuplot itself.
The SVG spec allows you to either collapse all whitespace into a single blank,
xml:space="default"
or preserve the whitespace in the input.
xml:space="preserve"
The broken browsers (at least some of them) interpret that to mean
"preserve all the whitespace in the input, whether or not it is in a tspan
element". This is a problem.
I reported the bug via Bugzilla some while ago.
> Just a question (I don't know SVG at all, I just saw an example): wouldn't
> <tspan baseline-shift = "super">
> do the job as well?
I don't think such an SVG element was available at the time the driver was
written. Perhaps it could be revisited now. But I don't think this would
handle nested super- and sub- scripts, so it would not be a complete solution.
Ethan
|