-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid placing hints a
<sup>
elements
Closes #84. In that issue, it looked like some sentences got no hints. In reality, they did, but they were placed at `<sup>` elements in the sentences and ended up behind the hints for selecting only the `<sup>` text. This PR tries to detect potential `<sup>` elements and prefers the start of the text instead in those cases. Unfortunately it is very difficult to tell `<sup>` and wrapped text apart, so this isn't perfect. But at least it's better. Probably good in all realistic cases.
- Loading branch information
Showing
2 changed files
with
81 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters