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

Issue 0133 ruby style inheritance #328

Merged
merged 3 commits into from
May 28, 2017

Conversation

skynavga
Copy link
Collaborator

Closes #133.

@skynavga skynavga requested a review from dae-kim May 23, 2017 19:43
@palemieux palemieux self-requested a review May 24, 2017 05:28
Instead, if no <loc href="#style-attribute-fontSize"><att>tts:fontSize</att></loc> attribute is specified on the
ruby text container <loc href="#content-vocabulary-span"><el>span</el></loc> element, a value equal to 50% of the value of the computed value
of <loc href="#style-attribute-fontSize"><att>tts:fontSize</att></loc> on the nearest ancestor
<loc href="#content-vocabulary-span"><el>span</el></loc> element for which the computed value
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a significant departure from the current inheritance model which does not generally require to go up the element hierarchy.

Can you provide an example of the problem this is solving?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The handling of auto-sizing semantics for ruby text. Actually, many types of inheritance in TTML require going "up the element hierarchy", e.g., simple inheritance (goes up to at least parent), xml:lang and xml:space, etc.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e.g., simple inheritance (goes up to at least parent)

That is only the parent.

xml:lang and xml:space, etc.

Yes. They are a pain to handle. It would be good to avoid other similar cases.

he handling of auto-sizing semantics for ruby text.

Ok, but can you provide an example document where this would be an issue?

@skynavga
Copy link
Collaborator Author

skynavga commented May 24, 2017 via email

@palemieux
Copy link
Contributor

It is possible I could express this requirement more succinctly, but I believe the new text does just that.

Can you provide a test case TTML document and show what happens with and without the special inheritance?

@skynavga
Copy link
Collaborator Author

Without special inheritance, ruby would be sized the same as base, but it should be 50% of base (by default). If we say that textContainer and text inherit 50% of parent, then 50% will be applied twice if both ruby text container and ruby text are used, ending up with 25%. But 50% would be applied if only ruby text is used. Special rules are clearly required.

@palemieux
Copy link
Contributor

Special rules are clearly required.

Maybe, but I think it is reasonable to ask for what will ultimately be a test case since this part of the specification is extremely complex. Surely, Skynav has generated such an example for its internal testing?

@skynavga
Copy link
Collaborator Author

skynavga commented May 24, 2017 via email

@palemieux
Copy link
Contributor

@skynavga Thanks for the example.

Is the proposal equivalent to specifying <style xml:id="s4" tts:fontSize="50%" tts:ruby="text" tts:rubyPosition="before"/>?

@skynavga
Copy link
Collaborator Author

skynavga commented May 24, 2017 via email

@skynavga skynavga merged commit 4348ba4 into gh-pages May 28, 2017
@skynavga skynavga deleted the issue-0133-ruby-style-inheritance branch August 21, 2017 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants