Taiko2k / Tauon

The music player of today! :city_sunrise:
https://tauonmusicbox.rocks
GNU General Public License v3.0
1.81k stars 70 forks source link

Request: matching similar-looking letters #784

Open david-cortes opened 2 years ago

david-cortes commented 2 years ago

Would be nice if the file search functionality could find matches for characters that look very similar, such as n -> ñ or c -> ć - that is, if I were to type c, it would be nice to also find matches for ć.

Taiko2k commented 2 years ago

There are 2 search functions in tauon, which one are you referring to? Global Search, or 'find'?

david-cortes commented 2 years ago

The one that happens when one types something while the tauon window is active.

Taiko2k commented 2 years ago

Okay, in that case this feature should already be working.

(Though note in this search you have to start typing from the start of words. You also have to type at least 2 letters)

david-cortes commented 2 years ago

Did a bit of experimentation and I realized it works for some languages but nor for others - for example, it matches n -> ñ (Spanish language), but doesn't match е -> ё (Russian language).

Taiko2k commented 2 years ago

Hmm, the way it is you need to type io for ё it seems, its done by the way it sounds, not looks.

Changing this is kind of wontfix for me for a couple of reasons.

david-cortes commented 2 years ago

I think it's not actually related to the sound, since for example Polish letter ł, which sounds like English w, is still (correctly) matched by typing l. I think it's actually a lack of conversions for cyrillic letters, even though they get matched to their latinizations - for example, cyrillic е gets matched to latin e and cyrillic р gets matched to latin r, but ђ (a letter used in languages such as Serbian) doesn't get matched to д (cyrillic "d").

jansol commented 2 years ago

Slightly related: does tauon use SortArtist / SortTitle tags for search & ordering playlists?

Taiko2k commented 2 years ago

Not really related, but no, Tauon doesn't use SortArtist etc

jansol commented 2 years ago

Those tags generally use a transliterated/simplified version of the actual name, which I consider at least tangentially related to the issue of being able to type a lookalike/soundalike and tauon finding all the relevant things.

EDIT: running ffprobe on a random flac from my library, the Vorbis tags seem to be ALBUMARTISTSORT and ARTISTSORT