RE: line breaks within arabic text containing letin characters

Jasper,
 
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
Arabic)
 
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,
RI
 


============
Richard Ishida
W3C

contact info:
http://www.w3.org/People/Ishida/

W3C Internationalization:
http://www.w3.org/International/

Publication blog:
http://people.w3.org/rishida/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