W3C home > Mailing lists > Public > www-svg@w3.org > April 2006

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

From: William Chau <william.chau@oracle.com>
Date: Mon, 10 Apr 2006 17:43:19 +0200
Message-ID: <005d01c65cb5$7eaf4710$1d80908d@nl.oracle.com>
To: <www-svg@w3.org>, <svg-developers@yahoogroups.com>
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"
<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ع

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

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:07 UTC