Skip to content

Render the word tier above the phone tier in TextGrid timelines - #168

Merged
BeckettFrey merged 1 commit into
mainfrom
feature/textgrid-tier-order
Aug 19, 2026
Merged

Render the word tier above the phone tier in TextGrid timelines#168
BeckettFrey merged 1 commit into
mainfrom
feature/textgrid-tier-order

Conversation

@BeckettFrey

Copy link
Copy Markdown
Member

Split out of #163 so each change can be reviewed on its own.

What

Flips TextGridTimeline._TIER_ORDER so words sorts before phones. Every place a TextGrid timeline is drawn shares this widget — the Viewer, Compare Alignments, and Correct Alignments — so all three pick up the new order.

Words-over-phones reads top-down from coarse to fine, which is the order these tiers are conventionally displayed in and the order reviewers expect when scanning an alignment.

Second hunk

The Viewer's inline active-segment label (_update_active_segment_label) was assembling its parts straight from self._loaded_tiers in raw file order, so the label could list phones before words while the timeline directly above it showed the opposite. It now sorts through the same _TIER_ORDER map, so label and timeline always agree.

Related

Flips _TIER_ORDER so "words" sorts before "phones" wherever a TextGrid
timeline is drawn — the Viewer, Compare Alignments, and Correct
Alignments all share this widget. Words-over-phones reads top-down from
coarse to fine, which is the order these tiers are conventionally shown
in and the order reviewers expect when scanning an alignment.

The Viewer's inline active-segment label was building its parts straight
from _loaded_tiers in raw file order, so it could disagree with the
timeline right above it. It now sorts through the same _TIER_ORDER.
@BeckettFrey
BeckettFrey merged commit d6032e0 into main Aug 19, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant