You are here: Re: arabic « HTML « IT news, forums, messages
Re: arabic

Posted by Jukka K. Korpela on 11/16/07 17:43

Scripsit J.O. Aho:

> mahatma wrote:
>> can anyone tell me - are arabic text blocks (ie persian, egyptian,
>> etc) displayed right-justified, as hebrew is?
>
> Arabic is right-to-left written language and should be right aligned.

Right (no pun intended), and you should therefore use <html dir="rtl"> for a
page in Arabic or in other languages that use the Arabic script, such as
Persian (Farsi). Declaring the language, e.g. via lang="ar", is good
practice, though not practically that important, and it does _not_ imply
writing direction. By HTML rules, the default writing direction is left to
right, and consequently the default alignment is to the left, and you are
_not_ supposed to be able to override this with a language setting but by
setting the dir attribute explicitly.

(Text in Arabic is displayed right to left due to the inherent
directionality of letters, but this does not cover all aspects of writing
direction, and browsers may get it wrong at times. Hence, the dir attribute
is essential.)

> As far as I know hieroglyphs are left-to-right and should be left
> aligned.

I suppose "mahatma" meant Egyptian Arabic, which deviates from Standard
Arabic and exists as a separate written language to some extent (whereas
most other forms of Arabic are basically spoken languages only, Standard
Arabic being the written variant). There is nothing special about Egyptian
Arabic, as opposite to standard Arabic, in HTML authoring, as far as I
know.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация