2022-03-27 08:39:47 +00:00
|
|
|
#!/usr/bin/ruby -w
|
|
|
|
|
|
|
|
# T_735normalize_language_ietf_chapters
|
|
|
|
describe "mkvmerge / normalize language IETF in chapters"
|
|
|
|
|
|
|
|
src = "--chapters data/chapters/ietf-normalization-test.xml"
|
|
|
|
|
2022-03-28 15:23:39 +00:00
|
|
|
test_merge src, :args => "--normalize-language-ietf off", :keep_tmp => true
|
2022-03-27 08:39:47 +00:00
|
|
|
compare_languages_chapters [ "fre", "fr-FX" ], [ "chi", "zh-yue" ], [ "chi", "yue" ]
|
|
|
|
|
2022-03-28 15:23:39 +00:00
|
|
|
test_merge src, :keep_tmp => true
|
2022-03-27 08:39:47 +00:00
|
|
|
compare_languages_chapters [ "fre", "fr-FR" ], [ "chi", "yue" ], [ "chi", "yue" ]
|
|
|
|
|
|
|
|
test_merge src, :args => "--normalize-language-ietf extlang", :keep_tmp => true
|
|
|
|
compare_languages_chapters [ "fre", "fr-FR" ], [ "chi", "zh-yue" ], [ "chi", "zh-yue" ]
|