-
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
Make inline region semantics set values on current region #168
Comments
I think we can't simply choose one approach only. Existing extension implementations effectively use an anonymous region, not current region. However, I see the utility of having this affect the latter also. So we probably need to support both approaches, and use a new ttp attribute to specify which approach the author wishes to use. For example: ttp:impliedRegionMethod : current | new Where I think |
Okay, that seems reasonable. |
During the discussion in today's meeting it occurred to me that we need to define a precedence if a region-only style attribute is applied to a content element as well as a region attribute, for example: <region tts:extent="80% 10% xml:id="r1" ...>
...
<div tts:extent="60% 20%" region="r1"> This applies regardless of whether the 'new region' or 'modified region' method is used. |
On Thu, Aug 18, 2016 at 9:21 AM, Nigel Megitt notifications@github.com
|
That may be the case, however there is no syntactic prohibition on this with either method currently, and the correct processor behaviour is not currently defined for this example even with the 'new' method. Perhaps §11.2.1 region (attribute) would be the appropriate place to put any additional constraints. Thinking also about w3c/ttml1#194 we could define a similar template mechanism for regions by including a semantic that says that if we create an inline region |
On Thu, Aug 18, 2016 at 10:08 AM, Nigel Megitt notifications@github.com
|
Below is a sample I have seen in the wild:
I would think the intent here is to merely apply |
On Tue, Aug 23, 2016 at 2:48 PM, Pierre-Anthony Lemieux <
[1] https://www.w3.org/wiki/TTML/changeProposal002 I would also note that while re-reading this change proposal, there appears
|
Would the anonymous region created in the example inherit |
On Tue, Aug 23, 2016 at 3:29 PM, Pierre-Anthony Lemieux <
The semantics of an implied anonymous region is equivalent to:
So, since regions don't inherit styles from other regions in TTML, the Furthermore, actually specifying an @region attribute on an element that
|
Hello all, Pierre asked me to comment on this issue as an implementer. I have not had time to read through the entire issue yet so my apologies if I've missed anything. His question:
My reply: In our case (a) will work since the But I suppose (b) is possible if you assume that this creates an anonymous region which inherits all the attributes (style etc.) from the referenced region, then applies any new attributes set by the I hope this helps. Jason Livingston - Telestream |
On Wed, Aug 24, 2016 at 5:24 PM, jasonliv notifications@github.com wrote:
|
Pierre asked me to add my comments to this thread...I've also had an email discussion with him :-) Although we do not have an active implementation using origin and extent within a element our view is similar to Jason from Telestream, in that this should affect the 'existing region' referenced either directly or indirectly by that p element. The creation of an anonymous region would surely otherwise contradict any deliberate references to a specific region that was made within that same element? An anonymous region currently would not inherit the existing style attribute tree - potentially leading to some very odd visual effects? However if the anonymous region was a 'deep copy' of the existing region then this issue might be avoided? In general we would view the use of extent and origin within a p element (and a span) as a shorthand for set animation (we feel that the shorthand should also be available within a span element as p elements have an inherent line break, thus precluding them from being used to add content to an existing line). This 'shorthand' would be useful to support cumulative subtitling where arguably the region extent (and origin) could be modified as content is added to rows. The modification of origin might also be useful for certain forms of 'subtitling' e.g. Japanese Telop - however, in this specific case a smooth animation is probably more desirable.. best, |
On Thu, Aug 25, 2016 at 5:21 AM, JLBirch notifications@github.com wrote:
In other words, is a shorthand for
The proposal being considered here is to additionally support a mode where
Here, a region could be specified on the source p, e.g., which would translate to:
The proposal is to have a ttp:impliedRegionMethod parameter (with values Note that if an author does want to specify more styles on a new region,
Or can simply reference an out-of-line style specification to pick up the
|
In EBU-TT all regions are 'OutOfLine' regions because there is no possibility of an explicit inline definition. In this case, with the default behaviour of 'new', there would thus presumably be no place to re-iterate the styles onto any new anonymous region? Consequently the default behaviour of TTML, when applied to EBU-TT would mean that use of tts:extent and or tts:origin on a p element could only ever create an anonymous region with default style attributes? Is that correct? Given that this is unlikely to be a desirable outcome, it would seem that EBU-TT would need to redefine the default value for ttp:impliedRegionMethod to 'current'. |
On Thu, Aug 25, 2016 at 9:37 AM, JLBirch notifications@github.com wrote:
|
Notes from 2016-09-20 f2f meeting: making inline anonymous regions be modifications to the current region using an anonymous |
See the following CR comment against IMSC1, which asks for |
Marking as discussed and agreed since we got to that state on the equivalent TTML1 issue w3c/ttml§#194. |
Sorry these are in fact not exactly equivalent issues, reverting. |
After further consideration, I've decided to adopt option 2 from the initial comment for this issue, about which see PR #350. I also added tts:disparity to the short list of style attributes that invoke this exceptional behavior. |
The current semantic when inline style attributes applicable to regions are used in content elements is to create a new implied inline region.
Options
Option 2 would be syntactic shorthand for a
<set>
element on a region that modifies the region'stts:origin
,tts:extent
ortts:position
.History
I raised this discussion with the thread beginning at https://lists.w3.org/Archives/Public/public-tt/2015Oct/0068.html however it was not concluded.
This issue satisfies tracker action 472.
The text was updated successfully, but these errors were encountered: