Repository navigation
fix(names): transliterate kana speaker labels in captions - #807
Merged
Merged
Conversation
A hiragana run of two to six kana in a speaker label at the line start, in round or square brackets, before a colon or before a closing quote, is read as a name by its sound instead of as the word it spells; stage directions, roles, whole common words and verb continuatives keep their reading (spec LEX-5800). An artist's kana name before feat. or joined by / to a Latin name in a credit reads as a name too.
…r labels A label run is a word, not a name, when the dictionaries have it whole: a kana spelling of a kanji word, a common noun, a sound or interjection, a する stem, a verb form other than the dictionary form, an adjective, or a word with a sentence-final particle; two kana need a person row or no row at all. Before 「, a colon or ≫ a name-layer person still wins; in brackets the word does. A copula after the brackets keeps them a word of the sentence.
sokcuri
force-pushed
the
fix/kana-speaker-labels
branch
from
November 8, 2026 23:21
54c9c3b to
209ad4f
Compare
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.
Hiragana speaker labels at the start of a caption or script line were translated as the word they spell: a given name that is also a verb form became a verb (ひかる → 빛난다), and a run no dictionary has became fragments. A hiragana run of two to six kana in a speaker label is now read as a name by its sound, the way katakana names already are (spec LEX-5800).
(…),(…),[…],[…]), after caption marks and asides (⚟(…),(会場 笑い)(…)), a label before:, and a label before a「that closes the line. An honorific after the name stays (かけるくん → 카케루 군). Document and--eachmode behave the same; the check runs per line inReadLine, afterDropReadings.:followed by another field or a kana-less value (けもみみ:兎), a square group after another group, brackets with nothing after them ((笑い)), brackets a particle or a copula takes ((ないしょ)だよ), and brackets in mid-line.「,:or≫, where only a speaker stands (さくら「…」 → 사쿠라). Inside brackets the common word wins, because brackets also tag sounds and voices ((うた) → 노래).feat./ft.at the line start, or the first name in a bracket group after a line-opening name that is joined by/to a Latin name.Variants checked: each bracket shape in full and half width, colon, quote, honorific suffix, two-part labels (
・), asides before the label, document and--eachmode. Contexts checked: stage directions in kanji and in kana, sound words, interjections in brackets, roles in kana, mid-line glosses, field lists.Gate (head 209ad4f, rebased on develop):
--verify-dictspass. One wrapped case pinned a broken name (るな → 루인); it now reads 루나 and is marked fix.