Skip to content
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

Highlight document contents with hit number attribute #531

Open
jan-niestadt opened this issue Aug 26, 2024 · 1 comment
Open

Highlight document contents with hit number attribute #531

jan-niestadt opened this issue Aug 26, 2024 · 1 comment

Comments

@jan-niestadt
Copy link
Member

(see INL/corpus-frontend#527)

/docs/DOCID/contents should add a hit number to <hl> tags, which will allow the frontend to deal with overlapping hits and hits that e.g. span across <s> tags.

<s><hl n="1">The fox <hl n="2">jumps</hl></hl><hl n="2"> over the dog.</hl></s>
@jan-niestadt
Copy link
Member Author

jan-niestadt commented Sep 5, 2024

Start (and end) position would also be useful; frontend would use this to jump to a specific hit in a fragment, for example (@KCMertens in INL/corpus-frontend#527).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant