ass_style_for_line
Resolve the effective style for an ASS subtitle line by applying inline override tags, revealing the font, size, color, and alignment libass actually uses.
Instructions
Effective style values for one line, inline override tags included.
The line's Style field is resolved to a style; on top of it the inline
override tags that change font, size, colour, weight, scale, spacing,
border, shadow or alignment are applied, so the caller sees what libass
would actually use. \r/\rStyle restarts from a (possibly other)
style, exactly as the renderer does.
Args:
index: 0-based line index in doc.events() order (comments included).
None uses the session selection (ass_select), falling back to
its first index.
doc_id: document id or None for the current document.
Returns:
{"doc_id", "index", "style", "style_found", "style_definition", "resolved", "runs", "overrides", "transforms", "warnings", "text", "plain_text"}.
resolved is the typed effective state at the first visible
character; runs splits the visible text into
{start, end, values, sources, style} spans with identical values;
overrides lists the field names that inline tags modified;
transforms lists the \t(...) tags (animation is reported, not
folded into the numbers); colours stay in the spelling the tag/style
used.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | ||
| doc_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||