W3C home > Mailing lists > Public > www-international@w3.org > October to December 2004

line breaks within arabic text containing letin characters

From: Jasper Michalczik <jasper.m@gmx.net>
Date: Wed, 10 Nov 2004 11:36:31 +0100
To: <www-international@w3.org>
Message-ID: <E1CRpqe-0001aH-2D@frink.w3.org>
Dear all,


I have Arabic HTML containing some Names written in English. The
bidi-Algorithm works fine, I put all the English phrases into span tags with
the attribute dir=ltr, whereas the whole paragraph is set to rtl.

Now if it comes to a place, where a line has to be broken within the English
text, the following  happens:

the Arabic text starts left, then in the same line the English phrase starts
(that's ok), but after the line break, which the browser inserts because of
limited space on that line, the text in line 2 does not continue right to
left, but starts with the Arabic at the right, and then follows the rest of
the English phrase. So it looks like:


en en en ar ar ar ar

en en ar ar ar ar ar


So I get a block on the left of the two lines wich is in English, an one on
the right side that is Arabic. Reading thus starts upper right, folloes to
the left, then down to line 2 staying  on the left side, then jumping to the
right and reading until the middle of the line.



Strange behaviour of both EI and Firefox.


Any suggestions?


Thank You very much!


Jasper Michalczik, Berlin
Received on Wednesday, 10 November 2004 10:37:08 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 21 September 2016 22:37:24 UTC