3 Commits

Author SHA1 Message Date
HEOJUNFO
d12693c8b3 fix(transcript): drop WebVTT cue tags when importing subtitles (#692)
* fix(transcript): drop WebVTT cue tags when importing subtitles

Importing a WebVTT file with voice, style or karaoke tags printed the tags
as caption text, e.g. "<v Alice>Hello <i>there</i></v>". Cue span tags are
markup in WebVTT, so they are removed before the character references are
read. SRT stays plain text.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(transcript): strip only WebVTT's own cue tags and skip tag-only cues

Review follow-up: a cue that held nothing but tags made the whole import
fail, and any "<...>" span was removed, including literal text such as
"price < 10 and size > 5".

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(transcript): stop a WebVTT cue tag's annotation at the next "<"

Review follow-up: the annotation part of the cue-tag pattern ran to the
end of the cue from every unclosed "<b ", "<c." or "<v ", so a cue made
of them took quadratic time before the length check rejected it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 11:20:33 +08:00
HEOJUNFO
51574b4a19 fix(captions): escape WebVTT cue text on export and read it back on import (#598)
SRT and VTT exports wrote the same raw cue text. In WebVTT that text is
markup, so a caption such as "Tom & Jerry <3" lost everything after the
"<" in a player. Escape &, < and > for VTT only, and decode the same
references when a WebVTT file is imported so an export still round-trips.

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 16:27:07 +08:00
Tom Huang
fcbaa2b029 feat: unify captions, editing and platform exports (#547)
* feat: add transcription and unified caption editing workflows

* Fix caption integration regressions and align explicit timeline modes

* Update bundled adapter and render fixtures for caption preview integration

* Resolve caption parsing from the isolated native runtime

Avoid importing native dependencies from the dependency-free ZIP at server startup. Load the HTML parser from the installed runtime for caption operations and cover isolated server import plus caption authoring.

* fix: preserve caption panel widths and manual editing intent

* fix: retain new caption selection during preview refresh

Keep newly created captions selected while the preview replaces its old clip list. Cover the stale-preview ordering with a failing-before/passing-after regression and verify pacing draft cancellation and recreation in Chromium.
2026-11-17 22:39:51 +08:00