-
Notifications
You must be signed in to change notification settings - Fork 40
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
Ruby issue264 #347
Ruby issue264 #347
Conversation
* added rb tag in syntax, parsing and rendering * also ran format.py, which re-wrapped a few other paragraphs
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.
I think we shouldn't add this without first getting stated implementor commitment.
<li>A <a>WebVTT cue span end tag</a> "<code>rb</code>". If this is the last occurrence of this | ||
group of components in the <a>WebVTT cue ruby span</a> or a <a>WebVTT cue span start tag</a> | ||
"<code>rt</code>" is next, then this last end tag string may be omitted.</li> | ||
</ol> |
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 appears to be wrong... It allows <ruby>foo<rt>bar<rb>baz</ruby>
, but not <ruby><rb>foo<rt>bar</ruby>
@@ -3092,6 +3118,12 @@ string |input| supposedly containing <a>WebVTT cue text</a>, and optionally a fa | |||
Object">attach</a> a <a>WebVTT Ruby Text Object</a>.</p> | |||
</dd> | |||
|
|||
<dt>If the tag name is "<code>rb</code>"</dt> | |||
<dd> | |||
<p>If |current| is a <a>WebVTT Ruby Object</a>, then <a lt="attach a WebVTT Internal Node |
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.
Should this pop an rt
? (And vice versa?)
@@ -4546,17 +4587,21 @@ corresponding <a lt="text track cue">cue</a>'s <a>WebVTT cue text alignment</a>: | |||
''rgba(255,255,255,1)''. [[!CSS3-COLOR]]</p> | |||
|
|||
<p>The 'background' shorthand property on the <a>WebVTT cue background box</a> and on <a>WebVTT Ruby | |||
Text Objects</a> must be set to ''rgba(0,0,0,0.8)''. [[!CSS3-COLOR]]</p> | |||
Text Objects</a> and <a>WebVTT Ruby Base Text Objects</a> must be set to ''rgba(0,0,0,0.8)''. |
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.
No, not rb
objects here.
|
||
<p>The 'white-space' property on the (root) <a>list of WebVTT Node Objects</a> must be set to | ||
''white-space/pre-line''. [[!CSS21]]</p> | ||
''white-space/pre-line'' and on <a>WebVTT Ruby Text Objects</a> and <a>WebVTT Ruby Base Text |
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.
Why was this added?
|
||
<p>The 'font-style' property on <a lt="WebVTT Italic Object">WebVTT Italic Objects</a> must be set | ||
to ''font-style/italic''.</p> | ||
|
||
<p>The 'font-weight' property on <a lt="WebVTT Bold Object">WebVTT Bold Objects</a> must be set to | ||
''font-weight/bold''.</p> | ||
|
||
<p>The 'font-size' property on <a>WebVTT Ruby Text Objects</a> must be set to ''font-size/50%''.</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.
Why was this added?
On the implementation question, we have two implementations; the independent one would have to 'change' from ignoring rb because it's not specified in VTT into ignoring it because in the cases of ruby that VTT supports, it's not needed (a hard-to-detect change). The webkit one would have to make the simple change to not strip rb from text before passing it to the HTML engine (where it is implemented), so it would appear in the DOM etc. |
Include rb as a ruby tag in WebVTT.
Addresses issue #264