W3C home > Mailing lists > Public > www-international@w3.org > July to September 2009

RE: Comments on Best Practices for Authoring HTML: RTL scripts

From: Richard Ishida <ishida@w3.org>
Date: Wed, 29 Jul 2009 17:39:37 +0100
To: "'CE Whitehead'" <cewcathar@hotmail.com>
Cc: <www-international@w3.org>
Message-ID: <014501ca106b$2998b820$7cca2860$@org>
Sent: 28 July 2009 00:34
To: ishida@w3.org; www-international@w3.org
Subject: RE: Comments on Best Practices for Authoring HTML: RTL scripts


Section 4  Best Practice 2
" By default the dir attribute setting should produce the correct

However, see the attached html page! 
(& sorry for this cumbersome phonetic transcription of Arabic [which may
have an error or two] and this leaden morpheme-by-morpheme translation [in
which I hope there are no errors]; I just used code from a page I had
available; I did not feel like typing in more unicode character numbers at
this time; 
regarding the alignment of the first six verses/half-verses, 
the following codes produce the following effects:
p align="right" class="ArabicOriginal" Displays o.k. with text rtl
p align="left" class="ArabicOriginal" aligns to the left as expected; text
runs rtl as it should
p class="ArabicOriginal" dir="rtl" still aligns to the left 

RI: That's because align="left" is inherited from the body tag. This is a
good example of why you should follow this best practice.  I also changed
the wording of the bp to say " Only use text-align where you specifically
want to override the current default alignment. "

p align="right" aligns to the right; margin is off because I specify a
margin with the class attribute!
p align="right" class="ArabicOriginal" dir="rtl"aligns properly to the right
p class="ArabicOriginal" dir="rtl" even coming in the middle of
right-aligned paragraphs, it aligns to the left--and this with the
directionality attribute set [which is wholly unneeded here since the whole
block is in Arabic script!])
I'm sure I've misunderstood here; please let me know how I've misunderstood
Best Practice 2.

Received on Wednesday, 29 July 2009 16:39:48 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:40:57 UTC