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

Remove accents from chars before removing illegal ones from filenames #2043

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Ma100Dev
Copy link

In Finnish characters ö and ä are used very often. Simply removing them from file names makes reading them very difficult. I can imagine that this is the case for many other foreign languages as well.

My solution: Convert them to their a-Z counterparts (No dots, etc.). I implemented this based on the Wikipedia article for "List of precomposed Latin characters in Unicode" as Kotlin does not have this functionality out of the box.

I would argue that this change makes reading many foreign song names immensly easier, as just missing dots, for example, is way better than missing the letter at all.

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.

None yet

1 participant