Mergely icon indicating copy to clipboard operation
Mergely copied to clipboard

Accent insensitive search text

Open dzapata14 opened this issue 4 years ago • 10 comments

Hi everyone,

I write you because I don´t find any option to do accent insensitive search, Is possible to make an accent insensitive search? If a do a search in a spanish text I get differents results if I type the word with accent and without accent.

Regards!!!

dzapata14 avatar Sep 09 '20 22:09 dzapata14

@dzapata14, it works for me. Are you using this on mergely.com, or did you integrate it into your own application?

wickedest avatar Sep 10 '20 06:09 wickedest

Hi @wickedest, thanks for your help

I am using mergely in my own application. This is how I initialize:

$("#objeto").mergely({ width: 90, height: 60, cmsettings: { mode: "text/html", readOnly: true, lineNumbers: true, lineWrapping: true }, sidebar: false , ignorews: true , ignorecase: true , viewport: true , sidebar: false });

In the following link you can see the results.

mergely.docx

If I search the word constitución I got several results, but I search the word constitucion I only got one result.

I am using Mergely Version: 3.4.0

image

What do you think It is missing?

Regards!!!

dzapata14 avatar Sep 10 '20 14:09 dzapata14

On https://editor.mergely.com, it works for me - try it yourself. I'd look into your character encoding. You want utf-8 everywhere. your web pages, the content you are rendering, your DB, etc.

On Thu, 10 Sep 2020 at 15:19, dzapata14 [email protected] wrote:

Hi @wickedest https://github.com/wickedest, thanks for your help

I am using mergely in my own application. This is how I initialize:

$("#objeto").mergely({ width: 90, height: 60, cmsettings: { mode: "text/html", readOnly: true, lineNumbers: true, lineWrapping: true }, sidebar: false , ignorews: true , ignorecase: true , viewport: true , sidebar: false });

In the following link you can see the results.

mergely.docx https://github.com/wickedest/Mergely/files/5202234/mergely.docx

If I search the word constitución I got several results, but I search the word constitucion I only got one result.

I am using Mergely Version: 3.4.0

[image: image] https://user-images.githubusercontent.com/43120791/92743586-5060c180-f346-11ea-8471-940b84a20886.png

What do you think It is missing?

Regards!!!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/wickedest/Mergely/issues/132#issuecomment-690320790, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGUZV7ZS6IT5D7MJNPMI6DSFDN7FANCNFSM4RDN4HTQ .

wickedest avatar Sep 10 '20 14:09 wickedest

Hi @wickedest, thanks for your help

I am doing the test online but It doesn work, If i search the word constitucion only got results in lines 2 and 3, not match with line 1. What options allows me that match with line 1.

image

Regards!!!

dzapata14 avatar Sep 10 '20 14:09 dzapata14

Ah, I completely misread what you were asking. I thought you were saying that it was accent insensitive. There's no way to enable that out of the box.

wickedest avatar Sep 10 '20 14:09 wickedest

Ok @wickedest, I appreciate your help, Do you think this functionality can be developed in the future?

dzapata14 avatar Sep 10 '20 14:09 dzapata14

I doubt I'd get to it, not for a long time anyway. I labeled in enhancement and Hacktoberfest. Maybe someone's eager for a new T-shirt.

wickedest avatar Sep 10 '20 14:09 wickedest

Also added feature to https://editor.mergely.com

wickedest avatar Oct 15 '20 14:10 wickedest

Hi @wickedest, thanks for your help,

I am testing online but It doesnt work. I am searching the word constitucion and I activated the "ignored accented characters" but I got the words constitucion and constitucionalidad, but the word constitución is not int result.

image

image

Regards!!!!

dzapata14 avatar Oct 22 '20 22:10 dzapata14

And again, I got it wrong. All of those "Ignore" options are for the diff, which confused me. Clearly, you want the "search" feature to be case insensitive. You were clear the whole time. Anyway, that's a problem - most of the search feature comes directly from CodeMirror search and searchcursor, and they don't seem to have that option. It'd be a good feature to add. I created a ticket there: https://github.com/codemirror/CodeMirror/issues/6448.

wickedest avatar Oct 23 '20 07:10 wickedest