Commit Graph

13433 Commits

Author SHA1 Message Date
Moritz Bunkus
b651b77a29
mkvmerge & mkvpropedit man pages: document '--disable-language-ietf' 2020-09-02 18:48:18 +02:00
Moritz Bunkus
ba0f2cf3be
GUI: mux: add --disable-language-ietf to additional command-line options dialog
Part of the implementation of #2419.
2020-09-02 18:48:18 +02:00
Moritz Bunkus
21b37d6e74
mkvpropedit: add option --disable-language-ietf
This prevents mkvpropedit from also applying changes to the
LanguageIETF track header element when the user requests changes to
the 'language' property.

Part of the implementation of #2419.
2020-09-02 18:48:17 +02:00
Moritz Bunkus
3b1d59c33d
mkvmerge: add option --disable-language-ietf
This prevents mkvmerge from writing the LanguageIETF track header
element and the ChapLanguageIETF chapter element.

Part of the implementation of #2419.
2020-09-02 18:48:17 +02:00
Moritz Bunkus
e397a83277
GUI: implement widget & dialog for editing BCP-47 language tags
Part of the implementation of #2419.
2020-09-02 18:48:17 +02:00
Moritz Bunkus
1ac16cf62f
update Qt project file
Part of the implementation of #2419.
2020-09-02 16:46:06 +02:00
Moritz Bunkus
6d3db53abb
cosmetics: alignment 2020-09-02 16:46:06 +02:00
Moritz Bunkus
493e27039b
mkvpropedit: add support for the "LanguageIETF" track header element
Using the `language` property will act on both the old language and
the new "LanguageIETF" element while using the `language-ietf`
property will only work on the new "LanguageIETF" element.

Part of the implementation of #2419.
2020-09-02 16:46:06 +02:00
Moritz Bunkus
4a1af79ab3
mkvmerge: support for ChapLanguageIETF chapter atom elements
1. mkvmerge accepts BCP 47/RFC 5646 language tags in chapter-related
   command line arguments that accept languages (which had only
   accepted ISO 639-2 language codes before).

2. When creating chapter atoms (e.g. when reading the simple chapter
   format or when the user requests it via the `--generate-chapters`
   command line option) mkvmerge will always write "ChapLanguageIETF"
   elements. If the given language tag contains a valid ISO 639-2
   language code, it will be written as the legacy "ChapLanguage"
   element; otherwise "und" (for "undetermined") is written.

Part of the implementation of #2419.
2020-09-02 16:46:06 +02:00
Moritz Bunkus
2d8fa5c4ae
mkvmerge: support for LanguageIETF track header elements
1. mkvmerge accepts BCP 47/RFC 5646 language tags in command line
   arguments that accept languages (which had only accepted ISO 639-2
   language codes before).

2. mkvmerge always writes "LanguageIETF" track header elements. If the
   given language tag contains a valid ISO 639-2 language code, it
   will be written as the legacy "Language" header element; otherwise
   "und" (for "undetermined") is written.

Part of the implementation of #2419.
2020-09-02 16:46:06 +02:00
Moritz Bunkus
23307e8e18
mkvmerge: refactor parsing of command line arguments that take a language 2020-09-02 16:46:06 +02:00
Moritz Bunkus
bf73888713
mkvinfo: add support for the "LanguageIETF" track header element
Part of the implementation of #2419.
2020-09-02 16:46:06 +02:00
Moritz Bunkus
402da336d2
mkvmerge: identification: report "LanguageIETF" element as language_ietf property
Part of the implementation of #2419.
2020-09-02 16:46:06 +02:00
Moritz Bunkus
420bc981af
chapters: add function for getting/setting ChapterLanguage/ChapLanguageIETF
Part of the implementation of #2419.
2020-09-02 16:46:06 +02:00
Moritz Bunkus
4ddfacde20
store languages in mtx::bcp47::language_c instead of std::string everywhere
Part of the implementation of #2419.
2020-09-02 16:46:05 +02:00
Moritz Bunkus
0f469d2eed
add class for handling BCP47 language tags
Part of the implementation of #2419.
2020-09-02 16:46:05 +02:00
Ioma Taani
400363a480
man page translations: update Italian 2020-09-02 16:45:56 +02:00
TMTisFree
d1c63333c0
man page translations: update French 2020-09-02 16:45:47 +02:00
Moritz Bunkus
a0c0cf738a
cosmetics: indentation & sorting lines 2020-09-01 15:19:05 +02:00
Moritz Bunkus
d342c8fa46
mkvmerge man page: reorder entries to match help output 2020-08-29 12:40:48 +02:00
Antoni Bella Pérez
e96d09a130
translations: update Catalan 2020-08-29 12:19:20 +02:00
Antoni Bella Pérez
e810707d6c
man page translations: update Catalan 2020-08-29 12:19:18 +02:00
Moritz Bunkus
cae6244831
man page translations: convert HTTP URLs to HTTPS 2020-08-29 12:19:17 +02:00
Moritz Bunkus
71b355ea9d
man pages: convert HTTP URLs to HTTPS 2020-08-29 12:19:16 +02:00
Moritz Bunkus
c1b99aedb6
man pages: add IDs to almost all <varlistentry> nodes 2020-08-29 12:19:14 +02:00
Moritz Bunkus
d1baafb62e
doc type version handler: remove duplicate entries 2020-08-29 12:19:12 +02:00
Moritz Bunkus
760040e1f2
cosmetics: reorder options in mkvmerge help output 2020-08-29 12:19:08 +02:00
Moritz Bunkus
0864f97b85
Merge remote-tracking branch 'moni33/patch-3' into main 2020-08-23 17:34:16 +02:00
Симеон Цветков
1e46f5004f
translations: update Bulgarian 2020-08-23 17:31:57 +02:00
Dian Li
1e7ec21712
translations: update Chinese Simplified 2020-08-23 17:31:29 +02:00
Dian Li
d6a145f421
man page translations: update Chinese Simplified 2020-08-23 17:31:16 +02:00
Israel Lucas Torrijos
8777cca91c
translations: update Spanish 2020-08-23 17:31:02 +02:00
Israel Lucas Torrijos
927c48f8b5
man page translations: update Spanish 2020-08-23 17:29:20 +02:00
Moritz Bunkus
5ff0750103
rename extern_data.{h,cpp} to character_sets.{h,cpp} & remove unused includes 2020-08-23 16:05:28 +02:00
Moritz Bunkus
e5c7724d7c
remove list of ccTLDs in favor of the ISO3166 list with additions
Part of the implementation of #2419.
2020-08-23 16:05:28 +02:00
Moritz Bunkus
9e2836e0f2
ISO639: look_up returns optional language_t instead of index
Part of the implementation of #2419.
2020-08-23 16:05:28 +02:00
Moritz Bunkus
61d12b2bb1
IANA language subtag registry: look_up returns optional entry_t instead of index
Part of the implementation of #2419.
2020-08-23 15:38:34 +02:00
Moritz Bunkus
9d18e2de4a
ISO15924: look_up returns optional script_t instead of index
Part of the implementation of #2419.
2020-08-23 15:38:23 +02:00
Moritz Bunkus
1aa091d8b3
ISO3166: look_up returns optional country_t instead of index
Part of the implementation of #2419.
2020-08-23 15:38:11 +02:00
Симеон Цветков
d81d750be8 Update mkvtoolnix-doc.css (optimizations) 2020-08-22 13:10:01 +00:00
Moritz Bunkus
72b060b1c9
to_lower/upper_ascii for std::vector<std::string> 2020-08-21 20:13:09 +02:00
Moritz Bunkus
2a7e8784af
codec.h: avoid compiler warning about superfluous ; 2020-08-21 16:45:30 +02:00
Moritz Bunkus
bf4b0785f9
common.h: undefine more stupid preprocessor defines from libintl.h
libintl defines symbols such as 'fprintf', 'snprintf' or 'sprintf' to
'libintl_<original_name>' on certain platforms such as mingw or macOS.
'std::snprintf' becomes 'std::libiuntl_snprintf', which doesn't exist.

This conflicts with jpcre2.hpp which uses 'std::fprintf' and
'std::sprintf'.
2020-08-21 16:43:56 +02:00
Moritz Bunkus
860a77f33c
propedit: fix wrong regex from switch to PCRE2 2020-08-21 16:19:08 +02:00
Moritz Bunkus
889f327a63
cosmetic: fix comment alignment 2020-08-21 16:11:02 +02:00
Moritz Bunkus
b2a8630bfc
packaging: add build-requirement PCRE2 2020-08-21 15:15:23 +02:00
Moritz Bunkus
fa42d1367a
Merge branch 'f-jpcre2' into main 2020-08-21 13:26:49 +02:00
Moritz Bunkus
9355442d7b
NEWS: include note about switch from std::regex to PCRE2 2020-08-21 13:26:28 +02:00
Moritz Bunkus
d18b3eb075
regexes: conversion from std::regex to jpcre2: remove std::regex include 2020-08-21 13:23:28 +02:00
Moritz Bunkus
1db2e8c52a
regexes: conversion from std::regex to jpcre2: mkvtoolnix-gui/**/* 2020-08-21 10:19:15 +02:00