W3C home > Mailing lists > Public > public-i18n-core@w3.org > January to March 2015

[webvtt] 6.2.1 processing model handling of bidi [I18N-ISSUE-432]

From: Phillips, Addison <addison@lab126.com>
Date: Fri, 20 Mar 2015 20:46:08 +0000
To: "public-tt@w3.org" <public-tt@w3.org>
CC: "public-i18n-core@w3.org" <public-i18n-core@w3.org>
Message-ID: <7C0AF84C6D560544A17DDDEB68A9DFB52ECB5D29@ex10-mbx-9007.ant.amazon.com>
I18N comment: https://www.w3.org/International/track/issues/432


6.2.1 Processing model
http://www.w3.org/TR/2014/WD-webvtt1-20141111/#h4_processing-model


In section 6.2.1 I find the instruction quoted below. This seems to be trying to determine the base direction, but I don't see other elements of implementing BIDI elsewhere in processing, such as using 'direction' to set the meaning of 'start' and 'end' and I don't see any discussion of handling directional runs in presentation (is that on a different level??)

--
Apply the Unicode Bidirectional Algorithm's Paragraph Level steps to the concatenation of the values of each WebVTT Text Object in nodes, in a pre-order, depth-first traversal, excluding WebVTT Ruby Text Objects and their descendants, to determine the paragraph embedding level of the first Unicode paragraph of the cue. [BIDI]
Note

Within a cue, paragraph boundaries are only denoted by Type B characters, such as U+000A LINE FEED (LF), U+0085 NEXT LINE (NEL), and U+2029 PARAGRAPH SEPARATOR. (This means each line of the cue is reordered as if it was a separate paragraph.)

If the paragraph embedding level determined in the previous step is even (the paragraph direction is left-to-right), let direction be 'ltr', otherwise, let it be 'rtl'.
--

It would be helpful to the author to be able to set the default base direction for a whole WebVTT file to rtl.

It would also be helpful if the author could set the base direction for each cue explicitly, since the Unicode paragraph detection algorithm can be fooled by a paragraph that starts with a strong LTR character, but is actually a RTL paragraph (or vice versa), eg. "نشاط التدويل is how you say 'i18n Activity' in Arabic."

Received on Friday, 20 March 2015 20:46:35 UTC

This archive was generated by hypermail 2.3.1 : Friday, 20 March 2015 20:46:36 UTC