HerrKnarz / Playnite-Extensions

Collection of useful Playnite extensions. See Readme for details!
MIT License
18 stars 2 forks source link

[Enhancement][Link Utilities] Custom link profiles - Run "Remove diacritics" before "Remove special chars" #119

Open Boof-Woof opened 1 week ago

Boof-Woof commented 1 week ago

Is your feature request related to a problem? Please describe. Currently, there is no way to use "Remove diacritics" at the same time as "Remove special chars" without it removing the diacritics entirely rather than converting.

Describe the solution you'd like I would like "Remove diacritics" to be run before "Remove special chars" so that the diacritics are converted rather than removed.

Describe alternatives you've considered

  1. Adding a new formatting checkbox for removing colons.
  2. Comma-separated text field to list specific characters to be removed.
  3. Regex formatting text field.

Additional context In my pursuit of converting diacritics and removing a colon from a game's name, it ends up removing both the colon AND the diacritics entirely rather than converting. See the below example:


Original Game Name: Pokémon Yellow Version: Special Pikachu Edition Formatting Options:

Expected Result: pokemon-yellow-version-special-pikachu-edition Actual Result: pokmon-yellow-version-special-pikachu-edition

HerrKnarz commented 2 days ago

Sorry for the late reply!

Hmm, yeah, I can add the option switch those actions for the link profiles. It shouldn't be hard coded, though, because some websites really just remove special chars (so "Trüberbrook" needs to become "Trberbrook" and not "Truberbrook". I haven't had a case, where both diacritics and special chars had to be removed at the same time, though. But game name with both cases aren't that common, I guess.

Can you please tell me the website do you want to add and how you configured it, so I can use that to test the implementation?

Adding a regex formatting option also is a good idea, btw. I'll add that, too!