Re: I18N-ISSUE-8: Direction attributes needed [WOFF]

I think that if the dir attribute were omitted it would be best to fall 
back to a default, which would be LTR, as is the case in HTML and SVG.

This would still result in no impact to deployed content.

Let us know if/when you need examples.

Thanks,
RI


On Wednesday, December 15, 2010, 8:14:23 PM, Internationalization wrote:

ICWGIT> I18N-ISSUE-8: Direction attributes needed [WOFF]

ICWGIT> http://www.w3.org/International/track/issues/8

ICWGIT> Raised by: Richard Ishida
ICWGIT> On product: WOFF

ICWGIT> 6.2.1 Extended Metadata Block
ICWGIT> http://www.w3.org/TR/WOFF/#Metadata

ICWGIT> WG Reviewed: Yes

Thanks for your comment, which is being tracked as
http://dev.w3.org/webfonts/WOFF/DoC/issues-lc-2010.html#issue-14


ICWGIT> It should be possible to use markup to set the base direction
ICWGIT> of any element in order to enable correct display of
ICWGIT> bidirectional text.  We suggest a dir attribute with the
ICWGIT> values rtl and ltr as a minimum.

I suggest that we accept this comment. This would be consistent with 
other markup at W3C like HTML and SVG.

Richard, I assume that the attribute would be optional and that, if 
omitted, the text direction would be determined by the Unicode 
directionality of the first character?

Thus, there would be no impact on existing deployed content, which at 
this point is (as far as I have seen) mostly in English, with some 
German and Japanese.

Richard, if we accept this comment would the I18N Core WG be able to 
help us out with spec text (e.g pointers to descriptions of dir that you 
like in other W3C specs), and also with a couple of short examples to 
add to the spec?

ICWGIT>  (Additional rlo and lro
ICWGIT> values may also be useful if it is felt that such things as
ICWGIT> lists of characters are likely to appear in the text and
ICWGIT> control is needed to override the Unicode Bidi Algorithm).

For more complex text, and in particular for text where precise 
formatting and styling is important, a link to an HTML/CSS page is the 
preferred approach.

ICWGIT> The base direction should apply to text in contained elements
ICWGIT> (so you could have dir="rtl" on a text element that is
ICWGIT> inherited by paragraph elements without need for extra markup.

Right.

ICWGIT> In longer pieces of text, such as the description element, it
ICWGIT> is usually also useful to have a span element, to which a
ICWGIT> direction attribute can be attached if the base direction
ICWGIT> needs to be different from the surrounding context. (see our 
other comment about span)

Yes, this ties into the other comment about needing div-like and 
span-like elements, partly to hang the dir attribute onto.
-- 
Richard Ishida
Internationalization Activity Lead
W3C (World Wide Web Consortium)

http://www.w3.org/International/
http://rishida.net/

Received on Thursday, 14 April 2011 17:31:39 UTC