@softure-ai/marketing-kit 0.34.0 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +59 -0
- package/NOTICE +6 -0
- package/README.md +49 -1
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +1 -0
- package/dist/config/config.js.map +1 -1
- package/dist/config/schema.d.ts +10 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +9 -3
- package/dist/config/schema.js.map +1 -1
- package/dist/footage/captions.d.ts +22 -2
- package/dist/footage/captions.d.ts.map +1 -1
- package/dist/footage/captions.js +23 -4
- package/dist/footage/captions.js.map +1 -1
- package/dist/footage/compose.d.ts +11 -1
- package/dist/footage/compose.d.ts.map +1 -1
- package/dist/footage/compose.js +51 -17
- package/dist/footage/compose.js.map +1 -1
- package/dist/footage/draft-overlays.d.ts +6 -0
- package/dist/footage/draft-overlays.d.ts.map +1 -1
- package/dist/footage/draft-overlays.js +188 -4
- package/dist/footage/draft-overlays.js.map +1 -1
- package/dist/footage/draft.d.ts +14 -1
- package/dist/footage/draft.d.ts.map +1 -1
- package/dist/footage/draft.js +117 -17
- package/dist/footage/draft.js.map +1 -1
- package/dist/footage/drawn-transitions.d.ts +63 -0
- package/dist/footage/drawn-transitions.d.ts.map +1 -0
- package/dist/footage/drawn-transitions.js +177 -0
- package/dist/footage/drawn-transitions.js.map +1 -0
- package/dist/footage/edl.d.ts +42 -0
- package/dist/footage/edl.d.ts.map +1 -1
- package/dist/footage/edl.js +72 -2
- package/dist/footage/edl.js.map +1 -1
- package/dist/footage/film.d.ts +29 -5
- package/dist/footage/film.d.ts.map +1 -1
- package/dist/footage/film.js +13 -3
- package/dist/footage/film.js.map +1 -1
- package/dist/footage/hand-font.d.ts +16 -0
- package/dist/footage/hand-font.d.ts.map +1 -0
- package/dist/footage/hand-font.js +43 -0
- package/dist/footage/hand-font.js.map +1 -0
- package/dist/footage/overlay-html.d.ts +1 -0
- package/dist/footage/overlay-html.d.ts.map +1 -1
- package/dist/footage/overlay-html.js +134 -8
- package/dist/footage/overlay-html.js.map +1 -1
- package/dist/footage/overlay-motion.d.ts +35 -0
- package/dist/footage/overlay-motion.d.ts.map +1 -1
- package/dist/footage/overlay-motion.js +45 -0
- package/dist/footage/overlay-motion.js.map +1 -1
- package/dist/footage/overlay-schema.d.ts +48 -6
- package/dist/footage/overlay-schema.d.ts.map +1 -1
- package/dist/footage/overlay-schema.js +71 -18
- package/dist/footage/overlay-schema.js.map +1 -1
- package/dist/footage/overlays.d.ts +125 -1
- package/dist/footage/overlays.d.ts.map +1 -1
- package/dist/footage/overlays.js +265 -8
- package/dist/footage/overlays.js.map +1 -1
- package/dist/footage/picture.d.ts +10 -2
- package/dist/footage/picture.d.ts.map +1 -1
- package/dist/footage/picture.js +53 -13
- package/dist/footage/picture.js.map +1 -1
- package/dist/footage/pipeline.d.ts.map +1 -1
- package/dist/footage/pipeline.js +14 -4
- package/dist/footage/pipeline.js.map +1 -1
- package/dist/footage/split-screen.d.ts +167 -0
- package/dist/footage/split-screen.d.ts.map +1 -0
- package/dist/footage/split-screen.js +233 -0
- package/dist/footage/split-screen.js.map +1 -0
- package/dist/footage/tools.d.ts +1 -1
- package/dist/footage/tools.d.ts.map +1 -1
- package/dist/footage/tools.js +1 -1
- package/dist/footage/tools.js.map +1 -1
- package/dist/index.d.ts +8 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/fonts/Caveat-SemiBold-Latin.ttf +0 -0
- package/fonts/LICENSE-Caveat.txt +93 -0
- package/fonts/README.md +14 -0
- package/package.json +1 -1
- package/schema/edl.schema.json +167 -11
- package/schema/marketing.schema.json +19 -4
- package/src/config/config.ts +1 -0
- package/src/config/schema.ts +9 -3
- package/src/footage/captions.ts +32 -4
- package/src/footage/compose.ts +44 -11
- package/src/footage/draft-overlays.ts +217 -2
- package/src/footage/draft.ts +137 -17
- package/src/footage/drawn-transitions.ts +214 -0
- package/src/footage/edl.ts +67 -2
- package/src/footage/film.ts +23 -4
- package/src/footage/hand-font.ts +47 -0
- package/src/footage/overlay-html.ts +141 -7
- package/src/footage/overlay-motion.ts +49 -0
- package/src/footage/overlay-schema.ts +78 -19
- package/src/footage/overlays.ts +311 -10
- package/src/footage/picture.ts +58 -15
- package/src/footage/pipeline.ts +14 -4
- package/src/footage/split-screen.ts +319 -0
- package/src/footage/tools.ts +1 -1
- package/src/index.ts +62 -0
package/dist/index.js
CHANGED
|
@@ -10,11 +10,12 @@ export { ACTION_NAMES, ARIA_ROLES, actionSchema, locatorSchema, textMatchSchema,
|
|
|
10
10
|
export { findFootage, findMissingFiles, findMissingFootageFiles, findVideo, loadMarketingConfig, } from "./config/config.js";
|
|
11
11
|
export { COLOR_ROLES, COLOR_THEMES, OPTIONAL_COLOR_ROLES, getContrastRatio, getRelativeLuminance, } from "./config/colors.js";
|
|
12
12
|
export { CAPTION_HIGHLIGHT_BOX_PADDING_EM, CAPTION_HIGHLIGHT_BOX_RADIUS, CAPTION_HIGHLIGHT_SECONDS, CAPTION_ENTRANCE_SECONDS, CAPTION_POP_FROM_SCALE, CAPTION_UNDERLINE_EM, getCaptionEntranceTween, getCaptionHighlight, getCaptionHighlightContrast, } from "./footage/caption-highlight.js";
|
|
13
|
-
export { DEFAULT_OVERLAY_TYPING_SPEED, MAX_HOOK_TITLE_SECONDS, MAX_OVERLAY_COUNTER_VALUE, MAX_OVERLAY_DATE_LENGTH, MAX_OVERLAY_HOOK_TITLE_LENGTH, MAX_OVERLAY_KEYWORD_LENGTH, MAX_OVERLAY_LIST_ITEM_LENGTH, MAX_OVERLAY_LOWER_THIRD_LENGTH, MAX_OVERLAY_PLACE_LENGTH, MAX_OVERLAY_PLACE_TITLE_LENGTH, MAX_OVERLAY_SEARCH_LENGTH, MAX_OVERLAY_SECONDS, MAX_OVERLAY_SUBTITLE_LENGTH, MAX_OVERLAY_TYPING_SPEED, MAX_OVERLAY_UNIT_LENGTH, MIN_OVERLAY_SECONDS, MIN_OVERLAY_TYPING_SPEED, OVERLAY_ALIGNED_KINDS, OVERLAY_ALIGNS, OVERLAY_KEYWORD_ALIGNS, OVERLAY_EASINGS, OVERLAY_ENTRANCES, OVERLAY_ENTRANCES_BY_KIND, OVERLAY_EXITS, OVERLAY_PINS, OVERLAY_LIST_LAYOUTS, MAX_OVERLAY_SUBTITLE_DELAY, OVERLAY_KINDS, OVERLAY_POSITIONS, OVERLAY_POSITIONS_BY_KIND, OVERLAY_SIDED_KINDS, OVERLAY_SIDES, OVERLAY_SIZES, isTypedOverlay, } from "./footage/overlay-schema.js";
|
|
13
|
+
export { DEFAULT_OVERLAY_TYPING_SPEED, MAX_HOOK_TITLE_SECONDS, MAX_OVERLAY_COUNTER_VALUE, MAX_OVERLAY_DATE_LENGTH, MAX_OVERLAY_HOOK_TITLE_LENGTH, MAX_OVERLAY_KEYWORD_LENGTH, MAX_OVERLAY_LIST_ITEM_LENGTH, MAX_OVERLAY_LOWER_THIRD_LENGTH, MAX_OVERLAY_PLACE_LENGTH, MAX_OVERLAY_PLACE_TITLE_LENGTH, MAX_OVERLAY_SEARCH_LENGTH, MAX_OVERLAY_SECONDS, MAX_OVERLAY_SUBTITLE_LENGTH, MAX_OVERLAY_TYPING_SPEED, MAX_OVERLAY_UNIT_LENGTH, MIN_OVERLAY_SECONDS, MIN_OVERLAY_TYPING_SPEED, OVERLAY_ALIGNED_KINDS, OVERLAY_ALIGNS, OVERLAY_KEYWORD_ALIGNS, OVERLAY_EASINGS, OVERLAY_ENTRANCES, OVERLAY_ENTRANCES_BY_KIND, OVERLAY_EXITS, OVERLAY_PINS, OVERLAY_LIST_LAYOUTS, MAX_OVERLAY_SUBTITLE_DELAY, MAX_END_WORD_SECONDS, MAX_OVERLAY_END_WORD_LENGTH, MAX_OVERLAY_NOTE_LENGTH, MIN_END_WORD_SECONDS, OVERLAY_BACKDROP_KINDS, OVERLAY_BACKDROPS, OVERLAY_NOTE_STYLES, OVERLAY_KINDS, OVERLAY_POSITIONS, OVERLAY_POSITIONS_BY_KIND, OVERLAY_SIDED_KINDS, OVERLAY_SIDES, OVERLAY_SIZES, isTypedOverlay, } from "./footage/overlay-schema.js";
|
|
14
14
|
export { CORNER_RADII, CORNER_RADIUS_PX, STYLE_BORDER_PX, STYLE_BORDERS, STYLE_PADDING_SCALES, STYLE_PADDINGS, STYLE_SHADOW, STYLE_SHADOWS, getCaptionCornerRadius, getCornerRadiusCss, getCornerRadiusPx, getStyleBorderCss, getStylePadding, getStyleShadowCss, } from "./footage/brand-style.js";
|
|
15
15
|
export { createDraftTextMeasure, wrapDraftLine } from "./footage/draft-text-width.js";
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
16
|
+
export { HAND_FONT } from "./footage/hand-font.js";
|
|
17
|
+
export { OVERLAY_FONT_ROLES, OVERLAY_FONT_SIZES, OVERLAY_SUBTITLE_SCALES, MIN_OVERLAY_SUBTITLE_PX, OVERLAY_TITLE_SHRINK, PUNCH_IN_EASE_SECONDS, PUNCH_IN_SCALES, findShotBreak, formatOverlayNumber, LIST_CHIP_GAP_EM, getDrawnOverlayCard, getListCardsByItem, getListItemTimes, getOverlayBounds, getOverlayPadding, getPlaceCardPinRow, getPlaceCardPinSize, getTitleContentBox, getTitleContentSize, wrapOverlayTitle, getOverlaySafeZone, getOverlayTexts, getOverlayTextsByRole, getNoteColors, isHandFontNeeded, isTitleBand, timeNote, wrapNoteText, resolveEdlOverlays, } from "./footage/overlays.js";
|
|
18
|
+
export { OVERLAY_EASES, POP_FROM_SCALE, RISE_FROM_HEIGHT, getEntranceMotion, getEntranceScaleAt, getExitMotion, getListItemStarts, getDropLetterTimes, getDropOffsetAt, } from "./footage/overlay-motion.js";
|
|
18
19
|
export { resolveBrandColors } from "./config/brand.js";
|
|
19
20
|
export { readCssColors } from "./config/css-colors.js";
|
|
20
21
|
export { readDesignJsonColors } from "./config/design-json.js";
|
|
@@ -41,7 +42,7 @@ export { getScreenshotFile, takePageScreenshot, takeScreenshots, } from "./scree
|
|
|
41
42
|
export { MIN_FAILING_STATUS, SCREENSHOT_GATES, findScrollFailure, findSizeFailure, findStatusFailure } from "./screenshot/gates.js";
|
|
42
43
|
export { findStorageStateProblem } from "./screenshot/storage-state.js";
|
|
43
44
|
export { getScreenshotNames, getScreenshotShots } from "./config/screenshot-names.js";
|
|
44
|
-
export { CLIP_FITS, CLIP_ROLES, CUT_TRANSITIONS, DEFAULT_AUTO_THRESHOLD, JUMP_TRANSITIONS, DEFAULT_CUT, DEFAULT_CAPTION_KEEP_WITH_NEXT, DEFAULT_FILLERS, DEFAULT_MUSIC_VOLUME, DEFAULT_TRANSITIONS, CAPTION_MIN_FONT_SCALE, CAPTION_PRESETS, CAPTION_STYLES, CAPTION_HIGHLIGHT_STYLES, CAPTION_ENTRANCES, DEFAULT_EDIT, DEFAULT_END_CARD_SECONDS, DEFAULT_LOGO_END_CARD_FADE_SECONDS, DEFAULT_LOGO_END_CARD_SECONDS, getDefaultFillers, getDeclickLevel, getEndCardSeconds, getEndCardTexts, getFootageEdit, } from "./footage/film.js";
|
|
45
|
+
export { CLIP_FITS, CLIP_ROLES, CUT_TRANSITIONS, DEFAULT_AUTO_THRESHOLD, JUMP_TRANSITIONS, DEFAULT_CUT, DEFAULT_CAPTION_KEEP_WITH_NEXT, DEFAULT_FILLERS, DEFAULT_MUSIC_VOLUME, DEFAULT_TRANSITIONS, CAPTION_MIN_FONT_SCALE, CAPTION_PRESETS, CAPTION_STYLES, CAPTION_RIBBON, CAPTION_RIBBON_MAX_TILT, CAPTION_RIBBON_TILT, CAPTION_HIGHLIGHT_STYLES, CAPTION_ENTRANCES, DEFAULT_EDIT, DEFAULT_END_CARD_SECONDS, DEFAULT_LOGO_END_CARD_FADE_SECONDS, DEFAULT_LOGO_END_CARD_SECONDS, getDefaultFillers, getDeclickLevel, getEndCardSeconds, getEndCardTexts, getFootageEdit, } from "./footage/film.js";
|
|
45
46
|
export { DECLICK_AR_CONTEXT, DECLICK_AR_ORDER, DECLICK_CROSSFADE, DECLICK_LEVELS, DECLICK_MAX_IMPULSE, DECLICK_REPAIR_RULES, DECLICK_SETTINGS, DECLICK_WORD_GUARD, buildDeclickDecodeArgs, buildDeclickEncodeArgs, declickSamples, declickSpeech, describeDeclick, findImpulses, findRepairs, getArPolynomial, getRepairZones, getRunningMedian, repairSpan, } from "./footage/declick.js";
|
|
46
47
|
export { MOUTH_CLICK_RULES, findMouthClicks } from "./footage/mouth-clicks.js";
|
|
47
48
|
export { MIN_CLIP_SECONDS, describeProbe, findFootageProblems, getTrimmedDuration, normalizeRotation, probeFile, probeFootage, readFootageProbe, runFfprobe, } from "./footage/probe.js";
|
|
@@ -55,8 +56,10 @@ export { SCRIBE_KEYTERM_LIMITS, getFilmKeyTerms, normalizeKeyTerms } from "./foo
|
|
|
55
56
|
export { footageCacheKey, getFootageCachePath, hashFile, readCachedTranscript } from "./footage/cache.js";
|
|
56
57
|
export { MIN_SEGMENT_SECONDS, SEGMENT_MOTIONS, buildEdl, diffEdl, edlSchema, findEdlProblems, findSegmentAt, findCaptionRangeAt, getEdlDuration, getEdlJsonSchema, getSegmentStarts, getSoundSpan, isFiller, normalizeWord, readEdl, remapWords, validateEdl, MAX_FADE_FRAMES, MIN_FADE_FRAMES, } from "./footage/edl.js";
|
|
57
58
|
export { CAMERA_EASES, CAMERA_ORIGIN, MAX_CAMERA_SCALE, cameraSchema, describeCamera, getCameraGsapEase, getCameraMoveFrames, getCameraMoveSeconds, getCameraOrigin, getCameraScaleAt, getCameraScaleExpression, isCameraMoving, isSameCamera, toTransformOrigin, } from "./footage/camera.js";
|
|
59
|
+
export { DRAWN_TRANSITIONS, DRAWN_TRANSITION_FRAMES, FRAME_TIMING, PAPER_FADE_FRAMES, STUTTER_FRAMES, STUTTER_SCALE, WHIP_OUT_FRAMES, buildDrawnTransitionFilters, getCardFrame, getTransitionOverlapFrames, isDrawnTransition, } from "./footage/drawn-transitions.js";
|
|
60
|
+
export { MAX_SPLIT_LABEL_CHARACTERS, SPLIT_BANDS, SPLIT_LAYOUTS, buildSplitScreenFilters, findSplitCaptionProblems, findSplitLabelProblems, getSplitArrowPaths, getSplitBandHeights, getSplitCaption, getSplitLayerInputArgs, getSplitLayerSvg, getSplitPlaces, renderSplitLayerPng, splitSchema, writeSplitLayers, } from "./footage/split-screen.js";
|
|
58
61
|
export { findRetakes, splitFilmSentences, splitSentences } from "./footage/sentences.js";
|
|
59
|
-
export { CAPTION_SAFE_ZONES, applySegmentCaption, findMissingCaptionGlyphs, getCaptionBounds, getCaptionChunkLayouts, getCaptionPlaceAt, getCaptionKeepsWithNext, getFootageCaptionChunks, getCaptionPresetLayout, getCaptionSpans, getFootageCaptionLayout, getSegmentCaptionLayout, isSameCaptionPlace, phraseChunks, } from "./footage/captions.js";
|
|
62
|
+
export { CAPTION_SAFE_ZONES, applySegmentCaption, findMissingCaptionGlyphs, getCaptionBounds, getCaptionChunkLayouts, getCaptionPlaceAt, getCaptionKeepsWithNext, getFootageCaptionChunks, getCaptionPresetLayout, getCaptionRibbonTilt, getRibbonCaptionExtent, toCaptionDisplayText, getCaptionSpans, getFootageCaptionLayout, getSegmentCaptionLayout, isSameCaptionPlace, phraseChunks, } from "./footage/captions.js";
|
|
60
63
|
export { CUT_THUMBNAIL, buildCutFrameArgs, chooseCutTransition, chooseCutTransitions, findAutoCuts, measureFrameDifference, } from "./footage/cuts.js";
|
|
61
64
|
export { MAX_FRAMES, buildFrameArgs, extractFrames, getFrameTimes } from "./footage/frames.js";
|
|
62
65
|
export { duckingKeyframes, getDuckingOptions, getSpeechSpans, volumeExpression } from "./footage/music.js";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,oGAAoG;AACpG,uGAAuG;AACvG,wGAAwG;AACxG,wHAAwH;AACxH,wEAAwE;AACxE,qEAAqE;AACrE,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,SAAS,EACT,UAAU,EACV,sBAAsB,EACtB,eAAe,GAKhB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,aAAa,EACb,eAAe,GAOhB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,uBAAuB,EACvB,SAAS,EAET,mBAAmB,GAUpB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,WAAW,EACX,YAAY,EACZ,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,GAMrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,gCAAgC,EAChC,4BAA4B,EAC5B,yBAAyB,EACzB,wBAAwB,EACxB,sBAAsB,EACtB,oBAAoB,EACpB,uBAAuB,EACvB,mBAAmB,EACnB,2BAA2B,GAK5B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACtB,yBAAyB,EACzB,uBAAuB,EACvB,6BAA6B,EAC7B,0BAA0B,EAC1B,4BAA4B,EAC5B,8BAA8B,EAC9B,wBAAwB,EACxB,8BAA8B,EAC9B,yBAAyB,EACzB,mBAAmB,EACnB,2BAA2B,EAC3B,wBAAwB,EACxB,uBAAuB,EACvB,mBAAmB,EACnB,wBAAwB,EACxB,qBAAqB,EACrB,cAAc,EACd,sBAAsB,EACtB,eAAe,EACf,iBAAiB,EACjB,yBAAyB,EACzB,aAAa,EACb,YAAY,EACZ,oBAAoB,EACpB,0BAA0B,EAC1B,aAAa,EACb,iBAAiB,EACjB,yBAAyB,EACzB,mBAAmB,EACnB,aAAa,EACb,aAAa,EACb,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,oGAAoG;AACpG,uGAAuG;AACvG,wGAAwG;AACxG,wHAAwH;AACxH,wEAAwE;A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4B,EAC5B,mBAAmB,EACnB,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,GASpB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,6BAA6B,EAC7B,oCAAoC,EACpC,mBAAmB,GAMpB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,GAKvB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,YAAY,EAAE,gBAAgB,EAAwB,MAAM,mBAAmB,CAAC;AACrI,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,iBAAiB,EAA4B,MAAM,oBAAoB,CAAC;AAC5K,OAAO,EACL,SAAS,EACT,UAAU,EACV,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,UAAU,EACV,QAAQ,EACR,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACnB,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,iBAAiB,GAelB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,yBAAyB,EAAE,yBAAyB,EAAmE,MAAM,sBAAsB,CAAC;AAC7J,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,iBAAiB,GAGlB,MAAM,qBAAqB,CAAC"}
|
|
Binary file
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2014 The Caveat Project Authors (https://github.com/googlefonts/caveat)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
package/fonts/README.md
CHANGED
|
@@ -10,3 +10,17 @@ pyftsubset DejaVuSans-Bold.ttf --unicodes="U+0020-007E,U+00A0-017F,U+2010-2027,U
|
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
Licence: [LICENSE-DejaVu.txt](LICENSE-DejaVu.txt) (the Bitstream Vera licence; DejaVu changes are in the public domain).
|
|
13
|
+
|
|
14
|
+
`Caveat-SemiBold-Latin.ttf` is the kit's handwriting (`HAND_FONT`): a note card and an end word are written in it. It
|
|
15
|
+
is [Caveat](https://github.com/googlefonts/caveat) as a static SemiBold instance (weight 600 of the variable font,
|
|
16
|
+
named back to family `Caveat`, style `Regular`) subset to the same characters as the caption font, with its contextual
|
|
17
|
+
alternates kept:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
fonttools varLib.instancer Caveat[wght].ttf wght=600 --output Caveat-SemiBold.ttf
|
|
21
|
+
# then set name IDs 1, 2, 4 and 6 to Caveat / Regular / Caveat / Caveat-Regular
|
|
22
|
+
pyftsubset Caveat-SemiBold.ttf --unicodes="U+0020-007E,U+00A0-017F,U+2010-2027,U+2030-203A,U+20AC,U+2122" \
|
|
23
|
+
--layout-features='kern,liga,calt' --output-file=Caveat-SemiBold-Latin.ttf
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Licence: [LICENSE-Caveat.txt](LICENSE-Caveat.txt) (SIL Open Font License 1.1).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@softure-ai/marketing-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.0",
|
|
4
4
|
"description": "SOFTURE AI marketing kit: a CLI that turns a project's real app into a vertical film (cached voiceover, frame-by-frame recording, HTML composition, hyperframes render) plus per-platform post copy and OG images.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
package/schema/edl.schema.json
CHANGED
|
@@ -44,9 +44,13 @@
|
|
|
44
44
|
"cut",
|
|
45
45
|
"fade",
|
|
46
46
|
"zoom",
|
|
47
|
-
"whoosh"
|
|
47
|
+
"whoosh",
|
|
48
|
+
"whip",
|
|
49
|
+
"card",
|
|
50
|
+
"paper",
|
|
51
|
+
"stutter"
|
|
48
52
|
],
|
|
49
|
-
"description": "How the segment starts: cut, fade (a cross-fade from the segment before), zoom (a punch-in) or
|
|
53
|
+
"description": "How the segment starts: cut, fade (a cross-fade from the segment before), zoom (a punch-in), whoosh, whip (a whip pan with motion blur, 14 frames), card (the shot grows from a small card, 13 frames), paper (a torn-paper wipe, 12 frames) or stutter (5 frames wide, then tight)."
|
|
50
54
|
},
|
|
51
55
|
"motion": {
|
|
52
56
|
"type": "string",
|
|
@@ -173,6 +177,135 @@
|
|
|
173
177
|
}
|
|
174
178
|
},
|
|
175
179
|
"additionalProperties": false
|
|
180
|
+
},
|
|
181
|
+
"split": {
|
|
182
|
+
"type": "object",
|
|
183
|
+
"properties": {
|
|
184
|
+
"layout": {
|
|
185
|
+
"type": "string",
|
|
186
|
+
"enum": [
|
|
187
|
+
"split3"
|
|
188
|
+
],
|
|
189
|
+
"description": "split3: three shots stacked in horizontal bands."
|
|
190
|
+
},
|
|
191
|
+
"bands": {
|
|
192
|
+
"type": "array",
|
|
193
|
+
"prefixItems": [
|
|
194
|
+
{
|
|
195
|
+
"type": "object",
|
|
196
|
+
"properties": {
|
|
197
|
+
"clip": {
|
|
198
|
+
"type": "string",
|
|
199
|
+
"minLength": 1,
|
|
200
|
+
"description": "The band's clip id."
|
|
201
|
+
},
|
|
202
|
+
"start": {
|
|
203
|
+
"type": "number",
|
|
204
|
+
"minimum": 0,
|
|
205
|
+
"description": "Seconds in that trimmed clip where the band's shot starts; it plays for the segment's length."
|
|
206
|
+
},
|
|
207
|
+
"label": {
|
|
208
|
+
"type": "string",
|
|
209
|
+
"minLength": 1,
|
|
210
|
+
"maxLength": 24,
|
|
211
|
+
"pattern": "^[^\\n\\r]*$",
|
|
212
|
+
"description": "A short handwritten label, one line, at most 24 characters (a place's name)."
|
|
213
|
+
},
|
|
214
|
+
"focus": {
|
|
215
|
+
"description": "Where the band's crop sits in the shot's height: 0 its top, 1 its foot; 0.5 (the middle) without it.",
|
|
216
|
+
"type": "number",
|
|
217
|
+
"minimum": 0,
|
|
218
|
+
"maximum": 1
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"required": [
|
|
222
|
+
"clip",
|
|
223
|
+
"start",
|
|
224
|
+
"label"
|
|
225
|
+
],
|
|
226
|
+
"additionalProperties": false
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"type": "object",
|
|
230
|
+
"properties": {
|
|
231
|
+
"clip": {
|
|
232
|
+
"type": "string",
|
|
233
|
+
"minLength": 1,
|
|
234
|
+
"description": "The band's clip id."
|
|
235
|
+
},
|
|
236
|
+
"start": {
|
|
237
|
+
"type": "number",
|
|
238
|
+
"minimum": 0,
|
|
239
|
+
"description": "Seconds in that trimmed clip where the band's shot starts; it plays for the segment's length."
|
|
240
|
+
},
|
|
241
|
+
"label": {
|
|
242
|
+
"type": "string",
|
|
243
|
+
"minLength": 1,
|
|
244
|
+
"maxLength": 24,
|
|
245
|
+
"pattern": "^[^\\n\\r]*$",
|
|
246
|
+
"description": "A short handwritten label, one line, at most 24 characters (a place's name)."
|
|
247
|
+
},
|
|
248
|
+
"focus": {
|
|
249
|
+
"description": "Where the band's crop sits in the shot's height: 0 its top, 1 its foot; 0.5 (the middle) without it.",
|
|
250
|
+
"type": "number",
|
|
251
|
+
"minimum": 0,
|
|
252
|
+
"maximum": 1
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"required": [
|
|
256
|
+
"clip",
|
|
257
|
+
"start",
|
|
258
|
+
"label"
|
|
259
|
+
],
|
|
260
|
+
"additionalProperties": false
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"type": "object",
|
|
264
|
+
"properties": {
|
|
265
|
+
"clip": {
|
|
266
|
+
"type": "string",
|
|
267
|
+
"minLength": 1,
|
|
268
|
+
"description": "The band's clip id."
|
|
269
|
+
},
|
|
270
|
+
"start": {
|
|
271
|
+
"type": "number",
|
|
272
|
+
"minimum": 0,
|
|
273
|
+
"description": "Seconds in that trimmed clip where the band's shot starts; it plays for the segment's length."
|
|
274
|
+
},
|
|
275
|
+
"label": {
|
|
276
|
+
"type": "string",
|
|
277
|
+
"minLength": 1,
|
|
278
|
+
"maxLength": 24,
|
|
279
|
+
"pattern": "^[^\\n\\r]*$",
|
|
280
|
+
"description": "A short handwritten label, one line, at most 24 characters (a place's name)."
|
|
281
|
+
},
|
|
282
|
+
"focus": {
|
|
283
|
+
"description": "Where the band's crop sits in the shot's height: 0 its top, 1 its foot; 0.5 (the middle) without it.",
|
|
284
|
+
"type": "number",
|
|
285
|
+
"minimum": 0,
|
|
286
|
+
"maximum": 1
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
"required": [
|
|
290
|
+
"clip",
|
|
291
|
+
"start",
|
|
292
|
+
"label"
|
|
293
|
+
],
|
|
294
|
+
"additionalProperties": false
|
|
295
|
+
}
|
|
296
|
+
],
|
|
297
|
+
"items": false,
|
|
298
|
+
"minItems": 3,
|
|
299
|
+
"maxItems": 3,
|
|
300
|
+
"description": "The three bands, top to bottom."
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
"required": [
|
|
304
|
+
"layout",
|
|
305
|
+
"bands"
|
|
306
|
+
],
|
|
307
|
+
"additionalProperties": false,
|
|
308
|
+
"description": "A split screen: the segment's picture is three shots stacked in bands, each with a handwritten label and a drawn arrow; the segment's sound stays its own. Still (no camera, Ken Burns, zoom or stutter), not the cut's last segment, and the segment after it starts on a plain cut."
|
|
176
309
|
}
|
|
177
310
|
},
|
|
178
311
|
"required": [
|
|
@@ -207,9 +340,11 @@
|
|
|
207
340
|
"search_bar",
|
|
208
341
|
"place_card",
|
|
209
342
|
"counter",
|
|
210
|
-
"date_stamp"
|
|
343
|
+
"date_stamp",
|
|
344
|
+
"note",
|
|
345
|
+
"end_word"
|
|
211
346
|
],
|
|
212
|
-
"description": "punch_in (an emphasis zoom on a word), keyword, lower_third, list, arrow, highlight, hook_title, search_bar, place_card, counter or
|
|
347
|
+
"description": "punch_in (an emphasis zoom on a word), keyword, lower_third, list, arrow, highlight, hook_title, search_bar, place_card, counter, date_stamp, note or end_word."
|
|
213
348
|
},
|
|
214
349
|
"at_word": {
|
|
215
350
|
"description": "The transcript word the overlay starts on (its start after the cut); give this or at.",
|
|
@@ -239,12 +374,12 @@
|
|
|
239
374
|
},
|
|
240
375
|
"duration": {
|
|
241
376
|
"type": "number",
|
|
242
|
-
"minimum":
|
|
377
|
+
"minimum": 0.5,
|
|
243
378
|
"maximum": 180,
|
|
244
|
-
"description": "Seconds on screen (1-8; a hook_title up to 180)."
|
|
379
|
+
"description": "Seconds on screen (1-8; a hook_title up to 180; an end_word 0.5-2)."
|
|
245
380
|
},
|
|
246
381
|
"text": {
|
|
247
|
-
"description": "The text: keyword (up to 24 characters), lower_third (40), hook_title (64, one or two lines), search_bar (40), place_card title (28)
|
|
382
|
+
"description": "The text: keyword (up to 24 characters), lower_third (40), hook_title (64, one or two lines), search_bar (40), place_card title (28), date_stamp (24), note (72) or end_word (16, one line).",
|
|
248
383
|
"type": "string",
|
|
249
384
|
"minLength": 1
|
|
250
385
|
},
|
|
@@ -370,7 +505,7 @@
|
|
|
370
505
|
]
|
|
371
506
|
},
|
|
372
507
|
"side": {
|
|
373
|
-
"description": "The side a keyword, lower third, list
|
|
508
|
+
"description": "The side a keyword, lower third, list, date stamp or note sits on.",
|
|
374
509
|
"type": "string",
|
|
375
510
|
"enum": [
|
|
376
511
|
"left",
|
|
@@ -378,7 +513,7 @@
|
|
|
378
513
|
]
|
|
379
514
|
},
|
|
380
515
|
"position": {
|
|
381
|
-
"description": "top, middle or bottom of the room above the captions: keyword, search_bar, place_card, counter (any), lower_third (top or bottom), list (top or middle).",
|
|
516
|
+
"description": "top, middle or bottom of the room above the captions: keyword, search_bar, place_card, counter (any), lower_third (top or bottom), list and note (top or middle).",
|
|
382
517
|
"type": "string",
|
|
383
518
|
"enum": [
|
|
384
519
|
"top",
|
|
@@ -387,7 +522,7 @@
|
|
|
387
522
|
]
|
|
388
523
|
},
|
|
389
524
|
"entrance": {
|
|
390
|
-
"description": "fade, slide, type (text typed in letter by letter), none, pop (92 % to 100 %, no overshoot), rise (up from 5 % of the height), blur (blurred to sharp)
|
|
525
|
+
"description": "fade, slide, type (text typed in letter by letter), none, pop (92 % to 100 %, no overshoot), rise (up from 5 % of the height), blur (blurred to sharp), wipe (card revealed from the left in the accent, then the text) or drop (hook_title, keyword, end_word: letters fall into place one by one, never below their line); without it the kind's own. Never a bounce.",
|
|
391
526
|
"type": "string",
|
|
392
527
|
"enum": [
|
|
393
528
|
"fade",
|
|
@@ -397,7 +532,8 @@
|
|
|
397
532
|
"pop",
|
|
398
533
|
"rise",
|
|
399
534
|
"blur",
|
|
400
|
-
"wipe"
|
|
535
|
+
"wipe",
|
|
536
|
+
"drop"
|
|
401
537
|
]
|
|
402
538
|
},
|
|
403
539
|
"exit": {
|
|
@@ -506,6 +642,26 @@
|
|
|
506
642
|
"underline": {
|
|
507
643
|
"description": "A keyword only: an accent bar drawn under the word after it enters.",
|
|
508
644
|
"type": "boolean"
|
|
645
|
+
},
|
|
646
|
+
"backdrop": {
|
|
647
|
+
"description": "A hook_title or keyword only: card (the default) or highlight (each line on its own tight box in the card colour; typed in, the box grows with the letters).",
|
|
648
|
+
"type": "string",
|
|
649
|
+
"enum": [
|
|
650
|
+
"card",
|
|
651
|
+
"highlight"
|
|
652
|
+
]
|
|
653
|
+
},
|
|
654
|
+
"note_style": {
|
|
655
|
+
"description": "A note only: card (the default: a tilted paper card, handwritten words appearing as they are said) or strip (a torn paper strip that grows in, then types its text in capitals).",
|
|
656
|
+
"type": "string",
|
|
657
|
+
"enum": [
|
|
658
|
+
"card",
|
|
659
|
+
"strip"
|
|
660
|
+
]
|
|
661
|
+
},
|
|
662
|
+
"tick": {
|
|
663
|
+
"description": "A note only: a hand-drawn tick after its last word.",
|
|
664
|
+
"type": "boolean"
|
|
509
665
|
}
|
|
510
666
|
},
|
|
511
667
|
"additionalProperties": false
|
|
@@ -2777,18 +2777,26 @@
|
|
|
2777
2777
|
"fade",
|
|
2778
2778
|
"zoom",
|
|
2779
2779
|
"whoosh",
|
|
2780
|
+
"whip",
|
|
2781
|
+
"card",
|
|
2782
|
+
"paper",
|
|
2783
|
+
"stutter",
|
|
2780
2784
|
"auto"
|
|
2781
2785
|
]
|
|
2782
2786
|
},
|
|
2783
2787
|
"clip": {
|
|
2784
2788
|
"default": "cut",
|
|
2785
|
-
"description": "A cut from one clip to the next: cut (the default), fade, zoom or
|
|
2789
|
+
"description": "A cut from one clip to the next: cut (the default), fade, zoom, whoosh, whip, card, paper or stutter.",
|
|
2786
2790
|
"type": "string",
|
|
2787
2791
|
"enum": [
|
|
2788
2792
|
"cut",
|
|
2789
2793
|
"fade",
|
|
2790
2794
|
"zoom",
|
|
2791
|
-
"whoosh"
|
|
2795
|
+
"whoosh",
|
|
2796
|
+
"whip",
|
|
2797
|
+
"card",
|
|
2798
|
+
"paper",
|
|
2799
|
+
"stutter"
|
|
2792
2800
|
]
|
|
2793
2801
|
},
|
|
2794
2802
|
"autoThreshold": {
|
|
@@ -2871,13 +2879,20 @@
|
|
|
2871
2879
|
},
|
|
2872
2880
|
"captionStyle": {
|
|
2873
2881
|
"default": "phrase",
|
|
2874
|
-
"description": "phrase (the default): 2-6 words of plain text with a soft shadow; highlight: a pill that lights each word as it is said.",
|
|
2882
|
+
"description": "phrase (the default): 2-6 words of plain text with a soft shadow; highlight: a pill that lights each word as it is said; ribbon: bold capitals, each line on its own flat strip of brand.colors.captionBackground, the block slightly turned (captionRibbonTilt).",
|
|
2875
2883
|
"type": "string",
|
|
2876
2884
|
"enum": [
|
|
2877
2885
|
"phrase",
|
|
2878
|
-
"highlight"
|
|
2886
|
+
"highlight",
|
|
2887
|
+
"ribbon"
|
|
2879
2888
|
]
|
|
2880
2889
|
},
|
|
2890
|
+
"captionRibbonTilt": {
|
|
2891
|
+
"description": "A ribbon caption's turn in degrees, counter-clockwise positive (-10 to 10); without it, 4. Ignored by the other styles.",
|
|
2892
|
+
"type": "number",
|
|
2893
|
+
"minimum": -10,
|
|
2894
|
+
"maximum": 10
|
|
2895
|
+
},
|
|
2881
2896
|
"captionHighlightStyle": {
|
|
2882
2897
|
"default": "text",
|
|
2883
2898
|
"description": "How a highlight caption lights the word being said: text (the default) colours it captionHighlight; box puts it on a rounded box of brand.colors.captionHighlightBox with its text in captionHighlightText (both then required); underline keeps its text and underlines it in captionHighlight.",
|
package/src/config/config.ts
CHANGED
|
@@ -252,6 +252,7 @@ function resolveFootage(data: MarketingJson, at: (relative: string) => string):
|
|
|
252
252
|
},
|
|
253
253
|
captions: film.captions,
|
|
254
254
|
captionStyle: film.captionStyle,
|
|
255
|
+
...(film.captionRibbonTilt === undefined ? {} : { captionRibbonTilt: film.captionRibbonTilt }),
|
|
255
256
|
...(film.captionHighlightStyle === "text" ? {} : { captionHighlightStyle: film.captionHighlightStyle }),
|
|
256
257
|
...(film.captionEntrance === undefined ? {} : { captionEntrance: film.captionEntrance }),
|
|
257
258
|
...(film.captionPreset === undefined ? {} : { captionPreset: film.captionPreset }),
|
package/src/config/schema.ts
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import { bigNumberDataSchema, carouselDataSchema, headlineChartDataSchema, headlineCtaDataSchema } from "../og/templates/schemas.js";
|
|
16
16
|
import { CHANNEL_CODE_MAX_LENGTH, CHANNEL_CODE_PATTERN, DEFAULT_LINK_IN_BIO, PLATFORMS } from "../platforms.js";
|
|
17
17
|
import { DECLICK_LEVELS } from "../footage/declick.js";
|
|
18
|
-
import { CAPTION_ENTRANCES, CAPTION_HIGHLIGHT_STYLES, CAPTION_PRESETS, CAPTION_STYLES, CLIP_FITS, CLIP_ROLES, CUT_TRANSITIONS, JUMP_TRANSITIONS } from "../footage/film.js";
|
|
18
|
+
import { CAPTION_ENTRANCES, CAPTION_HIGHLIGHT_STYLES, CAPTION_PRESETS, CAPTION_RIBBON_MAX_TILT, CAPTION_RIBBON_TILT, CAPTION_STYLES, CLIP_FITS, CLIP_ROLES, CUT_TRANSITIONS, JUMP_TRANSITIONS } from "../footage/film.js";
|
|
19
19
|
import { normalizeKeyTerms } from "../footage/keyterms.js";
|
|
20
20
|
import { ELEVENLABS_DEFAULT_MODEL } from "../voice/voiceover.js";
|
|
21
21
|
import { actionSchema, type SceneAction } from "./actions-schema.js";
|
|
@@ -546,7 +546,7 @@ const footageSchema = z
|
|
|
546
546
|
.describe(
|
|
547
547
|
"A cut inside one talking clip: cut (the default), fade, zoom (a punch-in), whoosh, or auto (zoom when the frames on both sides look alike, fade when the camera moved; measured when the cut is built).",
|
|
548
548
|
),
|
|
549
|
-
clip: z.enum(CUT_TRANSITIONS).default("cut").describe("A cut from one clip to the next: cut (the default), fade, zoom or
|
|
549
|
+
clip: z.enum(CUT_TRANSITIONS).default("cut").describe("A cut from one clip to the next: cut (the default), fade, zoom, whoosh, whip, card, paper or stutter."),
|
|
550
550
|
autoThreshold: z
|
|
551
551
|
.number()
|
|
552
552
|
.min(0)
|
|
@@ -582,7 +582,13 @@ const footageSchema = z
|
|
|
582
582
|
captionStyle: z
|
|
583
583
|
.enum(CAPTION_STYLES)
|
|
584
584
|
.default("phrase")
|
|
585
|
-
.describe("phrase (the default): 2-6 words of plain text with a soft shadow; highlight: a pill that lights each word as it is said."),
|
|
585
|
+
.describe("phrase (the default): 2-6 words of plain text with a soft shadow; highlight: a pill that lights each word as it is said; ribbon: bold capitals, each line on its own flat strip of brand.colors.captionBackground, the block slightly turned (captionRibbonTilt)."),
|
|
586
|
+
captionRibbonTilt: z
|
|
587
|
+
.number()
|
|
588
|
+
.min(-CAPTION_RIBBON_MAX_TILT)
|
|
589
|
+
.max(CAPTION_RIBBON_MAX_TILT)
|
|
590
|
+
.optional()
|
|
591
|
+
.describe(`A ribbon caption's turn in degrees, counter-clockwise positive (-${String(CAPTION_RIBBON_MAX_TILT)} to ${String(CAPTION_RIBBON_MAX_TILT)}); without it, ${String(CAPTION_RIBBON_TILT)}. Ignored by the other styles.`),
|
|
586
592
|
captionHighlightStyle: z
|
|
587
593
|
.enum(CAPTION_HIGHLIGHT_STYLES)
|
|
588
594
|
.default("text")
|
package/src/footage/captions.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { BrandFont } from "../config/config.js";
|
|
|
5
5
|
import { readCharacterMap, type CharacterMap } from "../og/character-map.js";
|
|
6
6
|
import type { TimedWord } from "../voice/voiceover.js";
|
|
7
7
|
import { findCaptionRangeAt, findSegmentAt, type Edl, type EdlCaption, type EdlCaptionBounds } from "./edl.js";
|
|
8
|
-
import { DEFAULT_CAPTION_KEEP_WITH_NEXT, type CaptionPreset, type FootageFilm } from "./film.js";
|
|
8
|
+
import { CAPTION_RIBBON, CAPTION_RIBBON_TILT, DEFAULT_CAPTION_KEEP_WITH_NEXT, type CaptionPreset, type FootageFilm } from "./film.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* The footage film's captions: plain phrases (the default style), the 9:16 caption box inside a platform's safe zone,
|
|
@@ -95,8 +95,8 @@ export function getCaptionKeepsWithNext(film: CaptionWordsFilm): (word: TimedWor
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
/**
|
|
98
|
-
* A footage film's caption cards in film time: none without captions, `captionChunks` for `highlight
|
|
99
|
-
* otherwise; both keep the film's kept words with the next (`getCaptionKeepsWithNext`) and take the film's
|
|
98
|
+
* A footage film's caption cards in film time: none without captions, `captionChunks` for `highlight` and `ribbon`,
|
|
99
|
+
* `phraseChunks` otherwise; both keep the film's kept words with the next (`getCaptionKeepsWithNext`) and take the film's
|
|
100
100
|
* `captionMaxWords`, `captionMinWords` and `captionMaxCharacters` (absent: each style's defaults, no evening out). The
|
|
101
101
|
* render and the draft share it.
|
|
102
102
|
*/
|
|
@@ -108,7 +108,35 @@ export function getFootageCaptionChunks(film: CaptionWordsFilm & Pick<FootageFil
|
|
|
108
108
|
...(film.captionMinWords === undefined ? {} : { minWords: film.captionMinWords }),
|
|
109
109
|
...(film.captionMaxCharacters === undefined ? {} : { maxCharacters: film.captionMaxCharacters }),
|
|
110
110
|
};
|
|
111
|
-
return film.captionStyle === "highlight" ? captionChunks(words, options) : phraseChunks(words, options);
|
|
111
|
+
return film.captionStyle === "highlight" || film.captionStyle === "ribbon" ? captionChunks(words, options) : phraseChunks(words, options);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/** A caption's text as the film shows it: a `ribbon` caption in capitals of the film's locale, the others as said. */
|
|
115
|
+
export function toCaptionDisplayText(film: Pick<FootageFilm, "captionStyle">, text: string, locale: string): string {
|
|
116
|
+
return film.captionStyle === "ribbon" ? text.toLocaleUpperCase(locale) : text;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/** A `ribbon` caption's turn in degrees, counter-clockwise positive: the film's own, else `CAPTION_RIBBON_TILT`. */
|
|
120
|
+
export function getCaptionRibbonTilt(film: Pick<FootageFilm, "captionRibbonTilt">): number {
|
|
121
|
+
return film.captionRibbonTilt ?? CAPTION_RIBBON_TILT;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/** How far a turned `ribbon` block reaches above and below its foot, in px of the frame. */
|
|
125
|
+
export interface RibbonCaptionExtent {
|
|
126
|
+
above: number;
|
|
127
|
+
below: number;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* The vertical reach of a `ribbon` block of `lines` lines at `fontSize`, `width` px wide at most, turned `tilt` degrees
|
|
132
|
+
* about its middle while its foot stays where the caption box anchors it: a turned block dips below its foot by half
|
|
133
|
+
* its width's rise and rises as much above its top. An app placing captions off a face reads it.
|
|
134
|
+
*/
|
|
135
|
+
export function getRibbonCaptionExtent(input: { fontSize: number; tilt: number; width: number; lines: number }): RibbonCaptionExtent {
|
|
136
|
+
const height = input.lines * CAPTION_RIBBON.lineHeight * input.fontSize;
|
|
137
|
+
const radians = (Math.abs(input.tilt) * Math.PI) / 180;
|
|
138
|
+
const turned = (input.width / 2) * Math.sin(radians) + (height / 2) * (Math.cos(radians) - 1);
|
|
139
|
+
return { above: Math.ceil(height + turned), below: Math.ceil(Math.max(0, turned)) };
|
|
112
140
|
}
|
|
113
141
|
|
|
114
142
|
/** When a caption chunk is on screen, in film seconds. */
|