-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify line cue setting specification. #399
Changes from all commits
2aec683
a390ea5
7114757
82e6ce5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1873,15 +1873,16 @@ given:</p> | |
</ol> | ||
|
||
<p class="note">A <a>WebVTT line cue setting</a> configures the offset of the cue box from the video | ||
viewport's edge in the direction opposite to the <a lt="WebVTT cue writing direction">writing | ||
direction</a>. For horizontal cues, this is the vertical offset from the top of the video viewport. | ||
The offset is for the <a lt="WebVTT cue line start alignment">start</a>, <a lt="WebVTT cue line | ||
center alignment">center</a>, or <a lt="WebVTT cue line end alignment">end</a> of the cue box, | ||
depending on the <a>WebVTT cue line alignment</a> value - <a lt="WebVTT cue line start | ||
alignment">start</a> by default. The offset can be given either as a percentage of the video | ||
dimension or as a line number. Line numbers are based on the size of the first line of the cue. | ||
Positive line numbers count from the start of the video viewport (the first line is numbered 0), | ||
negative line numbers from the end of the viewport (the last line is numbered −1).</p> | ||
viewport's edge in the direction orthogonal to the <a lt="WebVTT cue writing direction">writing | ||
direction</a>. For horizontal cues, this is the vertical offset from the top of the video viewport, | ||
for vertical cues, it's the horizontal offset. The offset is for the <a lt="WebVTT cue line start | ||
alignment">start</a>, <a lt="WebVTT cue line center alignment">center</a>, or <a lt="WebVTT cue line | ||
end alignment">end</a> of the cue box, depending on the <a>WebVTT cue line alignment</a> value - <a | ||
lt="WebVTT cue line start alignment">start</a> by default. The offset can be given either as a | ||
percentage of the video dimension or as a line number. Line numbers are based on the size of the | ||
first line of the cue. Positive line numbers count from the start of the video viewport (the first | ||
line is numbered 0), negative line numbers from the end of the viewport (the last line is numbered | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is is true that start == (top or left) and end == (bottom or right)? Or are those terms writing mode dependent, i.e. end could be the left in rtl? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll quote from the spec, which answers your question:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks, I thought so. I'm not sure why I was asking now, probably I was worried about the meaning of "start" being clear, but it is well defined. This looks fine to me now. |
||
−1).</p> | ||
|
||
<p>A <dfn>WebVTT position cue setting</dfn> consists of the following components, in the order | ||
given:</p> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the size in the block progression direction, i.e. the vertical height for horizontal cues, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I think the bit I was focusing on here was "percentage of the video dimension" which seems vague, since it's a two dimensional thing, and in general not square. Suggestion would be to qualify it by saying something like "percentage of the relevant writing-mode dependent video dimension"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nigelmegitt please see PR #420