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 Michael Bierman <mb...@yahoo.com> on 2002/05/19 08:41:07 UTC

dominant-baseline question

The 1.0 DTD reads:

dominant-baseline (auto | autosense-script | no-change | reset | ideographic
| lower | hanging | mathematical | inherit ) #IMPLIED

The 1.0 spec reads:
Value: auto | use-script | no-change | reset-size | alphabetic | hanging |
ideographic | mathematical | central | middle | text-after-edge |
text-before-edge | text-top | textbottom | inherit


The 1.1 DTD reads:
dominant-baseline (auto | autosense-script | no-change | reset | ideographic
| lower | hanging | mathematical | inherit ) #IMPLIED

1.1 spec reads:

Value: auto | use-script | no-change | reset-size | ideographic | alphabetic
| hanging | |mathematical | central | middle | text-after-edge |
text-before-edge | inherit


My questions are:

1. I take it that "text-top" and "textbottom"  were removed from 1.1 ?

2. Why do the DTDs read "autosense-script" but the specs read, "use-script"
(both 1.0 and 1.1)?  Is this an error or is there a reason for this?  If one
is right and one is wrong, which is right?

3. The order has changed of some of the attributes.  Is there any meaning to
this, or was it some purely aesthetic change?

4. "alphabetic" is mentioned in both 1.0 and 1.1 specs, but not the DTDs.

I created a test file:

<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
 "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg xml:space="preserve" viewBox="0 0 600 600" width="600" height="600">

<g id="example1">
<text font-size="40" x="20" y="40">
<tspan dominant-baseline="ideographic">Some Text</tspan><tspan fill="red"
dominant-baseline="hanging">Some Text</tspan></text>
 <line stroke="green" stroke-width="3" x1="0" y1="40" x2="500" y2="40"/>
</g>

<g id="example2">
<text fill="red" font-size="40" x="20" y="80"
dominant-baseline="mathematical">Some Text</text>
<text fill="yellow" font-size="40" x="220" y="80"
dominant-baseline="hanging">Some Text</text>
<line stroke="midnightblue" stroke-width="3" x1="0" y1="80" x2="500"
y2="80"/>
</g>

</svg>


This renders differently in ASV 3 than Batik 1.1.1 or 1.5b2.  In Batik all
text is on the same baseline.  In ASV 3, "example2" renders as expected, but
not "example1" even though as far as I can tell, tspans can have the
dominant-baseline attribute.  Am I mistaken on that?

Thanks very much.

Michael

Re: [svg-developers] Spec question RE: (was dominant-baseline question)

Posted by Jon Ferraiolo <Jo...@adobe.com>.
Michael,
Yes, the SVG working group is aware of this discrepancy and will be fixing 
it. I'm not sure of the details about when or how. Maybe Dean, Chris or 
someone remembers exactly how/when the discrepancies will be resolved.

On behalf of the working group, thanks for the report, thanks for 
persisting, and (particularly from the SVG 1.0 editor) apologies about the 
error.

Jon

