mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-14 21:15:06 +00:00
fix(titles): compare dub languages under their macrolanguage
A cmn track on a zh title no longer gets DUBBED, and nb and nn count as no; yue stays separate.
This commit is contained in:
@@ -306,6 +306,23 @@ A tag without a region, such as `zh`, gets no script because the region is what
|
||||
unshackle writes audio tags as the service gives them, because a script applies only to written text.
|
||||
Track selection, `--list` tags and file names use the service tag.
|
||||
|
||||
A service that knows the spoken language, such as Mandarin or Cantonese, gives the title language and
|
||||
the audio a region and no script, and gives the subtitles a script:
|
||||
|
||||
| Tracks | Mandarin, Taiwan | Cantonese, Hong Kong |
|
||||
|--------|------------------|----------------------|
|
||||
| Title language and audio | `cmn-TW` | `yue-HK` |
|
||||
| Subtitles | `zh-Hant` or `cmn-Hant` | `yue-Hant` |
|
||||
|
||||
With these tags, `-l orig` selects the audio and `-sl orig` selects the Traditional subtitles. Do not
|
||||
mix the forms. A bare `cmn` implies Simplified Chinese, so a `cmn` title language makes `-sl orig`
|
||||
select Simplified subtitles. A `zh-TW` title language with `cmn` audio selects no audio, because
|
||||
`zh-TW` implies Traditional Chinese. Cantonese and Chinese never match, so `-sl orig` on a `yue-HK`
|
||||
title does not select `zh-Hant` subtitles; select them with `-sl zh-Hant`.
|
||||
|
||||
The `{dual}`, `{multi}` and `{dubbed}` file name tags count `cmn` as `zh` and keep `yue` separate
|
||||
(see [`dual_multi_mode`](../reference/configuration/download.md#dual_multi_mode)).
|
||||
|
||||
Set `muxing.track_names` to `native` to name each track in its own language. The same rules apply
|
||||
to the script and the region:
|
||||
|
||||
|
||||
@@ -394,7 +394,10 @@ dual_multi_mode: strict
|
||||
|
||||
!!! note "Dialects count as one language"
|
||||
Regional variants of the same base language (e.g. `en-US` and `en-GB`) collapse to a single
|
||||
language in both modes, so they never trigger `{dual}` on their own.
|
||||
language in both modes, so they never trigger `{dual}` on their own. An individual language
|
||||
counts as its macrolanguage: `cmn` and `zh` are one language, and so are `arb` and `ar`.
|
||||
Norwegian `nb` (Bokmål) and `nn` (Nynorsk) count as `no`.
|
||||
Cantonese (`yue`) stays separate, so `cmn` and `yue` audio give `{dual}`.
|
||||
|
||||
## `hdr10plus_probe`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user