ass_split_line
Split an ASS subtitle line into two at a specified millisecond inside its span, preserving styles, actor, layer, and override tags.
Instructions
Split one line in two at a time strictly inside its span.
index is 0-based. at_ms accepts milliseconds or a time string
and must satisfy start < at_ms < end, otherwise ToolError. The cut
sits at the visible character whose position matches the time fraction (each
half keeps at least one visible character). The first half keeps the
original line's text up to the cut; the second half is a new line right
after it that repeats every override block preceding the cut (so {\i1}
prefixes survive) and keeps style, actor, effect, layer and margins.
Returns {"doc_id", "index", "second_index", "at_ms", "first": <dict>, "second": <dict>}. Snapshot-backed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at_ms | Yes | ||
| index | Yes | ||
| doc_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||