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

Reply via email to