ass_remove_tag
Delete named override tags (e.g., pos, move) from ASS subtitle lines, preserving visible text and preventing unclosed blocks. Works on selections, indices, raw text, or documents.
Instructions
Delete every occurrence of the named override tags.
Args:
selection / index / text / doc_id: the usual three input modes.
names: a single tag name ("pos") or a list (["pos", "move"]);
a comma separated string works too. Group names are accepted and
expand to the whole family ("clip" removes \clip and
\iclip).
in_place: write back to the document (snapshot-backed). The raw-string
mode never writes.
Returns, single-line: {"source", "index", "doc_id", "names", "removed", "removed_count", "text", "plain_text", "changed", "written"} where
removed lists every deleted occurrence as {"name", "argument", "raw", "block"}; selection mode returns
{"source": "selection", "doc_id", "names", "count", "changed", "written", "in_place", "removed_count", "lines": [{"index", "before", "after", "removed", "changed"}]}. Removing a tag never touches the visible text
and never leaves an unclosed block: emptied blocks are dropped entirely.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| index | No | ||
| names | No | ||
| doc_id | No | ||
| in_place | No | ||
| selection | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||