Skip to content

v0.5.0 — Styled ASS/SSA + time utilities

Choose a tag to compare

@SteliyanH SteliyanH released this 03 May 15:19
· 16 commits to main since this release

KadrCaptions v0.5.0. Pure additive — Kadr floor stays at 0.9.2.

Highlights

  • Caption.shifted(by:) / Caption.scaled(by:) — pure value-type transforms for syncing cues to a re-encoded / sped-up video. [Caption] array sugar mirrors both.
  • CaptionParser.parseStyledASS(_:) / parseStyledSSA(_:) + Caption.loadStyled(ass:) / loadStyled(ssa:) — round-trip the most-load-bearing ASS / SSA styling: foreground color (\1c&HBBGGRR& / \c&HBBGGRR&), bold / italic / underline flags, and alignment (\an<N> numpad + legacy \a<N> SSA bitmask) into [StyledCaption]. ASS alpha flipped on import.
  • StyledCaption.color: String? — new optional #RRGGBB / #RRGGBBAA hex field (default nil); the toTextOverlay(...) bridge applies it to Kadr.TextStyle.color via the new StyledCaption.platformColor(forHex:) helper.

Compatibility

KadrCaptions 0.5.0 requires Kadr ≥ 0.9.2 (unchanged from v0.1).

41 new tests across the cycle. Cycle considered feature-complete pending kadr v1.0.

See CHANGELOG for the full entry.