16 Commits
Author SHA1 Message Date
Scott GarrettandClaude Code 30dd96ff79 Recognize subtitle language and type tokens in filenames
getFilenameLanguage now tokenizes the name and scans right-to-left the way mkvmerge's own heuristics do, so a language code survives behind a trailing flag token ("...eng.hearing_impaired.srt" was read as "und"). Three-char tokens try ISO 639-2/T and the library's B codes; the dash stays out of the separator set so region subtags ("pt-BR") are not split into a bogus ISO 639-1 hit.

getFilenameSubtitlesTrackName maps community type tokens (sdh / hearing_impaired / deaf, cc / closed caption, forced, commentary, lyrics) to a bare conventional track name ("SDH"); the language rides its own element. MP4 has no SDH flag and the name-keyword pass in MP42File organizeMediaCharacteristicsForMediaType: turns these names into the real QuickTime tags (public.subtitles.forced-only, public.accessibility.*).

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-28 18:17:53 -05:00
Damiano Galassi 57236970a3 Add two methods two return the supported UTIs 2026-09-22 18:50:05 +02:00
Damiano Galassi 027cb1f6ae Update copyright year. 2022-01-02 09:31:49 +01:00
Damiano Galassi 799fdcc642 Update copyright year. 2021-02-02 10:55:04 +01:00
Damiano Galassi b2394c7c3e Update copyright. 2020-09-22 11:38:15 +02:00
Damiano Galassi 86de20e308 Remove some superfluos MP42FileImporter methods. 2020-09-21 19:27:11 +02:00
Damiano Galassi 0e421a6eef Enable and fixes more warnings. 2020-09-19 14:39:02 +02:00
Damiano Galassi f63e23f878 Adopt objc direct attributes where possible. 2020-07-01 19:48:11 +02:00
Damiano Galassi 5c41001d35 Use [NSString stringEncodingForData:encodingOptions:convertedString:usedLossyConversion:] to try to load text files with unknown encoding. 2018-03-24 11:22:42 +01:00
Damiano Galassi 2a3772f618 Set the fontSize in the tx3g styles. 2018-01-03 10:47:44 +01:00
Damiano Galassi f0f7a0704b Add __autoreleasing to NSError 2017-10-09 12:34:55 +02:00
Damiano Galassi 8d8aaa0be6 Rename SBSubSerializer to MP42SubSerializer, remove some casts, fix SSA timestamp parsing. 2017-10-03 08:52:48 +02:00
Damiano Galassi 1c8662d291 Remove dead code. 2017-10-02 19:22:36 +02:00
Damiano Galassi cfbf9bbf91 Refactor NSLinguisticTagger code. 2017-10-02 19:20:17 +02:00
Damiano Galassi 0908670715 Add a new SSA -> Text converter. 2017-10-02 19:10:14 +02:00
Damiano Galassi 826704ac9c Quite incomplete and untested ssa parser. 2017-10-02 12:45:35 +02:00