[Bug 28257] [webvtt] start/end linked to left/right [I18N-ISSUE-422]


--- Comment #32 from Simon Pieters <simonp@opera.com> ---
(In reply to Silvia Pfeiffer from comment #30)
> When the text is "align:start" and the box is 50% size, and you have RTL
> text, the text box sits in the right half, not the left half like this:
> +---------------------------------------+
> |                                       |
> |                           txet cibarA |
> +---------------------------------------+
>  ^ 0%               ^ 50%              ^ 100%
> That's the intention of automating the box placement based on the alignment
> and directionality.
> If the algo doesn't describe it this way, then there's a bug for RTL.

OK, what you say now contradicts what you said earlier (and what the spec
currently says). Do you now want the base direction of the cue text to affect
the position of the box? (The base direction of the first line? Note that each
line can have different base direction.)

(In reply to Silvia Pfeiffer from comment #10)
> No it doesn't. You've skipped over the most important part of that section.
> Here is the full quote:
> --
> A text track cue has a text track cue computed text position whose value is
> that returned by the following algorithm, which is defined in terms of the
> other aspects of the cue:
> 1. If the text track cue text position is numeric, then return the value of
> the text track cue text position and abort these steps. (Otherwise, the text
> track cue text position is the special value auto.)
> 2. If the text track cue text alignment is start or left, return 0 and abort
> these steps.
> 3. If the text track cue text alignment is end or right, return 100 and
> abort these steps.
> 4. If the text track cue text alignment is middle, return 50 and abort these
> steps.
> --
> What it says is that: if the cue box position is not set explicitly (that's
> 1.), then the cue box's position depends on the alignment of the text inside
> the box.
> Further, the note below that text explains how this works for right-to-left
> text:
> --
> Even for horizontal cues with right-to-left paragraph direction text, the
> cue box is positioned from the left edge of the video frame. This allows
> defining a rendering space template which can be filled with either
> left-to-right or right-to-left paragraph direction text. If such a cue box
> template is created with start or end aligned text, it is best to also
> specify a size since otherwise the text may flip from one side of the video
> frame to the other.

You are receiving this mail because:
You are on the CC list for the bug.

Received on Monday, 15 February 2016 09:34:52 UTC