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

Improve xpath highlight mismatch searching #14

Open
techgique opened this issue Apr 20, 2017 · 0 comments
Open

Improve xpath highlight mismatch searching #14

techgique opened this issue Apr 20, 2017 · 0 comments
Assignees

Comments

@techgique
Copy link
Member

If the highlight text identified by the xpath element and range don't match the annotation quote, we search the xpath element for the quote verbatim. We might be able to save time manually handling when the quote can't be found verbatim by:

  • Looking for only the first word (or couple words) in the annotation quote when searching for the whole string returns no matches
  • Stripping XML markup that won't exist in the annotation quote (because it is removed from the HTML in the TEI Boilerplate page) before performing the search
@techgique techgique self-assigned this Apr 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant