|
From: <pl...@pi...> - 2009-09-15 00:56:12
|
Ethan Merritt wrote:
> 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.
I don't follow how you relate this to the space in super script of this
example.
The newline in the input represents whitespace and is hence present in
the rendition of the page as a space. Since it is just one character the
question of collapse/preserve does not seem to apply. The fact that the
newline it is not in a tspan does not mean it should be ignored.
The following html snippet displays in a similar way and would seem to
be correct. Only c and d a juxtaposed (view source if your email client
is parsing this and showing "a b cd e f")
<html>
<body>
<span>a</span>
<span>b</span>
<span>c</span><span>d</span>
<span>e
f</span>
</body>
</html>
If the desired output is "abc" rather than "a b c" , it needs to be
output on the same line to prevent inserting whitespace.
regards, Peter.
>
>> 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
>
|