archive-program icon indicating copy to clipboard operation
archive-program copied to clipboard

Change text direction in GUIDE_ar.md to RTL

Open mhalsubhi opened this issue 5 years ago • 2 comments

The Arabic language is "RTL(Right-to-left)" language, so I change the direction of GUIDE_ar.md file to RTL by contain each element inside div with dir="rtl" attribute

mhalsubhi avatar Oct 02 '20 13:10 mhalsubhi

I’m pretty sure browsers will automatically interpret Arabic text as right-to-left, even without an explicit dir=rtl attribute.

j-f1 avatar Oct 02 '20 13:10 j-f1

According to my understanding actually, it's not because the default value of dir attribute is ltr even if the browser's language is set to Arabic, the browser will set the correct direction automatically if the default value of dir is auto see this example

also, the issue it is becoming very hard to read when mixing Arabic and English here's how we read it before fix image

the blue arrows (number 3) it's difficult and uncomfortable to read

here's how we read it after fix image this is the comfortable and correct way we read Arabic mixed with English.

mhalsubhi avatar Oct 02 '20 15:10 mhalsubhi