rangy icon indicating copy to clipboard operation
rangy copied to clipboard

How to handle Turkish character issues when using Text-Range-Module in Rangy library for word search in HTML documents?

Open emrecanmuslu opened this issue 2 years ago • 5 comments

Hi

I am using the Text-Range-Module in the Rangy library to search for a word in an HTML document. However, I am having trouble with Turkish characters, and it's not finding the word I'm looking for. An example word is 'Çincesinde.'

emrecanmuslu avatar Aug 04 '23 11:08 emrecanmuslu

@timdown can you help me with this issue?

emrecanmuslu avatar Aug 07 '23 11:08 emrecanmuslu

@emrecanmuslu you have to try to use https://developer.mozilla.org/en-US/docs/Web/API/CSS_Custom_Highlight_API along with https://developer.mozilla.org/en-US/docs/Web/API/Range and https://developer.mozilla.org/en-US/docs/Web/API/Highlight

DemaPy avatar Sep 04 '24 11:09 DemaPy