bug with positioning Arabic text in SVG/Adobe using 'dy' attribute

Hi all,

It seems that SVG or Adobe has a bug when positioning Arabic text inside SVG.
Consider the following piece of SVG:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
  "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="12cm" height="3.6cm" viewBox="0 0 1000 300" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg">
  <text x="100" y="100" font-family="Traditional Arabic" font-size="50" startOffset="0">
      <tspan dy="30">
        إدارة اÙ"Ù.بÙSع
      </tspan>
  </text>
</svg>

The first character is recognized by the "dy" attribute and goes down 30 pixels, while all the other
characters not. (Keep in mind that Arabic is a right-to-left language, so the first character on the right)
This happens in IE with Adobe SVG plugin v3.03. With other international languages like Chinese this
problem doesn't occur.

The funny thing is that when you put the characters between any western character (a-z), the whole line
does get recognized and all chars go down 30 pixels. An example is this:
xإدارة اÙ"Ù.بÙSعx

My question to all of you guys is:
Is this a bug in SVG or Adobe SVG plugin? Is there a solution to this problem?
Thanks for your help!

Best regards,

William Chau

Received on Tuesday, 11 April 2006 12:35:27 UTC