ass_update_style
Update only specified fields of an existing ASS subtitle style, accepting various field name spellings, and optionally rename the style while repointing lines that use it.
Instructions
Change only the fields that are given, on an existing style.
Field names may be written in any spelling: the snake_case parameters above,
the ASS column names (Fontname=, Fontsize=, PrimaryColour=,
MarginV= ...) or any case/space variant — all of them resolve to the
same canonical field. Passing new_name (or Name=) renames the
style and, when update_lines semantics apply, repoints the lines that
used it (this always happens, exactly like ass_rename_style).
Args:
name: the style to update (case-insensitive).
doc_id: document id or None for the current document.
aliases: any further field=value pairs, e.g. Fontsize=60.
Returns:
{"doc_id", "name", "previous_name", "changed", "style", "lines_updated", "ignored_fields"}. changed maps each field to
{"from", "to"} in stored form; ignored_fields lists values the
document's Format line cannot hold (for example ScaleX in a
[V4 Styles] file).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bold | No | ||
| font | No | ||
| name | Yes | ||
| angle | No | ||
| doc_id | No | ||
| italic | No | ||
| shadow | No | ||
| aliases | Yes | ||
| outline | No | ||
| scale_x | No | ||
| scale_y | No | ||
| spacing | No | ||
| encoding | No | ||
| margin_l | No | ||
| margin_r | No | ||
| margin_v | No | ||
| new_name | No | ||
| alignment | No | ||
| font_size | No | ||
| underline | No | ||
| strike_out | No | ||
| alpha_level | No | ||
| back_colour | No | ||
| relative_to | No | ||
| border_style | No | ||
| outline_colour | No | ||
| primary_colour | No | ||
| tertiary_colour | No | ||
| secondary_colour | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||