ass_open
Open an ASS/SSA subtitle file and set it as the current document, returning a summary with document ID, path, script type, resolution, FPS, line counts, styles, and encoding.
Instructions
Open an ASS/SSA file and make it the current document.
Args:
path: file to open. A missing file raises ToolError.
doc_id: optional registry id for the opened document.
encoding: force this encoding instead of the automatic sniff; the file
must decode with it or ToolError is raised.
Returns the document summary (doc_id, path, dirty,
script_type, play_res_x, play_res_y, fps, lines,
dialogue, comments, styles, sections, encoding,
has_bom, newline). Line indices are 0-based.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| doc_id | No | ||
| encoding | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||