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

RE: line breaks within arabic text containing letin characters

From: Richard Ishida <ishida@w3.org>
Date: Wed, 10 Nov 2004 11:08:33 -0000
To: "'Jasper Michalczik'" <jasper.m@gmx.net>, <www-international@w3.org>
Message-Id: <20041110110834.9C6FC4EFA5@homer.w3.org>

I don't see such odd behaviour in IE6. I suspect something is strange in
your code.  I suggest you:
1. See if the same happens with
http://people.w3.org/rishida/scripts/samples/wrapping.html  in IE6 (click on
2. Read "What you need to know about the bidi algorithm and inline markup"
<http://www.w3.org/International/articles/inline-bidi-markup/> and check
your code - in particular, it is unlikely that you need to express the
directionality of your English text unless punctuation is involved.
3. check your code, and if you still can't understand why it doesn't work,
send the relevant bit of code to this list.
hope that helps,

Richard Ishida

contact info:

W3C Internationalization:

Publication blog:



	From: www-international-request@w3.org
[mailto:www-international-request@w3.org] On Behalf Of Jasper Michalczik
	Sent: 10 November 2004 10:37
	To: www-international@w3.org
	Subject: line breaks within arabic text containing letin characters

	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 11:08:35 UTC

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