Martchus / tagparser

C++ library for reading and writing MP4/M4A/AAC (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
GNU General Public License v2.0
124 stars 17 forks source link

Improve support for handling locale information #16

Open Martchus opened 3 years ago

Martchus commented 3 years ago

So far language/locale specifications are extracted from various formats/places as-is. That means with this information can not be dealt with in a format-independent manner. It would make sense to at least track the format being used. It would also be nice to add functions to convert between the formats like the library currently deals with the different character sets.

Annoyingly Matroska files have 2 ways to specify the language so having multiple native formats needs to be taken into account as well.

Martchus commented 3 years ago

The locale format is now tracked and it is possible to have multiple locales (with different formats) at the same time. The library does not allow to convert between formats so one still needs to take care to pass a locale in a format suitable for the current format.

Martchus commented 3 years ago

Further info about languages in Matroska: https://gitlab.com/mbunkus/mkvtoolnix/-/wikis/Languages-in-Matroska-and-MKVToolNix