W3C home > Mailing lists > Public > public-i18n-bidi@w3.org > July to September 2010

Re: titledir

From: Ehsan Akhgari <ehsan.akhgari@gmail.com>
Date: Sun, 5 Sep 2010 18:15:36 -0400
Message-ID: <AANLkTikLRJEbsT4M5C4hy3S97_BcJeyZWqHfKWzXo-ob@mail.gmail.com>
To: "Aharon (Vladimir) Lanin" <aharon@google.com>
Cc: Ehsan Akhgari <ehsan@mozilla.com>, public-i18n-bidi@w3.org
On 10-09-05 2:37 AM, Aharon (Vladimir) Lanin wrote:
> See below
>
> On Fri, Sep 3, 2010 at 7:21 PM, Ehsan Akhgari <ehsan@mozilla.com> wrote:
>
>> On Fri, Sep 3, 2010 at 6:01 AM, Aharon (Vladimir) Lanin
>> <aharon@google.com> wrote:
>>>> As far as I know, the longdesc attribute points to a URL, and
>>>> therefore is not subject to the same considerations as the title
>>>> attribute.
>>> You have a point. And given that no browser actually supports longdesc,
>> it's
>>> best to simply not mention it.
>>
>> Agreed.
>>
>>>> The alt attribute, as applied to images, _can_ potentially
>>>> be subject to the same concern [as the title attribute], IMO.
>>>> However, I think in order to
>>>> determine the direction of the alternate text, I think it should be
>>>> safe to specify that user agents are supposed to use the value of the
>>>> dir attribute on the img element (or its computed CSS direction).
>>> It is indeed the intent to propose, for both alt and title, that their
>>> direction should be specified by the element's computed direction (which
>> can
>>> be set by its dir attribute). However, for title, we are proposing a way
>> to
>>> override it with titledir because it is not unreasonable to want an
>>> opposite-direction title on an element.
>>
>> I agree with all of the above.
>>
>>> Although obviously nothing prevents
>>> an author from doing the same in alt, I don't think that it is a good
>> idea
>>> for the author to do that, and so I don't think that we should encourage
>> it
>>> by giving a way to specify it.
>>
>> Hmm, I'm still not sure why you don't think it's a good idea for an
>> Author to do that.  Let me give an example.  Let's consider the case
>> where in an RTL page, I want to show a European address (which should
>> be written in LTR) on a map as a static image displayed using an img
>> tag.  In order to support the users who have turned image display off,
>> for example, I may put the address as the alternate text for the
>> image.  But the address will be displayed in RTL mode, which is not
>> what I intend.  I don't see what's different about this use case
>> compared to the one you suggested for supporting @titledir for @title.
>>
>
> There is no reason that the <img> here shouldn't have a dir=ltr on it.

I was somehow under the impression that you're suggesting that we
should not encourage authors to specify a direction of alternate text
for images by specifying the dir attribute on img tags to affect that
direction.  But it seems to me that you now agree with this
suggestion.

Ehsan
Received on Monday, 6 September 2010 07:21:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 6 September 2010 07:22:00 GMT