Repository navigation
docs(languages): tag identity, shared cue defaults, alias map - #17
Merged
Merged
Conversation
Adds lane 11 and the edits it forces. The profile file name is the canonical lowercase BCP 47 tag; no ISO code is stored, the language subtag is the ISO code; whisper tokens and container spellings live in [codes]. Cue numbers move to _defaults.toml with the line counts staying a screen rule, FT5.2 names two dialogue lines, OUTPUT keeps the tag suffix, and the settings screen documents tag-keyed prompt overrides.
This was referenced Dec 4, 2026
The tag is the identity and the only stored codes are the ones that differ from it. The languages lane now covers the loader and registry, not just the TOML files.
Cue numbers are settings seeded by the target profile, not a fixed policy: the fit stage reads them from the in-memory settings object, and v1's only limitation is that no screen renders them. The same goes for output format, which defaults to both. Raw working files stay job state for resume and the cue table. The deliverables are the SRT and the ASS, plus the QA report the UI reads.
# Conflicts: # AGENTS.md # docs/spec/08-ui.md
Contributor
Author
|
Both points from the thread are in d0dbe74, merged with master's #12 and #15, no second PR.
|
anthonyma94
approved these changes
Dec 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The contract for the language naming work, so #8's code has a lane to point at.
New lane 11 (
docs/spec/11-languages.md). The profile filename is the identity: a canonical lowercase BCP 47 tag, case-folded on load, with a deprecated tag refused and its replacement named (jwtojv,zh-yuetoyue). No ISO code is stored; it is the tag's language subtag. Three vocabularies are named and separated: the tag, the derived ISO code, and the Whisper token, which is the only code a profile may carry because faster-whisper accepts a fixed 100 and rejects tags. Container strings (kor,chi,zho) are[codes] aliases, inbound only, resolved through a registry built once at startup; a string claimed twice is ambiguous on purpose and pinned by a test. Eleven assertions, LG11.1 to LG11.11.Cue numbers are settings, not a fixed policy.
_defaults.tomland the target profile seed the four numbers. They enter the in-memory settings object at load, and the fit stage reads them there rather than from a module constant or directly from the profile. v1 has no screen for them, which is the only limitation: the value already lives where a screen would write it.max_linesstays refused because line count is a screen rule.Lane 05: the cue policy is four numbers, not five, supplied by
_defaults.tomland overridable per profile; the effective numbers enter the settings object and FT5.12 pins that source. Line counts are a screen rule andmax_linesin a cue table is refused. FT5.2 now says "at most two dialogue lines and the target's characters per line".Lane 06: the deliverables are
<stem>.<tag>.srtand<stem>.<tag>.ass, lowercase, with the player-selection cost stated rather than implied.qa.jsonis the QA report the UI reads;segments.json,onscreen.json,glossary.tsv,translated.jsonandcues.jsonstay job state for resume and the cue table, never outputs. Output format is a settings value (bothby default,srt,ass) with no v1 screen, on the same rule as cue numbers. OUT6.5 and OUT6.12 pin both.Lane 01: the embedded-track match runs through the registry's alias map, never string equality, because containers write ISO 639-2.
Lane 08: language prompt overrides in settings, keyed by tag; prompt fragments are the only language setting a person edits by hand, since the screen renders none of them. Cue numbers and output format load from the same settings object without a control, and a
cuekey under[prompt]is refused because that table holds prompt fragments. UI8.18 and UI8.19.AGENTS.mdnow carries the rule as well: a profile is named by its canonical lowercase tag, the tag is its identity, and the only stored codes are the ones that differ from it. The ownership table's languages row now covers the loader and registry, not just the TOML files.Master's #12 and #15 are merged into the branch, so the pull request diff is docs only.
make checkon forge at d0dbe74: ruff clean, mypy on 35 files clean, pytest 291 passed and 6 slow deselected, exit 0. CI is green on the same sha.