mkvtoolnix/tests/test-0735normalize_language_ietf_tracks.rb
2022-03-28 18:46:09 +02:00

16 lines
682 B
Ruby
Executable File

#!/usr/bin/ruby -w
# T_735normalize_language_ietf_tracks
describe "mkvmerge / normalize language IETF in tracks"
src = "data/subtitles/srt/ven.srt"
test_merge src, :args => "--language 0:fr-fx #{src} --language 0:zh-yue --normalize-language-ietf off", :keep_tmp => true
compare_languages_tracks [ "fre", "fr-FX" ], [ "chi", "zh-yue" ]
test_merge src, :args => "--language 0:fr-fx #{src} --language 0:zh-yue", :keep_tmp => true
compare_languages_tracks [ "fre", "fr-FR" ], [ "chi", "yue" ]
test_merge src, :args => "--language 0:fr-fx #{src} --language 0:yue --normalize-language-ietf extlang", :keep_tmp => true
compare_languages_tracks [ "fre", "fr-FR" ], [ "chi", "zh-yue" ]