ass_tag_summary
Inspect per-line ASS override tags with histograms and tag families, and flag lines missing \pos or \move to catch typesetting placement issues.
Instructions
Per-line tag histogram and typesetting sanity check.
Args:
index / text / doc_id: inspect a single line (0-based index of doc_id
or a raw string).
selection: inspect a set of lines (None means every line when no
index/text is given). doc_id says which document.
Returns {"source", "doc_id", "index", "count", "missing_position", "lines": [...], "totals": {...}}. Every line entry carries index,
raw, plain_text, visible_chars, blocks (number of override
blocks), tags (total), tag_names (per-name histogram), tag_groups
(the same count folded into tag families such as layout, color, karaoke,
clip, transform), has_drawing (drawing mode still active at the end of
the line) / drawing_state,
has_karaoke/has_transform/has_clip,
first_block_has_pos/first_block_has_move and missing_position
(True when the line's first override block has neither \pos nor
\move — the line is then placed by styles and margins only, which is the
usual typesetting smell). missing_position at the top level lists the
indices of those lines; totals sums tags, blocks and flags over the
selection. Read-only; no snapshot. All indices are 0-based line indices,
while visible_chars counts plain (visible) characters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| index | No | ||
| doc_id | No | ||
| selection | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||