-
Notifications
You must be signed in to change notification settings - Fork 23
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
Very incomplete diacritics support #310
Comments
Thank you for your suggestion, @TempaYeshe :) This is about a different plugin, but I once implemented it in exactly the same way as you suggested. tadashi-aikawa/obsidian-another-quick-switcher@cea95e6 However, I received reports that this implementation does not handle certain symbols. After that, I rewrote it to cover those as well, which led to the current somewhat forceful implementation. tadashi-aikawa/obsidian-another-quick-switcher#23 Unfortunately, since I never use diacritics, I am unsure about what is reasonable or what to prioritize for this specification. If you happen to know a solution that could resolve the issue above, I would appreciate it if you could share it with me👍 |
The technical reason is that "Ø" is not a diacritic (cf. Wikipedia), like other characters like "œ". Right now your current solution has the benefit of covering these cases that are not "pure" diacritics, so I guess it is not worth changing. But there is a problem with it when a word starts with one or multiple diacritics such as |
@TempaYeshe
I tried writing a test using śūnyatā for the exact same method in a different project, and contrary to my expectations, the test passed successfully. Since Various Complements use the same logic, I believe sunyata should also work. If you encounter any issues in your environment, it would be helpful if you could share the reproduction steps within Sandbox Vault. |
Thank you for helping me. The problem happens in the sandbox vault (Obsidian v1.6.7) with only Various Complements and completely default settings (except for "Treat accent diacritics as alphabetic characters"): Screen.Recording.2024-08-20.at.16.44.20.mov |
Thank you, @TempaYeshe :) I could reproduce it 👍 |
@TempaYeshe I have a fix in sight and plan to release a revised version by the end of this week. |
Thank you very much @tadashi-aikawa 🙏 |
…rent file complement" and "Current vault complement" when "Match strategy" is set to "prefix," even if "Treat accent diacritics as alphabetic" is enabled (#310)
@TempaYeshe |
Works wonderfully, thank you! |
Hi,
Right now, you are using this solution to remove diacritics for the "Treat accent diacritics as alphabetic characters" option.
The problem is that it does not cover all diacritic combinations at all, and it does not look very clean. There is a much better solution, used in this other plugin, which is:
/[\u0300-\u036f]/g
So in the end there is a very simple function to remove all possible diacritics (taken from here):
Thank you for your plugin!
The text was updated successfully, but these errors were encountered: