ass_plain_text
Strip all override tags from an ASS subtitle line to get plain visible text. Optionally keep specific tags or groups like clip, fade, or karaoke.
Instructions
Strip every override tag, optionally keeping some tags or tag groups.
Args:
text / index / doc_id: the line to inspect (raw string or a 0-based line
index of doc_id); exactly one source must be given.
keep: "" (or None) removes everything. Otherwise a comma/space
separated string or a list whose items are either a tag name
("pos", "\an", "1c") or a tag group name. Group names
win over tag names and expand to the whole family, e.g. "clip"
keeps \clip and \iclip, "fade" keeps \fad and
\fade. Known groups: transform, fade, clip, drawing, karaoke,
layout, color, style, reset, animation.
Returns {"source", "index", "doc_id", "text", "plain_text", "keep_names", "keep_groups", "kept", "changed"} where text is the stripped line (it
still contains the kept override blocks), plain_text is the fully
tag-free visible text and kept lists the kept tags that were actually
present. Read-only; no snapshot, no indices.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keep | No | ||
| text | No | ||
| index | No | ||
| doc_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||