You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Nicolas Socheleau <ni...@quickoffice.com> on 2009/06/04 16:04:58 UTC

nesting baseline-shift

I have a question about baseline-shift.

The SVG spec specifies for the baseline-shift property the following:
"'baseline-shift' properties can nest. Each nested 'baseline-shift' is 
added to previous baseline shift values."

http://www.w3.org/TR/SVG11/text.html#BaselineShiftProperty

How does it apply when a <text/> has a baseline-shift and not its
<tspan/> children? I would expect the tspan to be shifted as well.

I attached an example with on the right side my interpretation of the
result.

I'm using Batik 1.7, the latest release on Linux Ubuntu 9.4 with Sun JVM
1.4.2_17.

Nicolas Socheleau

Re: nesting baseline-shift

Posted by Nicolas Socheleau <ni...@quickoffice.com>.
While trying to pinpoint the issue with baseline-shift, I might have
found another issue, related to the animation of baseline-shift.

Here is the issue:

animation of baseline-shift is always using the discrete calcMode. it is
hard-coded.
It make sense for the following case

  <set attributeName="baseline-shift" to="super"/>

Though the baseline-shift property can be set to a length. So a linear
calcMode should be allowed in the following case:

  <animate attributeName="baseline-shift" from="-20%" to ="20%"/>

the "discrete" calcMode would be enforced if either from, to, by or
values are an identifier. If they are all lengths, then other calcMode
should be permitted.

It would apply to properties whose value can be a identifier or a
length. The calcMode resolution should take into account the actual
values being used to animate the property to allow/forbid use of some of
the modes.

Nicolas

On Tue, 2009-06-16 at 18:18 -0500, Nicolas Socheleau wrote:
> On Tue, 2009-06-09 at 22:22 -0500, Cameron McCormack wrote:
> > Hi Nicolas.
> >
> > Nice to see a familiar name!
> 
> Hello Cameron.
> 
> > Looks like a bug, please file it on https://issues.apache.org/bugzilla/.
> >
> 
> See bug #47359 :
> https://issues.apache.org/bugzilla/show_bug.cgi?id=47359
> 
> Nicolas
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: nesting baseline-shift

Posted by Nicolas Socheleau <ni...@quickoffice.com>.
On Tue, 2009-06-09 at 22:22 -0500, Cameron McCormack wrote:
> Hi Nicolas.
> 
> Nice to see a familiar name!

Hello Cameron.

> Looks like a bug, please file it on https://issues.apache.org/bugzilla/.
> 

See bug #47359 :
https://issues.apache.org/bugzilla/show_bug.cgi?id=47359

Nicolas


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: nesting baseline-shift

Posted by Cameron McCormack <ca...@mcc.id.au>.
Hi Nicolas.

Nice to see a familiar name!

Nicolas Socheleau:
> I have a question about baseline-shift.
> 
> The SVG spec specifies for the baseline-shift property the following:
> "'baseline-shift' properties can nest. Each nested 'baseline-shift' is 
> added to previous baseline shift values."
> 
> http://www.w3.org/TR/SVG11/text.html#BaselineShiftProperty
> 
> How does it apply when a <text/> has a baseline-shift and not its
> <tspan/> children? I would expect the tspan to be shifted as well.

Yes I think you are right.

> I attached an example with on the right side my interpretation of the
> result.

Looks like a bug, please file it on https://issues.apache.org/bugzilla/.

-- 
Cameron McCormack ≝ http://mcc.id.au/

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org