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

Introduction of support to TTML #15

Draft
wants to merge 561 commits into
base: develop
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
561 commits
Select commit Hold shift + click to select a range
42fedcc
Removed useless variable
alexandercerutti Jul 31, 2024
5f350c2
Added comment to explicit how wallClockTime is forbidden when timebas…
alexandercerutti Jul 31, 2024
cd5bd09
Improved frames clamping and descriptions
alexandercerutti Jul 31, 2024
4f5caba
Fixed subframes parsing to allow multiple 0s after decimal point
alexandercerutti Jul 31, 2024
90a4712
Added back check to allow 0-values frames
alexandercerutti Jul 31, 2024
c093f1c
Fixed referenceBegin position in formula
alexandercerutti Aug 1, 2024
045d5e0
Moved and partially fixed referenceBegin providing to timeprovider ge…
alexandercerutti Aug 2, 2024
c16719b
Fixed signatures for timebase throwing methods
alexandercerutti Aug 3, 2024
7c109da
Fixed offset fraction parsing
alexandercerutti Aug 3, 2024
5fd8756
Removed useless exports
alexandercerutti Aug 3, 2024
4074f27
Improved Media offset time milliseconds conversion and comments
alexandercerutti Aug 3, 2024
8689f26
Improved fraction usage on offset-time usage with Media time base
alexandercerutti Aug 3, 2024
0090e70
Improved Time bases symbols descriptions
alexandercerutti Aug 3, 2024
136c8b0
Improved offset-time milliseconds conversion when using Clock Time Base
alexandercerutti Aug 4, 2024
a6f04d2
Added ceiling to ticks offset-time
alexandercerutti Aug 4, 2024
dec7570
Fixed wrong sum of timeCount for offset-time and frame metric
alexandercerutti Aug 4, 2024
c3409e0
Added generic unit interface to uniform all the elaborations
alexandercerutti Aug 4, 2024
b64766b
Added Clock timebase clock-time assertions for frame and subframes
alexandercerutti Aug 4, 2024
8b1d82c
Removed fractional part removal from clock-time on Media and SMPTE ti…
alexandercerutti Aug 4, 2024
709928b
Embedded fraction in time-count for offset-time in both Media and Clo…
alexandercerutti Aug 5, 2024
477deb7
Moved check and error firing for length back to toLength
alexandercerutti Aug 5, 2024
cea81e1
Converted time expressions and timebases to use Unit
alexandercerutti Aug 5, 2024
d5e94ff
Fixed TimeExpressions tests
alexandercerutti Aug 5, 2024
3778e4d
Fixed clock time base tests and added tests for media time base
alexandercerutti Aug 5, 2024
3387e84
Replaced old types and renamed toClockTimeMatch to createClockTimeUnit
alexandercerutti Aug 6, 2024
e46c7cb
Improved explanation for SMPTE drop frame
alexandercerutti Aug 7, 2024
af7f693
Fixed SMPTE milliseconds conversion from clock-time
alexandercerutti Aug 8, 2024
5ea7e20
Added some tests for SMPTE and timecode DF and NDF
alexandercerutti Aug 8, 2024
f045cff
Added jsconfig.json for ts config in tests
alexandercerutti Aug 9, 2024
bac89ef
Fixed broken imports of createLength with createUnit
alexandercerutti Aug 10, 2024
5315bb3
Merge branch 'develop' into feature/ttml-adapter
alexandercerutti Aug 10, 2024
e50bf5e
Renamed peekEvaluate to peekAdvance for better semantics
alexandercerutti Aug 11, 2024
ed800d6
Reworked Tokenized to improve peeking and advancing with a more robus…
alexandercerutti Aug 12, 2024
e518d7a
Removed the possibility from the Tokenizer to emit Tag Token when emp…
alexandercerutti Aug 12, 2024
e29c9a1
Removed ContentBlockReader and merged the logic inside Adapter for be…
alexandercerutti Aug 12, 2024
e0761af
Removed pre-emettibility from adapter as useless
alexandercerutti Aug 12, 2024
e06e53b
Removed doubt comment for milliseconds and fraction as, after the ans…
alexandercerutti Aug 13, 2024
d0cf207
Fixed subframes value to be parsed as an integer as it could work on …
alexandercerutti Aug 14, 2024
4f0a755
Improved comment on fractional part and time conversion
alexandercerutti Aug 14, 2024
76caa81
Replaced RelationshipTree with RepresentationTree to have a better ch…
alexandercerutti Sep 1, 2024
cae5dad
Temporarely commented old and probably useless check
alexandercerutti Sep 2, 2024
73470f2
Added check to ignore inline region elements that do not match with p…
alexandercerutti Sep 2, 2024
76e702b
Removed old check on div and body
alexandercerutti Sep 2, 2024
650eec3
Omitted br from check for inline region
alexandercerutti Sep 2, 2024
2622164
Renamed BLOCK_CLASS to BLOCK_CLASS_ELEMENT and added INLINE_CLASS_ELE…
alexandercerutti Sep 2, 2024
ce27f73
Added example for pruning
alexandercerutti Sep 2, 2024
1ed9573
Added check to ignore parent element if we find an inline region elem…
alexandercerutti Sep 2, 2024
b8b3fbe
Added missing continue
alexandercerutti Sep 2, 2024
7ec8b6c
Added initial support to region registration to a TemporalActiveContext
alexandercerutti Sep 2, 2024
a137540
Removed GROUP_TRACKED Attribute and consequential checks
alexandercerutti Sep 3, 2024
1eeb216
Added initial implementation check on END_TAG to process inline regions
alexandercerutti Sep 3, 2024
b8a9c4e
Added comments and removed potentially wrong pop
alexandercerutti Sep 3, 2024
77a02c6
Renamed RegionContext and StyleContext to RegionContainerContext and …
alexandercerutti Sep 4, 2024
f619c92
Added ignoring region in layout element if it doesn't have an xml:id
alexandercerutti Sep 7, 2024
c16ef19
Added style idref acceptance and resolvign in TemporalActiveContext
alexandercerutti Sep 7, 2024
1120243
Added styled from region merging in TemporalActiveContext
alexandercerutti Sep 8, 2024
0601dd4
Added timeContext and temporalActiveContext creation when an element …
alexandercerutti Sep 8, 2024
2a483ba
Improved xml:id assigning for inline-regions
alexandercerutti Sep 8, 2024
e7a2a3e
Added creation fo a regionContainerContext to index the inline region
alexandercerutti Sep 8, 2024
7f266f4
Added usage of original xml:id in inline regions and then fallback
alexandercerutti Sep 8, 2024
750ca8e
Removed function findInlineRegionInChildren
alexandercerutti Sep 10, 2024
a4165fc
Renamed getRegionsById to getRegionById to return only one element
alexandercerutti Sep 10, 2024
aa1e296
Added region getter based on IDRef to TemporalActiveContext
alexandercerutti Sep 11, 2024
4d26275
Added check for tt on END_TAG to prevent crashes when going up
alexandercerutti Sep 11, 2024
dd970c4
Added comment
alexandercerutti Sep 11, 2024
4da04ba
Fixed binding issue with Kleene OR operator
alexandercerutti Sep 11, 2024
1c1ac12
Added Kleene nodes delegation when a child is a Kleene operator
alexandercerutti Sep 11, 2024
bbc6a8e
Remove part of region condition to cut out elements with default regi…
alexandercerutti Sep 11, 2024
bd5ca35
Fixed kleene or operator destinations to use the matched one
alexandercerutti Sep 11, 2024
ef189e2
Added check for Kleene operator delegation and fixed zeroOrOne delega…
alexandercerutti Sep 13, 2024
42a1052
Improved Visitor readability
alexandercerutti Sep 23, 2024
4b6662f
Refactored Adapter a bit to make it easier to read
alexandercerutti Sep 28, 2024
f37bc02
Changed style tags processing to return an array of objects to be sen…
alexandercerutti Sep 29, 2024
3a51608
Added getStyledByRegionId on RegionContainerContext and added usage i…
alexandercerutti Sep 30, 2024
8ea1bb3
Reworked initial region and style asociation when parsing cues
alexandercerutti Sep 30, 2024
bf160d0
Moved region check on start tag before the block class parent element…
alexandercerutti Oct 5, 2024
6c28d47
Refactored checks on Start_tag to improve readability and to fix regi…
alexandercerutti Oct 6, 2024
3555136
Removed old and unused references to NodeQueue, Node and WithParent
alexandercerutti Oct 7, 2024
f4e5d4f
Removed unused method NodeTree.prototype.ascend
alexandercerutti Oct 7, 2024
e3536be
Moved public static method (but unused outside) to be a function
alexandercerutti Oct 7, 2024
0e37f6e
Added check for anonymous spans
alexandercerutti Oct 27, 2024
cf8e023
Added check on inline class elements if they have any region, in orde…
alexandercerutti Oct 27, 2024
da9afb8
Set regionContext to be optional when checking for a region
alexandercerutti Oct 27, 2024
1b43a22
Added getters for regionIdRef and stylesIDRefs
alexandercerutti Oct 27, 2024
a99f496
Added check to terminate earlier checks about elements that can flow …
alexandercerutti Oct 27, 2024
a2b994a
Added check to ignore element with region attribute if default region…
alexandercerutti Oct 27, 2024
9719a0b
Added timing attributes to region
alexandercerutti Oct 27, 2024
abd1b54
Added timing attributes from a region an element flowed into
alexandercerutti Oct 27, 2024
f95fffc
Added association of current destination with the NodeTree node in or…
alexandercerutti Nov 5, 2024
ee79b32
Fixed condition for which an inline region is verified
alexandercerutti Nov 9, 2024
067a0b0
Added scope to NodeRepresentations structure in order to clean it onl…
alexandercerutti Nov 9, 2024
cd9a632
Fixed wrong item used to check if element can flow in region
alexandercerutti Nov 9, 2024
17de1b4
Changed check on cue parsing
alexandercerutti Nov 9, 2024
2c9c10d
Improved comment
alexandercerutti Nov 9, 2024
5fa008c
Added support to ttpMarkerMode
alexandercerutti Nov 9, 2024
d7fc20b
Added check to throw when dur attribute is defined and we are in smpt…
alexandercerutti Nov 9, 2024
af0e679
Improved TimeContext comments and fixed lack of parenthesis
alexandercerutti Nov 10, 2024
bd81119
Removed TimeContextProxy. Not needed anymore
alexandercerutti Nov 10, 2024
d650607
Improved definition of contexts by extending a Scope interface with t…
alexandercerutti Nov 10, 2024
8a5072c
Autoformat
alexandercerutti Nov 10, 2024
879c0a3
Fixed endTime to add startTime + dur when end is missing
alexandercerutti Nov 10, 2024
8fd7c0e
Added timing attributes on div and body
alexandercerutti Nov 10, 2024
b68bd17
Fixed region flowing of nested children by adding a check to see if t…
alexandercerutti Nov 10, 2024
a044473
Improved cue parsing
alexandercerutti Nov 11, 2024
9ad483f
Added check in Scope to exclude context if contextFactory returned fa…
alexandercerutti Nov 11, 2024
c618ec8
Renamed parseREgion extractStylesChildren in processStylesChildren
alexandercerutti Nov 11, 2024
7bcc611
Added merge logic for TemporalActiveContext
alexandercerutti Nov 11, 2024
295e557
Set getRegionById to use find instead of filter
alexandercerutti Nov 11, 2024
36795b1
Added comment on flowing into region and timing attributes
alexandercerutti Nov 11, 2024
eee44c7
Fixed condition to create a new cue from a span
alexandercerutti Nov 11, 2024
ba319f6
Fixed timeContainer reading on Anonymous spans (wrong time container …
alexandercerutti Nov 11, 2024
3b2960a
Removed tests section moved to Adapter
alexandercerutti Nov 11, 2024
2ec22dc
Fixed TAC optionality
alexandercerutti Nov 11, 2024
a33fdeb
Improved Adapter tests
alexandercerutti Nov 12, 2024
5e463e8
Fixed TimeContext test
alexandercerutti Nov 12, 2024
c2db7cd
Fixed TimeExpressions tests
alexandercerutti Nov 12, 2024
fe04da4
Added tts:extent mapper to parseStyle in order to remove it from regi…
alexandercerutti Nov 15, 2024
3288707
Added links comment for all the style properties mapped
alexandercerutti Nov 17, 2024
e238d98
Added toClamped unit util
alexandercerutti Nov 17, 2024
6aa64f3
Added value clamping through unit clamp util to extentMapper
alexandercerutti Nov 17, 2024
750be95
Added originMapper
alexandercerutti Nov 17, 2024
fd7f2e4
Removed origin and extent things from TTMLRegion to tidy up a bit. Wi…
alexandercerutti Nov 17, 2024
a253d55
Exported TTMLRegion
alexandercerutti Nov 23, 2024
3302a89
Improved region styles generation by reading its style attribute
alexandercerutti Nov 23, 2024
7237e5e
Changed return type of toLength
alexandercerutti Nov 23, 2024
24a2a85
Removed useless casting and reorganized code
alexandercerutti Nov 24, 2024
a66a215
Added forgotten import
alexandercerutti Nov 24, 2024
c7a6aeb
Temporarily removed unused imports
alexandercerutti Nov 24, 2024
f270a37
Added DestinationFactory type
alexandercerutti Nov 30, 2024
9f05c68
Improved readability of RepresentationTree
alexandercerutti Nov 30, 2024
ce69af6
Removed idref parameter from createStyleParser's executor
alexandercerutti Nov 30, 2024
0fb2a8c
Removed styleParser from createRegionParser as unused (moved internal…
alexandercerutti Nov 30, 2024
f81b591
Added storage as parameter for memoizationFactory
alexandercerutti Nov 30, 2024
74b424c
Moved scope contexts merging to happen through a symbol (hook)
alexandercerutti Nov 30, 2024
791b6d8
Added onAttachedSymbol and args getter to retrieve the arguments the …
alexandercerutti Dec 1, 2024
de1e3a8
Set StyleContainerContext to process styles as containers as soon as …
alexandercerutti Dec 1, 2024
a1a0b1d
Removed style parser early cache creation and style attributes extrac…
alexandercerutti Dec 1, 2024
dcb1286
Added link in StyleContainerContext
alexandercerutti Dec 1, 2024
0b19c5a
Moved chained referencial style resolution to style container context
alexandercerutti Dec 1, 2024
1dc51b4
Added forgotten extensions and improved import type
alexandercerutti Dec 1, 2024
1fa88d1
Added now mandatory scope to createRegionParser
alexandercerutti Dec 1, 2024
8ead8c7
Removed unused StyleContainerContext styles property
alexandercerutti Dec 1, 2024
8f966b6
Removed unused property styleParserGetterSymbol
alexandercerutti Dec 1, 2024
d3aa4c5
Added looking for inherited styles in parent as well
alexandercerutti Dec 1, 2024
4b1589c
Commented unused Tokenizer functions
alexandercerutti Dec 1, 2024
d7b818f
Added attaching event on addContext
alexandercerutti Dec 1, 2024
6dbdb6e
Fixed checks on chainedReferentialStyles existence
alexandercerutti Dec 1, 2024
1b89b18
Changed getStylesByRegionId to return an array of TTMLStyle instead o…
alexandercerutti Dec 1, 2024
296b24e
Fixed styles conversion key-value extraction
alexandercerutti Dec 1, 2024
f4b7810
Moved region processing on context attach
alexandercerutti Dec 1, 2024
b0b4a3d
Changed merging of region contexts
alexandercerutti Dec 1, 2024
19ee239
Changed how styles are handled in region parser
alexandercerutti Dec 2, 2024
1fb7098
Splitted styles in TemporalActiveContext
alexandercerutti Dec 2, 2024
cf8a73d
Changed computedStyles getter
alexandercerutti Dec 2, 2024
73409a0
Fixed mistakenly used concat instead of push
alexandercerutti Dec 2, 2024
8609f16
Set this.args to get read once in onAttachedSymbol
alexandercerutti Dec 2, 2024
cda4314
Added invokation of onAttachedSymbol when a parent context is available
alexandercerutti Dec 2, 2024
0dc6fb4
Added additionalStyles to TemporalActiveContext and processing them
alexandercerutti Dec 2, 2024
67f7f08
Replaced TAC computedStyles with computeStylesForElement in order to …
alexandercerutti Jan 23, 2025
236b5cd
Replaced cached .attributes getter with .apply method in order to acc…
alexandercerutti Jan 23, 2025
44ec5ae
Added verification of source element with style definition
alexandercerutti Jan 23, 2025
fa5816e
Renamed AdditionalStyle to ActiveStyle and renamed additionalStyles p…
alexandercerutti Jan 24, 2025
f5b0f90
Removed useless variable assignment
alexandercerutti Jan 24, 2025
179e745
Added implementation for color units
alexandercerutti Jan 26, 2025
cea0874
Added border css transformation
alexandercerutti Jan 26, 2025
8f74f24
Added vscode region markers
alexandercerutti Jan 26, 2025
66670f3
Added forgotten parameter to styleAppliesToElement
alexandercerutti Jan 26, 2025
9eb49c0
Changed styleAppliesToElement condition to fix elements that do not h…
alexandercerutti Jan 26, 2025
cebca88
Added region styles and styles processing in Temporal active context …
alexandercerutti Jan 26, 2025
c79bcd3
Merge branch 'develop' into feature/ttml-adapter
alexandercerutti Feb 9, 2025
fda5b93
Renamed Style entity to LocalStyle
alexandercerutti Feb 9, 2025
505d84e
Added a new entity LineStyleEntity
alexandercerutti Feb 9, 2025
c35efb9
Merge branch 'develop' into feature/ttml-adapter
alexandercerutti Feb 11, 2025
9f1ba30
Upgraded typescript and typescript config
alexandercerutti Feb 11, 2025
e2811d1
Renamed isTimestamp to groupingIdentifier
alexandercerutti Feb 11, 2025
7c84be7
Added entities filter when creating the tree and checking the difference
alexandercerutti Feb 11, 2025
22119e6
Added comment
alexandercerutti Feb 11, 2025
8f7d84d
Merge branch 'develop' into feature/ttml-adapter
alexandercerutti Feb 12, 2025
7ea3686
Removed repeated parameter
alexandercerutti Feb 12, 2025
41c2d54
Added entities to line and changes default styles organization to mak…
alexandercerutti Feb 14, 2025
0f68ec8
Changed dataset roles with classes
alexandercerutti Feb 14, 2025
c65cbc4
Changed WebVTT Adapter to create LineStyles for global and ID styles
alexandercerutti Feb 14, 2025
76fa70d
Added missing rename of styles property during TAC creation
alexandercerutti Feb 15, 2025
4a88f90
Set DocumentContext to receive the nodeTree in order to access it fro…
alexandercerutti Feb 15, 2025
a749aa0
Added style suitability checks through inheritance
alexandercerutti Feb 15, 2025
a87f02f
Changed WebVTT tests to apply line entity changes
alexandercerutti Feb 15, 2025
ad4ea4d
Moved Region definition as Kleene elements to be under the LayoutClas…
alexandercerutti Feb 15, 2025
894ad2b
Added AnimationClass to Kleene tree
alexandercerutti Feb 15, 2025
509d9c4
Changed region reference in head
alexandercerutti Feb 15, 2025
d39ff7c
Added empty comment to multiline
alexandercerutti Feb 15, 2025
f43fa90
Added animation definition in Kleene head
alexandercerutti Feb 15, 2025
0664583
Added inline and referential styles processing in parseCue for p and …
alexandercerutti Feb 15, 2025
590e60e
Added line and local styles when creating a cue
alexandercerutti Feb 15, 2025
03f9ddc
Added casting
alexandercerutti Feb 15, 2025
8fb01e4
Fixed problem with regex ranges
alexandercerutti Feb 15, 2025
08a3c73
Removed unused import
alexandercerutti Feb 15, 2025
acf09a3
Refactored Adapter code to improve readability
alexandercerutti Feb 16, 2025
c7e51a3
Fixed possible TemporalActiveContext crash
alexandercerutti Feb 16, 2025
4cb493f
Sample: moved timeStart processing moment
alexandercerutti Feb 16, 2025
7d89978
Refactored inline region processing
alexandercerutti Feb 16, 2025
9db95aa
Refactored out of line regions composition from layout element
alexandercerutti Feb 16, 2025
efb37cb
Refactored styling tag end tag
alexandercerutti Feb 16, 2025
6c8b143
Fixed and improved tests
alexandercerutti Feb 17, 2025
7d95bf5
Splitted InlineClass from RepresentationTree
alexandercerutti Feb 17, 2025
afd3397
Improved createTimeContext factory check to create the context if any…
alexandercerutti Feb 19, 2025
f9c7228
Added additional check in isFlowingTargetRegionConflicting
alexandercerutti Feb 19, 2025
73379e6
Added scope case in which merge was not happening
alexandercerutti Feb 19, 2025
118267c
Improved error handling in DocumentContext (when multiple tt are foun…
alexandercerutti Feb 19, 2025
a648e05
Revert "Improved createTimeContext factory check to create the contex…
alexandercerutti Feb 19, 2025
edfddc0
Fixed Tag entities test
alexandercerutti Feb 19, 2025
446585f
Added support to NodeRepresentation attributes:
alexandercerutti Feb 19, 2025
fdf5958
Changed Adapter structure to divide ignoring from node confirmation w…
alexandercerutti Feb 19, 2025
2d4165c
Removed useless variable
alexandercerutti Feb 20, 2025
8246232
Added checks on Kleene.or to fully substitute the matched node
alexandercerutti Feb 20, 2025
daf3796
Changed how attributes are loaded and described
alexandercerutti Feb 20, 2025
47870d3
Fixed tt attributes
alexandercerutti Feb 20, 2025
3741152
Added check for mandatory xml:lang attribute on tt
alexandercerutti Feb 20, 2025
ae3f8c3
Changed Kleene operators to always delegate to internal nodes the mat…
alexandercerutti Feb 20, 2025
7ad1f5b
Fixed inline style parsing
alexandercerutti Feb 20, 2025
10d87a5
Added missing tokenizer advance to prevent wrong emission of a End Token
alexandercerutti Feb 20, 2025
29d0e6e
Added check to parse inline styles only if tts:* attributes are suppo…
alexandercerutti Feb 20, 2025
dc2aa4a
Fixed wrong usage of currentNode and renamed extractInlineStyles to e…
alexandercerutti Feb 20, 2025
24b7cf9
Added out of line styles processing to Adapter
alexandercerutti Feb 22, 2025
1ec319f
Fixed styles not being served when temporal context was getting merged
alexandercerutti Feb 22, 2025
c92ce36
Removed styles processing and association in parseCue as well as time…
alexandercerutti Feb 22, 2025
dea26af
Changed how renderingModifier missing in captions renderer is handled
alexandercerutti Feb 23, 2025
e8f0f03
Fixed Kleene tests
alexandercerutti Feb 23, 2025
2861955
Improved bpd and isd styles descriptions
alexandercerutti Feb 23, 2025
33df953
Changed moment in which line styles get applied
alexandercerutti Feb 23, 2025
83c7902
Added missing tag entity check when creating the subtree
alexandercerutti Feb 23, 2025
ac80350
Changed check when creating the difference index
alexandercerutti Feb 23, 2025
da34e76
Changed how entities are created in parseCue
alexandercerutti Feb 28, 2025
538d763
Removed style creation while parsing cue as already getting parsed in…
alexandercerutti Feb 28, 2025
399ec20
Removed check on hasTimeAttributes in order to always create a time c…
alexandercerutti Feb 28, 2025
4ddf71f
Added region activation time intervals when creating CueNodes
alexandercerutti Feb 28, 2025
1c4c759
Fixed some tests
alexandercerutti Feb 28, 2025
57b8cec
Fixed some tests with cue parsing
alexandercerutti Feb 28, 2025
c7e9a5e
Removed useless attributes
alexandercerutti Mar 1, 2025
4b129a6
Changed how scope is saved and memorized for anonymous spans in order…
alexandercerutti Mar 2, 2025
c1ad59b
Removed useless check and variable
alexandercerutti Mar 2, 2025
fe021b0
Added rootScope reference in order to maintain document and base scop…
alexandercerutti Mar 2, 2025
f9aa1df
Changed some push to concat
alexandercerutti Mar 2, 2025
ffb8185
Changed some tests to be marked as todo
alexandercerutti Mar 2, 2025
aa80eb2
Improved condition to create time intervals
alexandercerutti Mar 3, 2025
caafd19
Removed isTimestamp and distinction in creating them, the process is …
alexandercerutti Mar 3, 2025
2f2d970
Improved regions and time interval tests
alexandercerutti Mar 4, 2025
eecf60b
Refactored time intervals function
alexandercerutti Mar 4, 2025
f687753
Added animation details on styles definitions
alexandercerutti Mar 8, 2025
062fbdf
Added base structure to prepare for parsing of animations
alexandercerutti Mar 9, 2025
b22d5e1
Refactored cue timing segmentation to support multiple sources (regio…
alexandercerutti Mar 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Added todo comment to handle extent and origin as attributes on div a…
…nd p
alexandercerutti committed Apr 1, 2024
commit 6006c2486b42b2ce97e73f74b3b53a07e7ab55bd
8 changes: 8 additions & 0 deletions packages/ttml-adapter/src/Parser/parseCue.ts
Original file line number Diff line number Diff line change
@@ -43,6 +43,14 @@ export function parseCue(node: NodeWithRelationship<Token>, scope: Scope): CueNo
break;
}

/**
* @TODO handle "tts:extent" and "tts:origin" applied on paragraph
* element. They should be handled as an additional region, as per
* this section 11.1.2.1 of the standard.
*
* @see https://www.w3.org/TR/2018/REC-ttml2-20181108/#layout-vocabulary-region-special-inline-animation-semantics
*/

const localScope = createScope(
scope,
createTimeContext({