From 49dc251f823e56ab00cebb77b50c9351aa32c6dd Mon Sep 17 00:00:00 2001 From: Konrad Marciniak <97458090+finem4n@users.noreply.github.com> Date: Thu, 31 Oct 2024 19:10:01 +0000 Subject: [PATCH] Added polish diacritics in non_ascii_equivalents.py --- .../non_ascii_equivalents.py | 28 +++++++++++++++---- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/plugins/non_ascii_equivalents/non_ascii_equivalents.py b/plugins/non_ascii_equivalents/non_ascii_equivalents.py index 9a6b4cc1..bbabc2aa 100644 --- a/plugins/non_ascii_equivalents/non_ascii_equivalents.py +++ b/plugins/non_ascii_equivalents/non_ascii_equivalents.py @@ -29,22 +29,32 @@ instead of displaying weird or blank symbols. It's an attempt to do a little better than Musicbrainz's native "Replace non-ASCII characters" option. -Currently replaces characters on "album", "artist", and "title" tags.''' +Currently replaces characters on "album", "albumartist", "albumartists", "albumartistsort", "albumsort", "artist", "artists", "artistsort" and "title" tags.''' CHAR_TABLE = { - # Acute # Grave # Umlaut # Circumflex - "Á": "A", "À": "A", "Ä": "A", "Â": "A", - "É": "E", "È": "E", "Ë": "E", "Ê": "E", + # Acute # Grave # Umlaut # Circumflex # Ogonek # Overdot # Slash + "Á": "A", "À": "A", "Ä": "A", "Â": "A", "Ą": "A", + "Ć": "C", + "É": "E", "È": "E", "Ë": "E", "Ê": "E", "Ę": "E", "Í": "I", "Ì": "I", "Ï": "I", "Î": "I", + "Ł": "L", + "Ń": "N", "Ó": "O", "Ò": "O", "Ö": "O", "Ô": "O", + "Ś": "S", "Ú": "U", "Ù": "U", "Ü": "U", "Û": "U", "Ý": "Y", "Ỳ": "Y", "Ÿ": "Y", "Ŷ": "Y", - "á": "a", "à": "a", "ä": "a", "â": "a", - "é": "e", "è": "e", "ë": "e", "ê": "e", + "Ź": "Z", "Ż": "Z", + "á": "a", "à": "a", "ä": "a", "â": "a", "ą": "a", + "ć": "c", + "é": "e", "è": "e", "ë": "e", "ê": "e", "ę": "e", "í": "i", "ì": "i", "ï": "i", "î": "i", + "ł": "l", + "ń": "n", "ó": "o", "ò": "o", "ö": "o", "ô": "o", + "ś": "s", "ú": "u", "ù": "u", "ü": "u", "û": "u", "ý": "y", "ỳ": "y", "ÿ": "y", "ŷ": "y", + "ź": "z", "ż": "z", # Misc Letters "Å": "AA", @@ -126,7 +136,13 @@ FILTER_TAGS = [ "album", + "albumartist", + "albumartists", + "albumartistsort", + "albumsort", "artist", + "artists", + "artistsort", "title", ]