ass_export_text
Export selected Aegisub/ASS subtitle lines as plain text, TSV, SRT, or raw Dialogue/Comment fragments to a file or workspace output path.
Instructions
Export selected lines as plain text, TSV, SRT or an ASS fragment.
Args:
selection: selection spelling; None = every line.
doc_id: document to export; the current one when omitted.
format: "txt" (one line of plain text each), "tsv" (start, end,
style, actor, effect, kind, plain text), "srt" (SubRip) or
"ass-fragment" (the raw Dialogue:/Comment: lines).
line_separator: replacement for the ASS in-line hard break \N (and
\n) in txt/tsv output. The default keeps the ASS escape
for lossless re-import; pass "\n" for one output line per
visual line, or any other string ("|") to flatten explicitly.
srt always uses real newlines (required by the format) and
ass-fragment keeps the original text untouched.
output_path: file to write; when omitted the file is written into
workspace.output_dir (created if needed).
txt and srt skip comment lines; tsv and ass-fragment keep
them. Returns {"doc_id", "path", "format", "media_type", "text", "bytes", "line_count", "selection": [<0-based indices>]} where line_count is the
number of exported records (SRT blocks, TSV rows, text lines, events).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | No | ||
| format | No | txt | |
| selection | No | ||
| output_path | No | ||
| line_separator | No | \N |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||