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 13:02:49 -0000
To: "'Jasper Michalczik'" <jasper.m@gmx.net>, <www-international@w3.org>
Message-Id: <20041110130249.C44B14F066@homer.w3.org>

Hmm, yes.  You might be interested in reading our advice on use of styling
vs markup for html at
http://www.w3.org/International/questions/qa-bidi-css-markup

Cheers,
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/
 
 

> -----Original Message-----
> From: www-international-request@w3.org 
> [mailto:www-international-request@w3.org] On Behalf Of Jasper 
> Michalczik
> Sent: 10 November 2004 11:44
> To: www-international@w3.org
> Subject: AW: line breaks within arabic text containing letin 
> characters
> 
> 
> Dear Richard,
> 
> I somehow solved the problem in the meanwhile. It happened 
> because I had two classes, one called stdtext and one 
> stdtext_latin. The first one is used for Arabic, the second 
> one for all latin characters. I set the css direction 
> attribute accordingly.
> 
> Now I removed the direction from the stdtext_latin, and it works.
> 
> Thanks for your help,
> 
> Jasper
> 
> 
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: www-international-request@w3.org
> [mailto:www-international-request@w3.org] Im Auftrag von 
> Richard Ishida
> Gesendet: Mittwoch, 10. November 2004 12:09
> An: 'Jasper Michalczik'; www-international@w3.org
> Betreff: 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 13:02:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 19:17:04 GMT