-
Notifications
You must be signed in to change notification settings - Fork 4
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
Option to ignore diacritics (accents) #7
Comments
I noticed that you asked feature requests to be posted at #1 |
Thank you for your attention. But now it seems to me that opening issues for feature requests is a convenient practice. Let's do that 😉 .
Thanks for your suggestion. I did some researches and it seem possible. But it will imply some quite important changes in Jumper code. Could you tell me more about your use case ? I'm currently working a little on Jumper, and your use case may give me the motivation boost I need 😄 |
Interesting. I thought it would be simply activating a flag, like for the case sensitive search. Well, the "ignore diacritics" is a convenience for users of languages that have accents, because sometimes the user has the content without the accent, when that word actually should have the accent. This may happen for some reasons (all of them apply to me):
So, when searching, the user needs to perform two searches, to make sure he covered both possibilities of the word appearance. Thanks, |
Thank you for this answer. You've made your point clear, and I agree this feature could be useful.
😆
I wish ! But this isn't the case. Jumper use regular expressions to compare the node text and the search terms, and they have no option to ignore the accents. So, Jumper would have to create a non accentuated version of the text, before to do the regular expression search. You wrote :
so I share with you, FYI, some details about Jumper and what changes should be done to implement "an accent insensitive search" (AIS for the rest of this post): For now, because map nodes may contain HTML or markdown formatting, Jumper generate, when it start, a "clone" of the map, with nodes in plain text, without formatting. Then, Jumper search in this cloned map. BTW: if, at some point, you are curious about Jumper code and want further explanations (there is already some comments in the code, but nor enough, I guess), you're welcome to ask me. |
I was just using Jumper now, and noticed the situation which actually may be the most relevant for the use of "ignore accents": sometimes the user have in mind a group of similar words to be searched using the same radical, but, for some reason, some of them have accents in the radical. This was my situation: I wanted to search for words like "compete"; "competência"; "competente". So, the ideal would be searching for "compete", which matches all three, if "ignore accents" is activated. |
Option to ignore diacritics (accents).
The text was updated successfully, but these errors were encountered: