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 detected word when showing translation on hover #8

Open
qsantos opened this issue Dec 16, 2023 · 2 comments
Open

Highlight detected word when showing translation on hover #8

qsantos opened this issue Dec 16, 2023 · 2 comments

Comments

@qsantos
Copy link
Owner

qsantos commented Dec 16, 2023

Like in Rikai* and 10ten, it would be useful to readers to quickly see the original word highlighted when getting a translation.

@qsantos
Copy link
Owner Author

qsantos commented Dec 28, 2023

@qsantos
Copy link
Owner Author

qsantos commented Jan 6, 2024

This will require keeping track of the location of each fragment of text while iterating over candidates.

With the <span> trick, it will also require special handling to remove any existing highlight.

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