At 11:19 AM 5/27/2002 -0700, Michael Bierman wrote:
>I posted this a while ago and got little response.  I also posted it to
>http://lists.w3.org/Archives/Public/www-svg/ but it has never even showed up
>there. (The archive seems to be functional, anyone else having trouble
>posting?)
>
>At any rate, is anyone on the working group aware of the apparent flaw in
>the DTD?
>
>Michael
>
>
>  -----Original Message-----
>From: Michael Bierman [mailto:mbier@yahoo.com]
>Sent: Saturday, May 18, 2002 11:41 PM
>To: SVG Developers
>Cc: Batik Users
>Subject: dominant-baseline question
>
>
>   The 1.0 DTD reads:
>
>   dominant-baseline (auto | autosense-script | no-change | reset |
>ideographic | lower | hanging | mathematical | inherit ) #IMPLIED
>
>   The 1.0 spec reads:
>   Value: auto | use-script | no-change | reset-size | alphabetic | hanging |
>ideographic | mathematical | central | middle | text-after-edge |
>text-before-edge | text-top | textbottom | inherit
>
>
>   The 1.1 DTD reads:
>   dominant-baseline (auto | autosense-script | no-change | reset |
>ideographic | lower | hanging | mathematical | inherit ) #IMPLIED
>
>   1.1 spec reads:
>
>   Value: auto | use-script | no-change | reset-size | ideographic |
>alphabetic | hanging | |mathematical | central | middle | text-after-edge |
>text-before-edge | inherit
>
>
>   My questions are:
>
>   1. I take it that "text-top" and "textbottom"  were removed from 1.1 ?
>
>   2. Why do the DTDs read "autosense-script" but the specs read,
>"use-script" (both 1.0 and 1.1)?  Is this an error or is there a reason for
>this?  If one is right and one is wrong, which is right?
>
>   3. The order has changed of some of the attributes.  Is there any meaning
>to this, or was it some purely aesthetic change?
>
>   4. "alphabetic" is mentioned in both 1.0 and 1.1 specs, but not the DTDs.
>
>   I created a test file:
>
>   <?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
>   <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
>    "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
>   <svg xml:space="preserve" viewBox="0 0 600 600" width="600" height="600">
>
>   <g id="example1">
>   <text font-size="40" x="20" y="40">
>   <tspan dominant-baseline="ideographic">Some Text</tspan><tspan fill="red"
>dominant-baseline="hanging">Some Text</tspan></text>
>    <line stroke="green" stroke-width="3" x1="0" y1="40" x2="500" y2="40"/>
>   </g>
>
>   <g id="example2">
>   <text fill="red" font-size="40" x="20" y="80"
>dominant-baseline="mathematical">Some Text</text>
>   <text fill="yellow" font-size="40" x="220" y="80"
>dominant-baseline="hanging">Some Text</text>
>   <line stroke="midnightblue" stroke-width="3" x1="0" y1="80" x2="500"
>y2="80"/>
>   </g>
>
>   </svg>
>
>
>   This renders differently in ASV 3 than Batik 1.1.1 or 1.5b2.  In Batik all
>text is on the same baseline.  In ASV 3, "example2" renders as expected, but
>not "example1" even though as far as I can tell, tspans can have the
>dominant-baseline attribute.  Am I mistaken on that?
>
>   Thanks very much.
>
>   Michael
>
>
>[Non-text portions of this message have been removed]
>
>
>------------------------ Yahoo! Groups Sponsor ---------------------~-->
>Save 30% on Web addresses! Get with the times, get a web site. Share 
>information, pictures, your hobby, or start a business. Great names are 
>still available- get yours before someone else does!
>http://us.click.yahoo.com/XmK3jA/nFGEAA/sXBHAA/1U_rlB/TM
>---------------------------------------------------------------------~->
>
>-----
>To unsubscribe send a message to: svg-developers-unsubscribe@yahoogroups.com
>-or-
>visit http://groups.yahoo.com/group/svg-developers and click "edit my 
>membership"
>----
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/


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


Re: Spec question RE: (was dominant-baseline question)

Posted by Dean Jackson <de...@w3.org>.
Hi Michael,

On Mon, 27 May 2002, Michael Bierman wrote:

> I posted this a while ago and got little response.  I also posted it to
> http://lists.w3.org/Archives/Public/www-svg/
> <http://lists.w3.org/Archives/Public/www-svg/>  but it has never even
> showed up there. (The archive seems to be functional, anyone else having
> trouble posting?)

Now I'm feeling bad. I've seen both of Michael's previous
post's on this topic and have only got around to responding
now. Sorry Michael.

Regarding the messages not appearing on www-svg: I'm not sure
what is happening there. To be honest I've given up moderating
that list. People get an automatic response when their email
doesn't make it, and while that isn't as good as me checking every
failed post by hand it saves me a lot of time. I just checked and
your messages were not there (I'll note that of the failed messages,
more than 99.5% are spam and the rest are subscribe messages).

Now onto the question.

> At any rate, is anyone on the working group aware of the apparent flaw
> in the DTD? 

Yes. 

> The 1.0 DTD reads:
>  
> dominant-baseline (auto | autosense-script | no-change | reset |
> ideographic | lower | hanging | mathematical | inherit ) #IMPLIED
>
> The 1.0 spec reads:
> Value: auto | use-script | no-change | reset-size | alphabetic | hanging
> | ideographic | mathematical | central | middle | text-after-edge |
> text-before-edge | text-top | textbottom | inherit

Of the above two, the DTD is more correct, but both are now
out of date.

> The 1.1 DTD reads:
> dominant-baseline (auto | autosense-script | no-change | reset |
> ideographic | lower | hanging | mathematical | inherit ) #IMPLIED
>  
> 1.1 spec reads:
>  
> Value: auto | use-script | no-change | reset-size | ideographic |
> alphabetic | hanging | |mathematical | central | middle |
> text-after-edge | text-before-edge | inherit
>  
>  
> My questions are: 
>  
> 1. I take it that "text-top" and "textbottom"  were removed from 1.1 ?

Yes. I can't remember the reasoning, but this property is 
actually inherited from XSL, so we just followed what they
had done.

> 2. Why do the DTDs read "autosense-script" but the specs read,
> "use-script" (both 1.0 and 1.1)?  Is this an error or is there a reason
> for this?  If one is right and one is wrong, which is right?

I think one of them is wrong. I can't say for certain which one,
but I'll check this out very soon. Again, the XSL definition will
be the authoratative one.

> 3. The order has changed of some of the attributes.  Is there any
> meaning to this, or was it some purely aesthetic change? 

There is no reason to the change of order.

> 4. "alphabetic" is mentioned in both 1.0 and 1.1 specs, but not the
> DTDs.

Hmmm... I'll check that as well.

Dean

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


Spec question RE: (was dominant-baseline question)

Posted by Michael Bierman <mb...@yahoo.com>.
I posted this a while ago and got little response.  I also posted it to
http://lists.w3.org/Archives/Public/www-svg/ but it has never even showed up
there. (The archive seems to be functional, anyone else having trouble
posting?)

At any rate, is anyone on the working group aware of the apparent flaw in
the DTD?

Michael


 -----Original Message-----
From: Michael Bierman [mailto:mbier@yahoo.com]
Sent: Saturday, May 18, 2002 11:41 PM
To: SVG Developers
Cc: Batik Users
Subject: dominant-baseline question


  The 1.0 DTD reads:

  dominant-baseline (auto | autosense-script | no-change | reset |
ideographic | lower | hanging | mathematical | inherit ) #IMPLIED

  The 1.0 spec reads:
  Value: auto | use-script | no-change | reset-size | alphabetic | hanging |
ideographic | mathematical | central | middle | text-after-edge |
text-before-edge | text-top | textbottom | inherit


  The 1.1 DTD reads:
  dominant-baseline (auto | autosense-script | no-change | reset |
ideographic | lower | hanging | mathematical | inherit ) #IMPLIED

  1.1 spec reads:

  Value: auto | use-script | no-change | reset-size | ideographic |
alphabetic | hanging | |mathematical | central | middle | text-after-edge |
text-before-edge | inherit


  My questions are:

  1. I take it that "text-top" and "textbottom"  were removed from 1.1 ?

  2. Why do the DTDs read "autosense-script" but the specs read,
"use-script" (both 1.0 and 1.1)?  Is this an error or is there a reason for
this?  If one is right and one is wrong, which is right?

  3. The order has changed of some of the attributes.  Is there any meaning
to this, or was it some purely aesthetic change?

  4. "alphabetic" is mentioned in both 1.0 and 1.1 specs, but not the DTDs.

  I created a test file:

  <?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
   "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
  <svg xml:space="preserve" viewBox="0 0 600 600" width="600" height="600">

  <g id="example1">
  <text font-size="40" x="20" y="40">
  <tspan dominant-baseline="ideographic">Some Text</tspan><tspan fill="red"
dominant-baseline="hanging">Some Text</tspan></text>
   <line stroke="green" stroke-width="3" x1="0" y1="40" x2="500" y2="40"/>
  </g>

  <g id="example2">
  <text fill="red" font-size="40" x="20" y="80"
dominant-baseline="mathematical">Some Text</text>
  <text fill="yellow" font-size="40" x="220" y="80"
dominant-baseline="hanging">Some Text</text>
  <line stroke="midnightblue" stroke-width="3" x1="0" y1="80" x2="500"
y2="80"/>
  </g>

  </svg>


  This renders differently in ASV 3 than Batik 1.1.1 or 1.5b2.  In Batik all
text is on the same baseline.  In ASV 3, "example2" renders as expected, but
not "example1" even though as far as I can tell, tspans can have the
dominant-baseline attribute.  Am I mistaken on that?

  Thanks very much.

  Michael