-
Notifications
You must be signed in to change notification settings - Fork 16
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
How would someone display ruby inline? #255
Comments
If by "the user" we mean the subtitle author, they should type the parenthesis and inline ruby as a normal sequence of text. If we're talking about a processor's lack of ruby support, I'm open to defining some fallback mechanism in place of "ignore and move on". |
@r12a can you clarify which "user" you were referring to? The author or the processor? |
@nigelmegitt Given that Japanese subtitle authors and consumers do not expect this type of functionality, I suggest we close as non-issue. |
@dae-kim I'd be happy to have clarification on this from @r12a but I think there may be a misunderstanding: ... I wonder if @r12a may have misunderstood the options currently available for the equivalents of CSS styling of Ruby markup in TTML2. Whereas in CSS parenthesis can be generated using CSS (see CSS Ruby Level 1 Appendix A.3 for example) when Ruby support is not otherwise present, this cannot be done in TTML2; there's no fallback presentation styling in TTML2 when the So in that sense, if @r12a was making the distinction between HTML style semantic "markup" and CSS style "styling" that simply does not seem to be applicable in TTML2 as far as I can see. It's an interesting idea that we could specify fallback presentation styles, perhaps using parenthesis, as an inline styling, but I think there's a simple answer to the question in the issue:
which is: No. At least not at the moment. If the document is intended for presentation with Ruby then it needs to be processed by a processor that supports Ruby. Otherwise as @dae-kim pointed out above, if it is intended for presentation as inline "not really" Ruby then the Ruby annotation can be omitted and parenthesis inserted instead. We do not currently handle the same document being presented by both processors that do, and that do not, process Ruby correctly. Perhaps this is the key to this issue. @r12a does that make sense to you? Is this something we should be able to live with as is? |
Ok, so i guess it's not possible to choose to display ruby over the base or alongside in parentheses by choosing a particular style, rather than changing the markup. The use cases where this may apply, in the CSS world, include:
I didn't really have in mind the use case where ruby isn't supported by the application rendering the text. If you were to say to me that such use cases as i listed above, where the author selects whether to display inline or not (while using the same markup), are not relevant for timed text, that would probably render my initial question moot. |
Hmm let's take those one by one.
Generally it is the responsibility of the author to make sure that the text size is big enough; however it is the case that for subtitle and caption use, in general, the size is proportional to the size of the video, so if the conditions are right, it could be that the text is too small. This would possibly be a case for using media queries and conditional display, and in that case we don't allow for conditional styling of Ruby to switch between parenthesis and alignment, but we do allow for conditional content, i.e. it is possible to insert markup like
So technically there are ways to solve this, and I for one cannot exclude use case 1 from being relevant for timed text; others may be able to. |
Should we add notes in the spec to reflect @nigelmegitt ways to solve the problems? |
I would suggest adding a worked out example with sample rendering. |
Sounds good to me. |
After reading the spec again, I found the following paragraph:
and then:
This means that Richard's use case can be solved by using 'invalid' document. Shouldn't we simply permit rendering using the fallback mechanism? Alternatively, we could define a new feature designator |
Yes, makes sense to me, depending on the document processing context, i.e. a user setting. |
Ok, so if the syntax is problematic or "a presentation processor does not support ruby presentation, then it must perform fallback ruby presentaton" (typo there btw), which means inline display of the annotation; but there's no way for an author to request inline display if they decide they want it.(?) |
Typo fixed in d70f967 Indeed, there is currently no way for an author to request inline display (besides creating a document that has an invalid syntax, e.g. placing a empty delimiter in a wrong location). Nobody has expressed the need to specify it so far. This could be added in a future version IMO. Can you approve the PR? |
Enable inline ruby presentation based on document processing context (#255).
The i18n WG has closed its tracker for this issue. |
10.2.39 tts:rubyPosition
https://www.w3.org/TR/2016/WD-ttml2-20161117/#style-attribute-rubyPosition
Is there a way to make the ruby display inline when desired?
Note that there are two possibilities here. Given a word such as 東京, the user may want to produce
a. 東(とう)京(きよ), or
b. 東京(とうきよ)
from the same markup. The second approach tends to be used for compoun nouns in Japanese.
The text was updated successfully, but these errors were encountered: