Skip to content
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 no preceding sibling case on ruby text content. #787

Closed
spoeschel opened this issue May 23, 2018 · 2 comments
Closed

Clarify no preceding sibling case on ruby text content. #787

spoeschel opened this issue May 23, 2018 · 2 comments

Comments

@spoeschel
Copy link

The ruby nesting constraints contain the following constraint:

"If the computed value of tts:ruby is text, then the computed value of tts:ruby of its preceding sibling is base, text, or delimiter"

This however will not work when complex ruby is used, as the first child of a ruby text container is ruby text content, but has no preceding sibling. See e.g. "Example Fragment – Double-sided Ruby",

So in line with the respective constraint related to ruby base content, the mentioned constraint should be changed to:

"If the computed value of tts:ruby is base, then its preceding sibling is either null (i.e., no preceding sibling) or the computed value of tts:ruby of its preceding sibling is base, text, or delimiter."

@skynavga
Copy link
Collaborator

If there is no preceding sibling, then the constraint doesn't apply. There is no such thing as a null preceding sibling.

@spoeschel
Copy link
Author

If there is no preceding sibling, then the constraint doesn't apply

In my opinion the wording "of its preceding sibling" implies that such a sibling is actually present.

There is no such thing as a null preceding sibling.

Such wording is currently part of the TTML2 spec; see the second constraint that applies to tts:ruby when set to base:

"if the computed value of tts:ruby is base, then its preceding sibling is either null (i.e., no preceding sibling) or the computed value of tts:ruby of its preceding sibling is"

So this inconsistency has to be fixed somehow.

@skynavga skynavga reopened this May 23, 2018
@skynavga skynavga self-assigned this May 23, 2018
@skynavga skynavga added this to the CR2 milestone May 23, 2018
@skynavga skynavga changed the title Ruby nesting: no preceding sibling case on ruby text content Ruby nesting: no preceding sibling case on ruby text content. May 23, 2018
@skynavga skynavga changed the title Ruby nesting: no preceding sibling case on ruby text content. Clarify no preceding sibling case on ruby text content. May 23, 2018
skynavga added a commit that referenced this issue May 30, 2018
Editorial improvement and typo fix for ruby constraints (#786, #787, …
@skynavga skynavga removed their assignment May 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants