Subscripts; was Re (2): Well-formedness of an entity.

From:	Cameron McCormack <cam@mcc.id.au>
Date:	Wed, 14 Nov 2012 16:03:11 -0800
> ... you'll need to escape it as "&#37;".

OK, thanks, that works.  

Now a more general problem.  How should a subscript be 
made in text in a SVG diagram?  One approach is to use a  
Unicode subscript character such as U+2080.

Another approach is to define an entity with the subscript 
in a tspan element. 
<!ENTITY Sub0 "<svg:tspan font-size='&SubscriptSize;' dy='4'>0</svg:tspan><svg:tspan dx='-3' dy='-4'> </svg:tspan>">
The second tspan restores the baseline.  If that span is empty, the baseline 
is not restored.  Consequently it contains a blank.  Consequently the dx='-3' 
is necessary to undo the displacement of the blank.  Not elegant but works.

A third approach might be to use the baseline-shift property.  I have yet to  
find a specific instance of that.

Any recommendations or suggestions for this little problem?

Thanks again,        ... Peter E.

-- 
123456789 123456789 123456789 123456789 123456789 123456789 123456789 12
Tel +13606390202  Bcc: peasthope at shaw.ca  http://carnot.yi.org/  
"http://members.shaw.ca/peasthope/index.html#Itinerary "

Received on Thursday, 15 November 2012 19:50:14 UTC