Skip to content

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

Open

Description

@emrecanmuslu

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.'

Activity

  1. emrecanmuslu commented on Aug 7, 2023

    @emrecanmuslu
    Author

    @timdown can you help me with this issue?

  2. mokhosh commented on Apr 9, 2025

    @mokhosh

    @DemaPy This might be ok for temporary highlighting on the frontend, but I don't think there's a way to serialize and persist these highlights in a database.

  3. hhk-png commented on Jul 2, 2025

    @hhk-png

    @mokhosh XPath can be used to store Ranges. But since the Highlight API doesn't support selecting a specific highlight region, it's not possible to delete this.

  4. hhk-png commented on Jul 2, 2025

    @hhk-png

    @mokhosh I found that it's possible to use Range.isPointInRange() and Range.intersectsNode() to identify a specific Range. However, each time we make a selection, we need to iterate through all the ranges in the Highlight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions