Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve handling of artist initial for path templates. #367

Merged
merged 2 commits into from
Mar 9, 2025

Conversation

bohning
Copy link
Owner

@bohning bohning commented Mar 9, 2025

The first alphanumerical character is decoded to it's closest ASCII representation, which is then uppercased.

The first alphanumerical character is decoded to it's closest ASCII representation, which is then uppercased.
@bohning
Copy link
Owner Author

bohning commented Mar 9, 2025

How shall we handle cases where the unidecode result contains more than one character? E.g. Ю is unidecoded to IU.

@RumovZ
Copy link
Collaborator

RumovZ commented Mar 9, 2025

Just using the first I guess.

Unidecode may return multiple characters for a given non-ASCII character. This ensures that the resulting initial is also only one letter.
@bohning bohning merged commit f6b8fe7 into main Mar 9, 2025
1 check passed
@bohning bohning deleted the fix_artist_initial branch March 9, 2025 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants